Changeset 176488 in webkit
- Timestamp:
- Nov 21, 2014, 4:59:27 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
-
Source/WebKit/mac/ChangeLog (modified) (1 diff)
-
Source/WebKit/mac/WebView/WebPreferenceKeysPrivate.h (modified) (1 diff)
-
Source/WebKit/mac/WebView/WebPreferences.mm (modified) (2 diffs)
-
Source/WebKit/mac/WebView/WebPreferencesPrivate.h (modified) (1 diff)
-
Source/WebKit/mac/WebView/WebView.mm (modified) (1 diff)
-
Source/WebKit2/ChangeLog (modified) (1 diff)
-
Source/WebKit2/Shared/WebPreferencesDefinitions.h (modified) (2 diffs)
-
Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm (modified) (1 diff)
-
Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesPrivate.h (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/MiniBrowser/mac/SettingsController.h (modified) (1 diff)
-
Tools/MiniBrowser/mac/SettingsController.m (modified) (4 diffs)
-
Tools/MiniBrowser/mac/WK1BrowserWindowController.m (modified) (1 diff)
-
Tools/MiniBrowser/mac/WK2BrowserWindowController.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/mac/ChangeLog
r176477 r176488 1 2014-11-21 Zalan Bujtas <zalan@apple.com> 2 3 Simple line layout: Add "show simple line layout debug borders" setting to MiniBrowser. 4 https://bugs.webkit.org/show_bug.cgi?id=138981 5 6 Reviewed by Simon Fraser. 7 8 * WebView/WebPreferenceKeysPrivate.h: 9 * WebView/WebPreferences.mm: 10 (+[WebPreferences initialize]): 11 (-[WebPreferences simpleLineLayoutDebugBordersEnabled]): 12 (-[WebPreferences setSimpleLineLayoutDebugBordersEnabled:]): 13 * WebView/WebPreferencesPrivate.h: 14 * WebView/WebView.mm: 15 (-[WebView _preferencesChanged:]): 16 1 17 2014-11-21 Tim Horton <timothy_horton@apple.com> 2 18 -
trunk/Source/WebKit/mac/WebView/WebPreferenceKeysPrivate.h
r176297 r176488 105 105 #define WebKitCSSCompositingEnabledPreferenceKey @"WebKitCSSCompositingEnabled" 106 106 #define WebKitShowDebugBordersPreferenceKey @"WebKitShowDebugBorders" 107 #define WebKitSimpleLineLayoutDebugBordersEnabledPreferenceKey @"WebKitSimpleLineLayoutDebugBordersEnabled" 107 108 #define WebKitShowRepaintCounterPreferenceKey @"WebKitShowRepaintCounter" 108 109 #define WebKitWebAudioEnabledPreferenceKey @"WebKitWebAudioEnabled" -
trunk/Source/WebKit/mac/WebView/WebPreferences.mm
r176297 r176488 495 495 #endif 496 496 [NSNumber numberWithBool:NO], WebKitShowDebugBordersPreferenceKey, 497 [NSNumber numberWithBool:NO], WebKitSimpleLineLayoutDebugBordersEnabledPreferenceKey, 497 498 [NSNumber numberWithBool:NO], WebKitShowRepaintCounterPreferenceKey, 498 499 [NSNumber numberWithBool:YES], WebKitWebGLEnabledPreferenceKey, … … 1854 1855 { 1855 1856 [self _setBoolValue:enabled forKey:WebKitShowDebugBordersPreferenceKey]; 1857 } 1858 1859 - (BOOL)simpleLineLayoutDebugBordersEnabled 1860 { 1861 return [self _boolValueForKey:WebKitSimpleLineLayoutDebugBordersEnabledPreferenceKey]; 1862 } 1863 1864 - (void)setSimpleLineLayoutDebugBordersEnabled:(BOOL)enabled 1865 { 1866 [self _setBoolValue:enabled forKey:WebKitSimpleLineLayoutDebugBordersEnabledPreferenceKey]; 1856 1867 } 1857 1868 -
trunk/Source/WebKit/mac/WebView/WebPreferencesPrivate.h
r176297 r176488 212 212 - (void)setShowDebugBorders:(BOOL)show; 213 213 214 - (BOOL)simpleLineLayoutDebugBordersEnabled; 215 - (void)setSimpleLineLayoutDebugBordersEnabled:(BOOL)enabled; 216 214 217 - (BOOL)showRepaintCounter; 215 218 - (void)setShowRepaintCounter:(BOOL)show; -
trunk/Source/WebKit/mac/WebView/WebView.mm
r176450 r176488 2237 2237 settings.setCanvasUsesAcceleratedDrawing([preferences canvasUsesAcceleratedDrawing]); 2238 2238 settings.setShowDebugBorders([preferences showDebugBorders]); 2239 settings.setSimpleLineLayoutDebugBordersEnabled([preferences simpleLineLayoutDebugBordersEnabled]); 2239 2240 settings.setShowRepaintCounter([preferences showRepaintCounter]); 2240 2241 settings.setWebGLEnabled([preferences webGLEnabled]); -
trunk/Source/WebKit2/ChangeLog
r176487 r176488 1 2014-11-21 Zalan Bujtas <zalan@apple.com> 2 3 Simple line layout: Add "show simple line layout debug borders" setting to MiniBrowser. 4 https://bugs.webkit.org/show_bug.cgi?id=138981 5 6 Reviewed by Simon Fraser. 7 8 * UIProcess/API/Cocoa/WKPreferences.mm: 9 (-[WKPreferences _simpleLineLayoutDebugBordersEnabled]): 10 (-[WKPreferences _setSimpleLineLayoutDebugBordersEnabled:]): 11 * UIProcess/API/Cocoa/WKPreferencesPrivate.h: 12 1 13 2014-11-21 Eric Carlson <eric.carlson@apple.com> 2 14 -
trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h
r176297 r176488 187 187 macro(ThreadedScrollingEnabled, threadedScrollingEnabled, Bool, bool, true) \ 188 188 macro(SimpleLineLayoutEnabled, simpleLineLayoutEnabled, Bool, bool, true) \ 189 macro(SimpleLineLayoutDebugBordersEnabled, simpleLineLayoutDebugBordersEnabled, Bool, bool, false) \190 189 macro(SubpixelCSSOMElementMetricsEnabled, subpixelCSSOMElementMetricsEnabled, Bool, bool, false) \ 191 190 macro(BackgroundShouldExtendBeyondPage, backgroundShouldExtendBeyondPage, Bool, bool, false) \ … … 236 235 macro(CompositingRepaintCountersVisible, compositingRepaintCountersVisible, Bool, bool, false) \ 237 236 macro(TiledScrollingIndicatorVisible, tiledScrollingIndicatorVisible, Bool, bool, false) \ 237 macro(SimpleLineLayoutDebugBordersEnabled, simpleLineLayoutDebugBordersEnabled, Bool, bool, false) \ 238 238 macro(LogsPageMessagesToSystemConsoleEnabled, logsPageMessagesToSystemConsoleEnabled, Bool, bool, false) \ 239 239 \ -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferences.mm
r175494 r176488 214 214 } 215 215 216 - (BOOL)_simpleLineLayoutDebugBordersEnabled 217 { 218 return _preferences->simpleLineLayoutDebugBordersEnabled(); 219 } 220 221 - (void)_setSimpleLineLayoutDebugBordersEnabled:(BOOL)simpleLineLayoutDebugBordersEnabled 222 { 223 _preferences->setSimpleLineLayoutDebugBordersEnabled(simpleLineLayoutDebugBordersEnabled); 224 } 225 216 226 - (BOOL)_developerExtrasEnabled 217 227 { -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKPreferencesPrivate.h
r175494 r176488 53 53 @property (nonatomic, setter=_setTiledScrollingIndicatorVisible:) BOOL _tiledScrollingIndicatorVisible; 54 54 @property (nonatomic, setter=_setVisibleDebugOverlayRegions:) _WKDebugOverlayRegions _visibleDebugOverlayRegions; 55 @property (nonatomic, setter=_setSimpleLineLayoutDebugBordersEnabled:) BOOL _simpleLineLayoutDebugBordersEnabled; 55 56 56 57 @property (nonatomic, setter=_setDeveloperExtrasEnabled:) BOOL _developerExtrasEnabled; -
trunk/Tools/ChangeLog
r176449 r176488 1 2014-11-21 Zalan Bujtas <zalan@apple.com> 2 3 Simple line layout: Add "show simple line layout debug borders" setting to MiniBrowser. 4 https://bugs.webkit.org/show_bug.cgi?id=138981 5 6 Reviewed by Simon Fraser. 7 8 * MiniBrowser/mac/SettingsController.h: 9 * MiniBrowser/mac/SettingsController.m: 10 (-[SettingsController _populateMenu]): 11 (-[SettingsController validateMenuItem:]): 12 (-[SettingsController toggleSimpleLineLayoutDebugBordersEnabled:]): 13 (-[SettingsController simpleLineLayoutDebugBordersEnabled]): 14 * MiniBrowser/mac/WK1BrowserWindowController.m: 15 (-[WK1BrowserWindowController didChangeSettings]): 16 * MiniBrowser/mac/WK2BrowserWindowController.m: 17 (-[WK2BrowserWindowController didChangeSettings]): 18 1 19 2014-11-21 Csaba Osztrogonác <ossy@webkit.org> 2 20 -
trunk/Tools/MiniBrowser/mac/SettingsController.h
r175494 r176488 38 38 @property (nonatomic, readonly) BOOL usePaginatedMode; 39 39 @property (nonatomic, readonly) BOOL layerBordersVisible; 40 @property (nonatomic, readonly) BOOL simpleLineLayoutDebugBordersEnabled; 40 41 @property (nonatomic, readonly) BOOL tiledScrollingIndicatorVisible; 41 42 @property (nonatomic, readonly) BOOL nonFastScrollableRegionOverlayVisible; -
trunk/Tools/MiniBrowser/mac/SettingsController.m
r175494 r176488 34 34 static NSString * const UseWebKit2ByDefaultPreferenceKey = @"UseWebKit2ByDefault"; 35 35 static NSString * const LayerBordersVisiblePreferenceKey = @"LayerBordersVisible"; 36 static NSString * const SimpleLineLayoutDebugBordersEnabledPreferenceKey = @"SimpleLineLayoutDebugBordersEnabled"; 36 37 static NSString * const TiledScrollingIndicatorVisiblePreferenceKey = @"TiledScrollingIndicatorVisible"; 37 38 … … 101 102 [self _addItemWithTitle:@"Use Paginated Mode" action:@selector(toggleUsePaginatedMode:) indented:NO]; 102 103 [self _addItemWithTitle:@"Show Layer Borders" action:@selector(toggleShowLayerBorders:) indented:NO]; 104 [self _addItemWithTitle:@"Show Simple Line Layout Borders" action:@selector(toggleSimpleLineLayoutDebugBordersEnabled:) indented:NO]; 103 105 104 106 [self _addHeaderWithTitle:@"WebKit2-only Settings"]; … … 141 143 else if (action == @selector(toggleShowLayerBorders:)) 142 144 [menuItem setState:[self layerBordersVisible] ? NSOnState : NSOffState]; 145 else if (action == @selector(toggleSimpleLineLayoutDebugBordersEnabled:)) 146 [menuItem setState:[self simpleLineLayoutDebugBordersEnabled] ? NSOnState : NSOffState]; 143 147 else if (action == @selector(toggleShowTiledScrollingIndicator:)) 144 148 [menuItem setState:[self tiledScrollingIndicatorVisible] ? NSOnState : NSOffState]; … … 211 215 } 212 216 217 - (void)toggleSimpleLineLayoutDebugBordersEnabled:(id)sender 218 { 219 [self _toggleBooleanDefault:SimpleLineLayoutDebugBordersEnabledPreferenceKey]; 220 } 221 222 - (BOOL)simpleLineLayoutDebugBordersEnabled 223 { 224 return [[NSUserDefaults standardUserDefaults] boolForKey:SimpleLineLayoutDebugBordersEnabledPreferenceKey]; 225 } 226 213 227 - (void)toggleShowTiledScrollingIndicator:(id)sender 214 228 { -
trunk/Tools/MiniBrowser/mac/WK1BrowserWindowController.m
r174525 r176488 239 239 [[WebPreferences standardPreferences] setSubpixelCSSOMElementMetricsEnabled:settings.subPixelCSSOMMetricsEnabled]; 240 240 [[WebPreferences standardPreferences] setShowDebugBorders:settings.layerBordersVisible]; 241 [[WebPreferences standardPreferences] setSimpleLineLayoutDebugBordersEnabled:settings.simpleLineLayoutDebugBordersEnabled]; 241 242 [[WebPreferences standardPreferences] setShowRepaintCounter:settings.layerBordersVisible]; 242 243 -
trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m
r175494 r176488 279 279 preferences._compositingBordersVisible = settings.layerBordersVisible; 280 280 preferences._compositingRepaintCountersVisible = settings.layerBordersVisible; 281 preferences._simpleLineLayoutDebugBordersEnabled = settings.simpleLineLayoutDebugBordersEnabled; 281 282 282 283 BOOL useTransparentWindows = settings.useTransparentWindows;
Note:
See TracChangeset
for help on using the changeset viewer.