| 567 | | id old = _domDocument; |
|---|
| 568 | | _domDocument = (DOMHTMLDocument *)[[frame DOMDocument] retain]; |
|---|
| 569 | | [old release]; |
|---|
| 570 | | |
|---|
| 571 | | old = _body; |
|---|
| 572 | | _body = (DOMHTMLElement *)[[_domDocument getElementById:@"contents"] retain]; |
|---|
| 573 | | if( ! _body ) _body = (DOMHTMLElement *)[[_domDocument body] retain]; |
|---|
| 574 | | [old release]; |
|---|
| 575 | | |
|---|
| 576 | | [self performSelector:@selector( _checkForTransparantStyle ) withObject:nil afterDelay:0.]; |
|---|
| 577 | | |
|---|
| 578 | | [self setPreferencesIdentifier:[[self style] identifier]]; |
|---|
| 579 | | |
|---|
| 580 | | [self clearScrollbarMarks]; |
|---|
| 581 | | |
|---|
| 582 | | if( [[self window] isFlushWindowDisabled] ) |
|---|
| 583 | | [[self window] enableFlushWindow]; |
|---|
| 584 | | |
|---|
| | 680 | WebFrame *contentFrame = [[self mainFrame] findFrameNamed:@"content"]; |
|---|
| | 681 | |
|---|
| | 682 | id old = _domDocument; |
|---|
| | 683 | _domDocument = (DOMHTMLDocument *)[[contentFrame DOMDocument] retain]; |
|---|
| | 684 | [old release]; |
|---|
| | 685 | |
|---|
| | 686 | old = _body; |
|---|
| | 687 | _body = (DOMHTMLElement *)[[_domDocument getElementById:@"contents"] retain]; |
|---|
| | 688 | if( ! _body ) _body = (DOMHTMLElement *)[[_domDocument body] retain]; |
|---|
| | 689 | [old release]; |
|---|
| | 690 | |
|---|
| | 691 | [self performSelector:@selector( _checkForTransparantStyle ) withObject:nil afterDelay:0.]; |
|---|
| | 692 | |
|---|
| | 693 | [self setPreferencesIdentifier:[[self style] identifier]]; |
|---|
| | 694 | |
|---|
| | 695 | [self clearScrollbarMarks]; |
|---|
| | 696 | |
|---|
| | 697 | if( [[self window] isFlushWindowDisabled] ) |
|---|
| | 698 | [[self window] enableFlushWindow]; |
|---|
| | 699 | |
|---|