Changeset 269603 in webkit
- Timestamp:
- Nov 9, 2020 2:28:13 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 39 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r269600 r269603 1 2020-11-09 Zalan Bujtas <zalan@apple.com> 2 3 Show legacy line layout visual coverage instead of "simple line" layout. 4 https://bugs.webkit.org/show_bug.cgi?id=218695 5 6 Reviewed by Antti Koivisto. 7 8 * fast/inline/simple-line-layout-16bit-content-expected-mismatch.html: Removed. 9 * fast/inline/simple-line-layout-16bit-content.html: 10 * fast/text/simple-line-layout-do-not-support-unicode-range-expected.html: 11 * fast/text/simple-line-layout-do-not-support-unicode-range.html: 12 * fast/text/simple-line-layout-line-box-contain-glyphs-expected.html: 13 * fast/text/simple-line-layout-line-box-contain-glyphs.html: 14 * fast/text/simple-line-layout-no-surrogate-pairs-expected.html: 15 * fast/text/simple-line-layout-no-surrogate-pairs.html: 16 * fast/text/simple-line-layout-simple-text-but-complex-font-path-expected.html: 17 * fast/text/simple-line-layout-simple-text-but-complex-font-path.html: 18 * fast/text/simple-line-layout-with-text-underline-position-expected.html: 19 * fast/text/simple-line-layout-with-text-underline-position.html: 20 * fast/text/simple-lines-float-expected.html: 21 * fast/text/simple-lines-float.html: 22 * fast/text/simple-lines-hover-expected.html: 23 * fast/text/simple-lines-hover.html: 24 * fast/text/simple-lines-multiple-renderers-expected.html: 25 * fast/text/simple-lines-multiple-renderers.html: 26 1 27 2020-11-09 Zalan Bujtas <zalan@apple.com> 2 28 -
trunk/LayoutTests/fast/inline/simple-line-layout-16bit-content-expected.html
r269602 r269603 10 10 </style> 11 11 <script> 12 if (window.internals) 13 internals.settings.setSimpleLineLayoutDebugBordersEnabled(true); 12 if (window.internals) { 13 internals.settings.setLegacyLineLayoutVisualCoverageEnabled(false); 14 internals.settings.setSimpleLineLayoutEnabled(false); 15 } 14 16 </script> 15 17 </head> -
trunk/LayoutTests/fast/inline/simple-line-layout-16bit-content.html
r215878 r269603 11 11 <script> 12 12 if (window.internals) 13 internals.settings.set SimpleLineLayoutDebugBordersEnabled(true);13 internals.settings.setLegacyLineLayoutVisualCoverageEnabled(true); 14 14 </script> 15 15 </head> -
trunk/LayoutTests/fast/text/simple-line-layout-do-not-support-unicode-range-expected.html
r211661 r269603 12 12 <script> 13 13 if (window.internals) { 14 internals.settings.set SimpleLineLayoutDebugBordersEnabled(true);14 internals.settings.setLegacyLineLayoutVisualCoverageEnabled(true); 15 15 internals.settings.setSimpleLineLayoutEnabled(false); 16 16 } … … 18 18 </head> 19 19 <body> 20 <p style="font-family: Monaco;">THIS SHOULD NOT HAVE GREEN simple line layout borders.</p>20 <p style="font-family: Monaco;">THIS SHOULD HAVE legacy line layout coverage indicator.</p> 21 21 </body> 22 22 </html> -
trunk/LayoutTests/fast/text/simple-line-layout-do-not-support-unicode-range.html
r211661 r269603 12 12 <script> 13 13 if (window.internals) { 14 internals.settings.set SimpleLineLayoutDebugBordersEnabled(true);14 internals.settings.setLegacyLineLayoutVisualCoverageEnabled(true); 15 15 internals.settings.setSimpleLineLayoutEnabled(true); 16 16 } … … 18 18 </head> 19 19 <body> 20 <p style="font-family: Monaco;">THIS SHOULD NOT HAVE GREEN simple line layout borders.</p>20 <p style="font-family: Monaco;">THIS SHOULD HAVE legacy line layout coverage indicator.</p> 21 21 </body> 22 22 </html> -
trunk/LayoutTests/fast/text/simple-line-layout-line-box-contain-glyphs-expected.html
r211292 r269603 10 10 </style> 11 11 <script> 12 if (window.internals) 13 internals.settings.setSimpleLineLayoutDebugBordersEnabled(false); 12 if (window.internals) { 13 internals.settings.setLegacyLineLayoutVisualCoverageEnabled(true); 14 internals.settings.setSimpleLineLayoutEnabled(false); 15 } 14 16 </script> 15 17 </head> -
trunk/LayoutTests/fast/text/simple-line-layout-line-box-contain-glyphs.html
r211292 r269603 10 10 </style> 11 11 <script> 12 if (window.internals) 13 internals.settings.setSimpleLineLayoutDebugBordersEnabled(true); 12 if (window.internals) { 13 internals.settings.setLegacyLineLayoutVisualCoverageEnabled(true); 14 internals.settings.setSimpleLineLayoutEnabled(true); 15 } 14 16 </script> 15 17 </head> -
trunk/LayoutTests/fast/text/simple-line-layout-no-surrogate-pairs-expected.html
r211680 r269603 2 2 <html> 3 3 <head> 4 <meta charset="utf-8"> 4 5 <title>This tests that we don't use simple line layout for surrogate pairs.</title> 6 <style> 7 div { 8 color: white; 9 font-family: Arial; 10 } 11 </style> 12 <script> 13 if (window.internals) { 14 internals.settings.setLegacyLineLayoutVisualCoverageEnabled(true); 15 internals.settings.setSimpleLineLayoutEnabled(false); 16 } 17 </script> 5 18 </head> 6 <body></body> 19 <body> 20 <div>�</div> 21 <div>𝌆</div> 22 <div>�</div> 23 </body> 7 24 </html> -
trunk/LayoutTests/fast/text/simple-line-layout-no-surrogate-pairs.html
r211680 r269603 12 12 <script> 13 13 if (window.internals) { 14 internals.settings.setSimpleLineLayoutDebugBordersEnabled(true);15 14 internals.settings.setSimpleLineLayoutEnabled(true); 15 internals.settings.setLegacyLineLayoutVisualCoverageEnabled(true); 16 16 } 17 17 </script> -
trunk/LayoutTests/fast/text/simple-line-layout-simple-text-but-complex-font-path-expected.html
r211682 r269603 3 3 <head> 4 4 <title>This tests that we don't try to use simple line layout for simple text but complex font path related properties.</title> 5 <style> 6 div { 7 color: white; 8 } 9 .common-ligatures-disabled { 10 font-variant-ligatures: no-common-ligatures; 11 } 12 13 .common-ligatures-enabled { 14 font-variant-ligatures: common-ligatures; 15 } 16 </style> 17 <script> 18 if (window.internals) { 19 internals.settings.setLegacyLineLayoutVisualCoverageEnabled(true); 20 internals.settings.setSimpleLineLayoutEnabled(false); 21 } 22 </script> 5 23 </head> 6 <body></body> 24 <body> 25 <div> 26 <div class="common-ligatures-disabled">file</div> 27 <div class="common-ligatures-enabled">file</div> 28 </div> 29 <div style="text-rendering: optimizelegibility"> 30 <div class="common-ligatures-disabled">file</div> 31 <div class="common-ligatures-enabled">file</div> 32 </div> 33 </body> 7 34 </html> -
trunk/LayoutTests/fast/text/simple-line-layout-simple-text-but-complex-font-path.html
r211682 r269603 17 17 <script> 18 18 if (window.internals) { 19 internals.settings.set SimpleLineLayoutDebugBordersEnabled(true);19 internals.settings.setLegacyLineLayoutVisualCoverageEnabled(true); 20 20 internals.settings.setSimpleLineLayoutEnabled(true); 21 21 } -
trunk/LayoutTests/fast/text/simple-line-layout-with-text-underline-position-expected.html
r243605 r269603 3 3 <head> 4 4 <title>This tests that simple line layout is disabled for text-underline-position: under</title> 5 <style> 6 div { 7 color: white; 8 } 9 10 .first { 11 overflow: hidden; 12 } 13 .second, .first { 14 text-underline-position: under; 15 } 16 </style> 17 <script> 18 if (window.internals) { 19 internals.settings.setLegacyLineLayoutVisualCoverageEnabled(true); 20 internals.settings.setSimpleLineLayoutEnabled(false); 21 } 22 </script> 5 23 </head> 6 <body></body> 24 <body> 25 <div class=first>Pass if after selecting these 2 lines</div> 26 <div class=second>this line is still visible</div> 27 </body> 7 28 </html> -
trunk/LayoutTests/fast/text/simple-line-layout-with-text-underline-position.html
r243605 r269603 17 17 <script> 18 18 if (window.internals) { 19 internals.settings.set SimpleLineLayoutDebugBordersEnabled(true);19 internals.settings.setLegacyLineLayoutVisualCoverageEnabled(true); 20 20 internals.settings.setSimpleLineLayoutEnabled(true); 21 21 } -
trunk/LayoutTests/fast/text/simple-lines-float-expected.html
r269360 r269603 2 2 <script> 3 3 if (window.internals) 4 internals.settings.set SimpleLineLayoutDebugBordersEnabled(true);4 internals.settings.setLegacyLineLayoutVisualCoverageEnabled(true); 5 5 </script> 6 6 <div style="position:relative"> -
trunk/LayoutTests/fast/text/simple-lines-float.html
r269360 r269603 2 2 <script> 3 3 if (window.internals) 4 internals.settings.set SimpleLineLayoutDebugBordersEnabled(true);4 internals.settings.setLegacyLineLayoutVisualCoverageEnabled(true); 5 5 </script> 6 6 <div style="float:left; border:1px solid blue; width:50px; height:200px"></div> -
trunk/LayoutTests/fast/text/simple-lines-hover-expected.html
r159345 r269603 3 3 internals.settings.setSimpleLineLayoutDebugBordersEnabled(true); 4 4 </script> 5 <div id="target">This text should have border around it indicating it is in simple line layout mode</div>5 <div>This text should not have legacy line layout visual indicator.</div> -
trunk/LayoutTests/fast/text/simple-lines-hover.html
r167870 r269603 2 2 function test() { 3 3 if (window.internals) 4 internals.settings.set SimpleLineLayoutDebugBordersEnabled(true);4 internals.settings.setLegacyLineLayoutVisualCoverageEnabled(true); 5 5 var target = document.getElementById("target"); 6 6 eventSender.mouseMoveTo(target.offsetLeft + 5, target.offsetTop + 5); … … 8 8 </script> 9 9 <body onload="test()"> 10 <div id="target">This text should have border around it indicating it is in simple line layout mode</div>10 <div id="target">This text should not have legacy line layout visual indicator.</div> -
trunk/LayoutTests/fast/text/simple-lines-multiple-renderers-expected.html
r176525 r269603 5 5 <script> 6 6 if (window.internals) 7 internals.settings.set SimpleLineLayoutDebugBordersEnabled(true);7 internals.settings.setLegacyLineLayoutVisualCoverageEnabled(true); 8 8 </script> 9 9 </head> -
trunk/LayoutTests/fast/text/simple-lines-multiple-renderers.html
r176525 r269603 5 5 <script> 6 6 if (window.internals) 7 internals.settings.set SimpleLineLayoutDebugBordersEnabled(true);7 internals.settings.setLegacyLineLayoutVisualCoverageEnabled(true); 8 8 </script> 9 9 </head> -
trunk/Source/WTF/ChangeLog
r269584 r269603 1 2020-11-09 Zalan Bujtas <zalan@apple.com> 2 3 Show legacy line layout visual coverage instead of "simple line" layout. 4 https://bugs.webkit.org/show_bug.cgi?id=218695 5 6 Reviewed by Antti Koivisto. 7 8 * Scripts/Preferences/WebPreferencesDebug.yaml: 9 1 10 2020-11-09 Per Arne Vollan <pvollan@apple.com> 2 11 -
trunk/Source/WTF/Scripts/Preferences/WebPreferencesDebug.yaml
r268313 r269603 106 106 default: false 107 107 108 LegacyLineLayoutVisualCoverageEnabled: 109 type: bool 110 webcoreOnChange: setNeedsRecalcStyleInAllFrames 111 defaultValue: 112 WebKitLegacy: 113 default: false 114 WebKit: 115 default: false 116 WebCore: 117 default: false 118 108 119 LogsPageMessagesToSystemConsoleEnabled: 109 120 type: bool … … 134 145 condition: ENABLE(RESOURCE_USAGE) 135 146 webcoreOnChange: resourceUsageOverlayVisibleChanged 136 defaultValue:137 WebKitLegacy:138 default: false139 WebKit:140 default: false141 WebCore:142 default: false143 144 SimpleLineLayoutDebugBordersEnabled:145 type: bool146 webcoreOnChange: setNeedsRecalcStyleInAllFrames147 147 defaultValue: 148 148 WebKitLegacy: -
trunk/Source/WebCore/ChangeLog
r269601 r269603 1 2020-11-09 Zalan Bujtas <zalan@apple.com> 2 3 Show legacy line layout visual coverage instead of "simple line" layout. 4 https://bugs.webkit.org/show_bug.cgi?id=218695 5 6 Reviewed by Antti Koivisto. 7 8 Paint legacy line layout content with the debug shadow instead of the modern one (and use red instead of blue). 9 10 * layout/integration/LayoutIntegrationLineLayout.cpp: 11 (WebCore::LayoutIntegration::LineLayout::paint): 12 (WebCore::LayoutIntegration::LineLayout::debugTextShadow): Deleted. 13 * layout/integration/LayoutIntegrationLineLayout.h: 14 * rendering/InlineTextBox.cpp: 15 (WebCore::InlineTextBox::paintMarkedTextForeground): 16 (WebCore::InlineTextBox::debugTextShadow): 17 * rendering/InlineTextBox.h: 18 1 19 2020-11-09 Simon Fraser <simon.fraser@apple.com> 2 20 -
trunk/Source/WebCore/layout/integration/LayoutIntegrationLineLayout.cpp
r269562 r269603 404 404 textPainter.setFont(style.fontCascade()); 405 405 textPainter.setStyle(computeTextPaintStyle(flow().frame(), style, paintInfo)); 406 if (auto* debugShadow = debugTextShadow())407 textPainter.setShadow(debugShadow);408 406 409 407 textPainter.setGlyphDisplayListIfNeeded(run, paintInfo, style.fontCascade(), paintInfo.context(), textRun); … … 467 465 } 468 466 469 ShadowData* LineLayout::debugTextShadow()470 {471 if (!flow().settings().simpleLineLayoutDebugBordersEnabled())472 return nullptr;473 474 static NeverDestroyed<ShadowData> debugTextShadow(IntPoint(0, 0), 10, 20, ShadowStyle::Normal, true, SRGBA<uint8_t> { 0, 0, 150, 150 });475 return &debugTextShadow.get();476 }477 478 467 void LineLayout::releaseCaches(RenderView& view) 479 468 { -
trunk/Source/WebCore/layout/integration/LayoutIntegrationLineLayout.h
r269145 r269603 107 107 const Layout::ContainerBox& rootLayoutBox() const; 108 108 Layout::ContainerBox& rootLayoutBox(); 109 ShadowData* debugTextShadow();110 109 void releaseInlineItemCache(); 111 110 -
trunk/Source/WebCore/rendering/InlineTextBox.cpp
r268774 r269603 1164 1164 } 1165 1165 textPainter.setEmphasisMark(emphasisMark, emphasisMarkOffset, combinedText()); 1166 if (auto* debugShadow = debugTextShadow()) 1167 textPainter.setShadow(debugShadow); 1166 1168 1167 1169 TextRun textRun = createTextRun(); … … 1430 1432 } 1431 1433 1434 ShadowData* InlineTextBox::debugTextShadow() 1435 { 1436 if (!renderer().settings().legacyLineLayoutVisualCoverageEnabled()) 1437 return nullptr; 1438 1439 static NeverDestroyed<ShadowData> debugTextShadow(IntPoint(0, 0), 10, 20, ShadowStyle::Normal, true, SRGBA<uint8_t> { 150, 0, 0, 190 }); 1440 return &debugTextShadow.get(); 1441 } 1442 1432 1443 ExpansionBehavior InlineTextBox::expansionBehavior() const 1433 1444 { -
trunk/Source/WebCore/rendering/InlineTextBox.h
r269301 r269603 200 200 const FontCascade& lineFont() const; 201 201 202 ShadowData* debugTextShadow(); 203 202 204 String text(bool ignoreCombinedText = false, bool ignoreHyphen = false) const; // The effective text for the run. 203 205 TextRun createTextRun(bool ignoreCombinedText = false, bool ignoreHyphen = false) const; -
trunk/Source/WebKit/ChangeLog
r269593 r269603 1 2020-11-09 Zalan Bujtas <zalan@apple.com> 2 3 Show legacy line layout visual coverage instead of "simple line" layout. 4 https://bugs.webkit.org/show_bug.cgi?id=218695 5 6 Reviewed by Antti Koivisto. 7 8 * UIProcess/API/C/WKPreferences.cpp: 9 (WKPreferencesSetLegacyLineLayoutVisualCoverageEnabled): 10 (WKPreferencesGetLegacyLineLayoutVisualCoverageEnabled): 11 (WKPreferencesSetSimpleLineLayoutDebugBordersEnabled): Deleted. 12 (WKPreferencesGetSimpleLineLayoutDebugBordersEnabled): Deleted. 13 * UIProcess/API/C/WKPreferencesRefPrivate.h: 14 * UIProcess/API/Cocoa/WKPreferences.mm: 15 (-[WKPreferences _legacyLineLayoutVisualCoverageEnabled]): 16 (-[WKPreferences _setLegacyLineLayoutVisualCoverageEnabled:]): 17 (-[WKPreferences _simpleLineLayoutDebugBordersEnabled]): Deleted. 18 (-[WKPreferences _setSimpleLineLayoutDebugBordersEnabled:]): Deleted. 19 * UIProcess/API/Cocoa/WKPreferencesPrivate.h: 20 1 21 2020-11-09 Per Arne Vollan <pvollan@apple.com> 2 22 -
trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp
r269111 r269603 1280 1280 } 1281 1281 1282 void WKPreferencesSet SimpleLineLayoutDebugBordersEnabled(WKPreferencesRef preferencesRef, bool flag)1283 { 1284 toImpl(preferencesRef)->set SimpleLineLayoutDebugBordersEnabled(flag);1285 } 1286 1287 bool WKPreferencesGet SimpleLineLayoutDebugBordersEnabled(WKPreferencesRef preferencesRef)1288 { 1289 return toImpl(preferencesRef)-> simpleLineLayoutDebugBordersEnabled();1282 void WKPreferencesSetLegacyLineLayoutVisualCoverageEnabled(WKPreferencesRef preferencesRef, bool flag) 1283 { 1284 toImpl(preferencesRef)->setLegacyLineLayoutVisualCoverageEnabled(flag); 1285 } 1286 1287 bool WKPreferencesGetLegacyLineLayoutVisualCoverageEnabled(WKPreferencesRef preferencesRef) 1288 { 1289 return toImpl(preferencesRef)->legacyLineLayoutVisualCoverageEnabled(); 1290 1290 } 1291 1291 -
trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h
r269111 r269603 318 318 319 319 // Defaults to false. 320 WK_EXPORT void WKPreferencesSet SimpleLineLayoutDebugBordersEnabled(WKPreferencesRef, bool);321 WK_EXPORT bool WKPreferencesGet SimpleLineLayoutDebugBordersEnabled(WKPreferencesRef);320 WK_EXPORT void WKPreferencesSetLegacyLineLayoutVisualCoverageEnabled(WKPreferencesRef, bool); 321 WK_EXPORT bool WKPreferencesGetLegacyLineLayoutVisualCoverageEnabled(WKPreferencesRef); 322 322 323 323 WK_EXPORT void WKPreferencesSetContentChangeObserverEnabled(WKPreferencesRef, bool); -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferences.mm
r268214 r269603 306 306 } 307 307 308 - (BOOL)_ simpleLineLayoutDebugBordersEnabled309 { 310 return _preferences-> simpleLineLayoutDebugBordersEnabled();311 } 312 313 - (void)_set SimpleLineLayoutDebugBordersEnabled:(BOOL)simpleLineLayoutDebugBordersEnabled314 { 315 _preferences->set SimpleLineLayoutDebugBordersEnabled(simpleLineLayoutDebugBordersEnabled);308 - (BOOL)_legacyLineLayoutVisualCoverageEnabled 309 { 310 return _preferences->legacyLineLayoutVisualCoverageEnabled(); 311 } 312 313 - (void)_setLegacyLineLayoutVisualCoverageEnabled:(BOOL)legacyLineLayoutVisualCoverageEnabled 314 { 315 _preferences->setLegacyLineLayoutVisualCoverageEnabled(legacyLineLayoutVisualCoverageEnabled); 316 316 } 317 317 -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h
r268214 r269603 70 70 @property (nonatomic, setter=_setVisibleDebugOverlayRegions:) _WKDebugOverlayRegions _visibleDebugOverlayRegions WK_API_AVAILABLE(macos(10.11), ios(9.0)); 71 71 @property (nonatomic, setter=_setSimpleLineLayoutEnabled:) BOOL _simpleLineLayoutEnabled WK_API_AVAILABLE(macos(10.12), ios(10.0)); 72 @property (nonatomic, setter=_set SimpleLineLayoutDebugBordersEnabled:) BOOL _simpleLineLayoutDebugBordersEnabled WK_API_AVAILABLE(macos(10.11), ios(9.0));72 @property (nonatomic, setter=_setLegacyLineLayoutVisualCoverageEnabled:) BOOL _legacyLineLayoutVisualCoverageEnabled WK_API_AVAILABLE(macos(10.11), ios(9.0)); 73 73 @property (nonatomic, setter=_setContentChangeObserverEnabled:) BOOL _contentChangeObserverEnabled WK_API_AVAILABLE(macos(10.15), ios(13.0)); 74 74 @property (nonatomic, setter=_setAcceleratedDrawingEnabled:) BOOL _acceleratedDrawingEnabled WK_API_AVAILABLE(macos(10.12), ios(10.0)); -
trunk/Source/WebKitLegacy/mac/ChangeLog
r269557 r269603 1 2020-11-09 Zalan Bujtas <zalan@apple.com> 2 3 Show legacy line layout visual coverage instead of "simple line" layout. 4 https://bugs.webkit.org/show_bug.cgi?id=218695 5 6 Reviewed by Antti Koivisto. 7 8 * WebView/WebPreferenceKeysPrivate.h: 9 * WebView/WebPreferences.mm: 10 (-[WebPreferences legacyLineLayoutVisualCoverageEnabled]): 11 (-[WebPreferences setLegacyLineLayoutVisualCoverageEnabled:]): 12 (-[WebPreferences simpleLineLayoutDebugBordersEnabled]): Deleted. 13 (-[WebPreferences setSimpleLineLayoutDebugBordersEnabled:]): Deleted. 14 * WebView/WebPreferencesPrivate.h: 15 1 16 2020-11-06 Peng Liu <peng.liu6@apple.com> 2 17 -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h
r269416 r269603 110 110 #define WebKitSubpixelAntialiasedLayerTextEnabledPreferenceKey @"WebKitSubpixelAntialiasedLayerTextEnabled" 111 111 #define WebKitSimpleLineLayoutEnabledPreferenceKey @"WebKitSimpleLineLayoutEnabled" 112 #define WebKit SimpleLineLayoutDebugBordersEnabledPreferenceKey @"WebKitSimpleLineLayoutDebugBordersEnabled"112 #define WebKitLegacyLineLayoutVisualCoverageEnabledPreferenceKey @"WebKitLegacyLineLayoutVisualCoverageEnabled" 113 113 #define WebKitContentChangeObserverEnabledPreferenceKey @"WebKitContentChangeObserverEnabled" 114 114 #define WebKitShowRepaintCounterPreferenceKey @"WebKitShowRepaintCounter" -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm
r269416 r269603 1810 1810 } 1811 1811 1812 - (BOOL) simpleLineLayoutDebugBordersEnabled1813 { 1814 return [self _boolValueForKey:WebKit SimpleLineLayoutDebugBordersEnabledPreferenceKey];1815 } 1816 1817 - (void)set SimpleLineLayoutDebugBordersEnabled:(BOOL)enabled1818 { 1819 [self _setBoolValue:enabled forKey:WebKit SimpleLineLayoutDebugBordersEnabledPreferenceKey];1812 - (BOOL)legacyLineLayoutVisualCoverageEnabled 1813 { 1814 return [self _boolValueForKey:WebKitLegacyLineLayoutVisualCoverageEnabledPreferenceKey]; 1815 } 1816 1817 - (void)setLegacyLineLayoutVisualCoverageEnabled:(BOOL)enabled 1818 { 1819 [self _setBoolValue:enabled forKey:WebKitLegacyLineLayoutVisualCoverageEnabledPreferenceKey]; 1820 1820 } 1821 1821 -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h
r269416 r269603 153 153 @property (nonatomic) BOOL showDebugBorders; 154 154 @property (nonatomic) BOOL simpleLineLayoutEnabled; 155 @property (nonatomic) BOOL simpleLineLayoutDebugBordersEnabled;155 @property (nonatomic) BOOL legacyLineLayoutVisualCoverageEnabled; 156 156 @property (nonatomic) BOOL showRepaintCounter; 157 157 @property (nonatomic) BOOL webAudioEnabled; -
trunk/Tools/ChangeLog
r269602 r269603 1 2020-11-09 Zalan Bujtas <zalan@apple.com> 2 3 Show legacy line layout visual coverage instead of "simple line" layout. 4 https://bugs.webkit.org/show_bug.cgi?id=218695 5 6 Reviewed by Antti Koivisto. 7 8 * MiniBrowser/mac/SettingsController.h: 9 * MiniBrowser/mac/SettingsController.m: 10 (-[SettingsController _populateMenu]): 11 (-[SettingsController validateMenuItem:]): 12 (-[SettingsController toggleLegacyLineLayoutVisualCoverageEnabled:]): 13 (-[SettingsController legacyLineLayoutVisualCoverageEnabled]): 14 (-[SettingsController toggleSimpleLineLayoutDebugBordersEnabled:]): Deleted. 15 (-[SettingsController simpleLineLayoutDebugBordersEnabled]): Deleted. 16 * MiniBrowser/mac/WK1BrowserWindowController.m: 17 (-[WK1BrowserWindowController didChangeSettings]): 18 * MiniBrowser/mac/WK2BrowserWindowController.m: 19 (-[WK2BrowserWindowController didChangeSettings]): 20 1 21 2020-11-09 Diego Pino Garcia <dpino@igalia.com> 2 22 -
trunk/Tools/MiniBrowser/mac/SettingsController.h
r267970 r269603 38 38 @property (nonatomic, readonly) BOOL layerBordersVisible; 39 39 @property (nonatomic, readonly) BOOL simpleLineLayoutEnabled; 40 @property (nonatomic, readonly) BOOL simpleLineLayoutDebugBordersEnabled;40 @property (nonatomic, readonly) BOOL legacyLineLayoutVisualCoverageEnabled; 41 41 @property (nonatomic, readonly) BOOL incrementalRenderingSuppressed; 42 42 @property (nonatomic, readonly) BOOL tiledScrollingIndicatorVisible; -
trunk/Tools/MiniBrowser/mac/SettingsController.m
r267970 r269603 43 43 static NSString * const LayerBordersVisiblePreferenceKey = @"LayerBordersVisible"; 44 44 static NSString * const SimpleLineLayoutEnabledPreferenceKey = @"SimpleLineLayoutEnabled"; 45 static NSString * const SimpleLineLayoutDebugBordersEnabledPreferenceKey = @"SimpleLineLayoutDebugBordersEnabled";45 static NSString * const LegacyLineLayoutVisualCoverageEnabledPreferenceKey = @"LegacyLineLayoutVisualCoverageEnabled"; 46 46 static NSString * const TiledScrollingIndicatorVisiblePreferenceKey = @"TiledScrollingIndicatorVisible"; 47 47 static NSString * const ReserveSpaceForBannersPreferenceKey = @"ReserveSpaceForBanners"; … … 162 162 [self _addItemWithTitle:@"Show Layer Borders" action:@selector(toggleShowLayerBorders:) indented:NO]; 163 163 [self _addItemWithTitle:@"Disable Simple Line Layout" action:@selector(toggleSimpleLineLayoutEnabled:) indented:NO]; 164 [self _addItemWithTitle:@" Show Simple Line Layout Borders" action:@selector(toggleSimpleLineLayoutDebugBordersEnabled:) indented:NO];164 [self _addItemWithTitle:@"Enable Legacy Line Layout Visual Coverage" action:@selector(toggleLegacyLineLayoutVisualCoverageEnabled:) indented:NO]; 165 165 [self _addItemWithTitle:@"Suppress Incremental Rendering in New Windows" action:@selector(toggleIncrementalRenderingSuppressed:) indented:NO]; 166 166 [self _addItemWithTitle:@"Enable Accelerated Drawing" action:@selector(toggleAcceleratedDrawingEnabled:) indented:NO]; … … 347 347 else if (action == @selector(toggleSimpleLineLayoutEnabled:)) 348 348 [menuItem setState:[self simpleLineLayoutEnabled] ? NSControlStateValueOff : NSControlStateValueOn]; 349 else if (action == @selector(toggle SimpleLineLayoutDebugBordersEnabled:))350 [menuItem setState:[self simpleLineLayoutDebugBordersEnabled] ? NSControlStateValueOn : NSControlStateValueOff];349 else if (action == @selector(toggleLegacyLineLayoutVisualCoverageEnabled:)) 350 [menuItem setState:[self legacyLineLayoutVisualCoverageEnabled] ? NSControlStateValueOn : NSControlStateValueOff]; 351 351 else if (action == @selector(toggleIncrementalRenderingSuppressed:)) 352 352 [menuItem setState:[self incrementalRenderingSuppressed] ? NSControlStateValueOn : NSControlStateValueOff]; … … 524 524 } 525 525 526 - (void)toggle SimpleLineLayoutDebugBordersEnabled:(id)sender527 { 528 [self _toggleBooleanDefault: SimpleLineLayoutDebugBordersEnabledPreferenceKey];529 } 530 531 - (BOOL) simpleLineLayoutDebugBordersEnabled532 { 533 return [[NSUserDefaults standardUserDefaults] boolForKey: SimpleLineLayoutDebugBordersEnabledPreferenceKey];526 - (void)toggleLegacyLineLayoutVisualCoverageEnabled:(id)sender 527 { 528 [self _toggleBooleanDefault:LegacyLineLayoutVisualCoverageEnabledPreferenceKey]; 529 } 530 531 - (BOOL)legacyLineLayoutVisualCoverageEnabled 532 { 533 return [[NSUserDefaults standardUserDefaults] boolForKey:LegacyLineLayoutVisualCoverageEnabledPreferenceKey]; 534 534 } 535 535 -
trunk/Tools/MiniBrowser/mac/WK1BrowserWindowController.m
r267970 r269603 327 327 [[WebPreferences standardPreferences] setShowDebugBorders:settings.layerBordersVisible]; 328 328 [[WebPreferences standardPreferences] setSimpleLineLayoutEnabled:settings.simpleLineLayoutEnabled]; 329 [[WebPreferences standardPreferences] set SimpleLineLayoutDebugBordersEnabled:settings.simpleLineLayoutDebugBordersEnabled];329 [[WebPreferences standardPreferences] setLegacyLineLayoutVisualCoverageEnabled:settings.legacyLineLayoutVisualCoverageEnabled]; 330 330 [[WebPreferences standardPreferences] setShowRepaintCounter:settings.layerBordersVisible]; 331 331 [[WebPreferences standardPreferences] setSuppressesIncrementalRendering:settings.incrementalRenderingSuppressed]; -
trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m
r267414 r269603 473 473 preferences._compositingRepaintCountersVisible = settings.layerBordersVisible; 474 474 preferences._simpleLineLayoutEnabled = settings.simpleLineLayoutEnabled; 475 preferences._ simpleLineLayoutDebugBordersEnabled = settings.simpleLineLayoutDebugBordersEnabled;475 preferences._legacyLineLayoutVisualCoverageEnabled = settings.legacyLineLayoutVisualCoverageEnabled; 476 476 preferences._acceleratedDrawingEnabled = settings.acceleratedDrawingEnabled; 477 477 preferences._resourceUsageOverlayVisible = settings.resourceUsageOverlayVisible;
Note: See TracChangeset
for help on using the changeset viewer.