|
Lines 231-236
Source/WebKitLegacy/mac/WebView/WebView.mm_sec1
|
| 231 |
#import <pal/spi/cocoa/NSURLFileTypeMappingsSPI.h> |
231 |
#import <pal/spi/cocoa/NSURLFileTypeMappingsSPI.h> |
| 232 |
#import <pal/spi/mac/NSResponderSPI.h> |
232 |
#import <pal/spi/mac/NSResponderSPI.h> |
| 233 |
#import <pal/spi/mac/NSSpellCheckerSPI.h> |
233 |
#import <pal/spi/mac/NSSpellCheckerSPI.h> |
|
|
234 |
#import <pal/spi/mac/NSViewSPI.h> |
| 234 |
#import <pal/spi/mac/NSWindowSPI.h> |
235 |
#import <pal/spi/mac/NSWindowSPI.h> |
| 235 |
#import <wtf/Assertions.h> |
236 |
#import <wtf/Assertions.h> |
| 236 |
#import <wtf/FileSystem.h> |
237 |
#import <wtf/FileSystem.h> |
|
Lines 5808-5826
- (instancetype)initWithCoder:(NSCoder *
Source/WebKitLegacy/mac/WebView/WebView.mm_sec2
|
| 5808 |
|
5809 |
|
| 5809 |
- (void)encodeWithCoder:(NSCoder *)encoder |
5810 |
- (void)encodeWithCoder:(NSCoder *)encoder |
| 5810 |
{ |
5811 |
{ |
| 5811 |
ALLOW_DEPRECATED_DECLARATIONS_BEGIN |
|
|
| 5812 |
// Set asside the subviews before we archive. We don't want to archive any subviews. |
5812 |
// Set asside the subviews before we archive. We don't want to archive any subviews. |
| 5813 |
// The subviews will always be created in _commonInitializationFrameName:groupName:. |
5813 |
// The subviews will always be created in _commonInitializationFrameName:groupName:. |
| 5814 |
id originalSubviews = _subviews; |
5814 |
id originalSubviews = self._subviewsIvar; |
| 5815 |
_subviews = nil; |
5815 |
self._subviewsIvar = nil; |
| 5816 |
ALLOW_DEPRECATED_DECLARATIONS_END |
|
|
| 5817 |
|
5816 |
|
| 5818 |
[super encodeWithCoder:encoder]; |
5817 |
[super encodeWithCoder:encoder]; |
| 5819 |
|
5818 |
|
| 5820 |
ALLOW_DEPRECATED_DECLARATIONS_BEGIN |
|
|
| 5821 |
// Restore the subviews we set aside. |
5819 |
// Restore the subviews we set aside. |
| 5822 |
_subviews = originalSubviews; |
5820 |
self._subviewsIvar = originalSubviews; |
| 5823 |
ALLOW_DEPRECATED_DECLARATIONS_END |
|
|
| 5824 |
|
5821 |
|
| 5825 |
BOOL useBackForwardList = _private->page && static_cast<BackForwardList&>(_private->page->backForward().client()).enabled(); |
5822 |
BOOL useBackForwardList = _private->page && static_cast<BackForwardList&>(_private->page->backForward().client()).enabled(); |
| 5826 |
if ([encoder allowsKeyedCoding]) { |
5823 |
if ([encoder allowsKeyedCoding]) { |