Changeset 185857 in webkit
- Timestamp:
- Jun 22, 2015, 6:59:05 PM (10 years ago)
- Location:
- trunk/Tools
- Files:
-
- 6 edited
-
ChangeLog (modified) (1 diff)
-
MiniBrowser/mac/AppDelegate.m (modified) (1 diff)
-
MiniBrowser/mac/BrowserWindow.xib (modified) (1 diff)
-
MiniBrowser/mac/SettingsController.h (modified) (1 diff)
-
MiniBrowser/mac/SettingsController.m (modified) (4 diffs)
-
MiniBrowser/mac/WK1BrowserWindowController.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r185833 r185857 1 2015-06-22 Simon Fraser <simon.fraser@apple.com> 2 3 Make it possible to enable incremental rendering suppression in MiniBrowser 4 https://bugs.webkit.org/show_bug.cgi?id=146223 5 6 Reviewed by Tim Horton. 7 8 Add a menu item to enable incremental rendering suppression to MiniBrowser. 9 10 For WK1, this just toggles a pref, and takes effect immediately. 11 12 For WK2, this is a WKConfiguration property, so only affects new web views. 13 14 Also remove a toolbar item connection to toggleUseMinimumViewSize: that caused 15 logging on launch. 16 17 * MiniBrowser/mac/AppDelegate.m: 18 (defaultConfiguration): 19 * MiniBrowser/mac/BrowserWindow.xib: 20 * MiniBrowser/mac/SettingsController.h: 21 * MiniBrowser/mac/SettingsController.m: 22 (-[SettingsController _populateMenu]): 23 (-[SettingsController validateMenuItem:]): 24 (-[SettingsController toggleIncrementalRenderingSuppressed:]): 25 (-[SettingsController incrementalRenderingSuppressed]): 26 * MiniBrowser/mac/WK1BrowserWindowController.m: 27 (-[WK1BrowserWindowController didChangeSettings]): 28 1 29 2015-06-19 Filip Pizlo <fpizlo@apple.com> 2 30 -
trunk/Tools/MiniBrowser/mac/AppDelegate.m
r184590 r185857 83 83 } 84 84 85 configuration.suppressesIncrementalRendering = [SettingsController shared].incrementalRenderingSuppressed; 85 86 return configuration; 86 87 } -
trunk/Tools/MiniBrowser/mac/BrowserWindow.xib
r184791 r185857 101 101 </connections> 102 102 </button> 103 <connections>104 <action selector="toggleUseMinimumViewSize:" target="-2" id="gZA-yS-7L4"/>105 </connections>106 103 </toolbarItem> 107 104 <toolbarItem implicitItemIdentifier="6BDC61B7-F1A8-425A-A212-9CAC59C56385" label="Progress" paletteLabel="Progress" tag="-1" id="60"> -
trunk/Tools/MiniBrowser/mac/SettingsController.h
r180612 r185857 39 39 @property (nonatomic, readonly) BOOL layerBordersVisible; 40 40 @property (nonatomic, readonly) BOOL simpleLineLayoutDebugBordersEnabled; 41 @property (nonatomic, readonly) BOOL incrementalRenderingSuppressed; 41 42 @property (nonatomic, readonly) BOOL tiledScrollingIndicatorVisible; 42 43 @property (nonatomic, readonly) BOOL nonFastScrollableRegionOverlayVisible; -
trunk/Tools/MiniBrowser/mac/SettingsController.m
r180612 r185857 36 36 static NSString * const SimpleLineLayoutDebugBordersEnabledPreferenceKey = @"SimpleLineLayoutDebugBordersEnabled"; 37 37 static NSString * const TiledScrollingIndicatorVisiblePreferenceKey = @"TiledScrollingIndicatorVisible"; 38 static NSString * const IncrementalRenderingSuppressedPreferenceKey = @"IncrementalRenderingSuppressed"; 38 39 39 40 static NSString * const NonFastScrollableRegionOverlayVisiblePreferenceKey = @"NonFastScrollableRegionOverlayVisible"; … … 105 106 [self _addItemWithTitle:@"Show Layer Borders" action:@selector(toggleShowLayerBorders:) indented:NO]; 106 107 [self _addItemWithTitle:@"Show Simple Line Layout Borders" action:@selector(toggleSimpleLineLayoutDebugBordersEnabled:) indented:NO]; 108 [self _addItemWithTitle:@"Suppress Incremental Rendering in New Windows" action:@selector(toggleIncrementalRenderingSuppressed:) indented:NO]; 107 109 108 110 [self _addHeaderWithTitle:@"WebKit2-only Settings"]; … … 148 150 else if (action == @selector(toggleSimpleLineLayoutDebugBordersEnabled:)) 149 151 [menuItem setState:[self simpleLineLayoutDebugBordersEnabled] ? NSOnState : NSOffState]; 152 else if (action == @selector(toggleIncrementalRenderingSuppressed:)) 153 [menuItem setState:[self incrementalRenderingSuppressed] ? NSOnState : NSOffState]; 150 154 else if (action == @selector(toggleShowTiledScrollingIndicator:)) 151 155 [menuItem setState:[self tiledScrollingIndicatorVisible] ? NSOnState : NSOffState]; … … 230 234 } 231 235 236 - (void)toggleIncrementalRenderingSuppressed:(id)sender 237 { 238 [self _toggleBooleanDefault:IncrementalRenderingSuppressedPreferenceKey]; 239 } 240 241 - (BOOL)incrementalRenderingSuppressed 242 { 243 return [[NSUserDefaults standardUserDefaults] boolForKey:IncrementalRenderingSuppressedPreferenceKey]; 244 } 245 232 246 - (void)toggleShowLayerBorders:(id)sender 233 247 { -
trunk/Tools/MiniBrowser/mac/WK1BrowserWindowController.m
r184358 r185857 251 251 [[WebPreferences standardPreferences] setSimpleLineLayoutDebugBordersEnabled:settings.simpleLineLayoutDebugBordersEnabled]; 252 252 [[WebPreferences standardPreferences] setShowRepaintCounter:settings.layerBordersVisible]; 253 [[WebPreferences standardPreferences] setSuppressesIncrementalRendering:settings.incrementalRenderingSuppressed]; 253 254 254 255 BOOL useTransparentWindows = settings.useTransparentWindows;
Note:
See TracChangeset
for help on using the changeset viewer.