Changeset 217273 in webkit
- Timestamp:
- May 23, 2017 6:34:46 AM (7 years ago)
- Location:
- trunk
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r217225 r217273 1 2017-05-22 Emilio Cobos Álvarez <ecobos@igalia.com> 2 3 Add a RuntimeEnabledFeature for display: contents, defaulted to false. 4 https://bugs.webkit.org/show_bug.cgi?id=171984 5 6 Reviewed by Antti Koivisto. 7 8 * web-platform-tests/innerText/getter-expected.txt: 9 1 10 2017-05-22 youenn fablet <youenn@apple.com> 2 11 -
trunk/LayoutTests/imported/w3c/web-platform-tests/cssom/getComputedStyle-pseudo-expected.txt
r217125 r217273 1 1 2 2 PASS Resolution of width is correct for ::before and ::after pseudo-elements 3 PASS Resolution of width is correct for ::before and ::after pseudo-elements of display: contents elements 3 FAIL Resolution of width is correct for ::before and ::after pseudo-elements of display: contents elements assert_equals: expected "50px" but got "auto" 4 4 -
trunk/LayoutTests/imported/w3c/web-platform-tests/innerText/getter-expected.txt
r216981 r217273 52 52 PASS child of display:none child of svg ("<div style='display:none'><div id='target'>abc") 53 53 PASS display:contents container ("<div style='display:contents'>abc") 54 PASS display:contents container ("<div><div style='display:contents'>abc") 54 FAIL display:contents container ("<div><div style='display:contents'>abc") assert_equals: expected "abc" but got "abc\n" 55 55 PASS display:contents rendered ("<div>123<span style='display:contents'>abc") 56 PASS display:contents not processed via textContent ("<div style='display:contents'> ") 56 FAIL display:contents not processed via textContent ("<div style='display:contents'> ") assert_equals: expected "" but got " " 57 57 PASS display:contents not processed via textContent ("<div><div style='display:contents'> ") 58 58 PASS visibility:hidden container ("<div style='visibility:hidden'>abc") -
trunk/Source/WebCore/ChangeLog
r217272 r217273 1 2017-05-22 Emilio Cobos Álvarez <ecobos@igalia.com> 2 3 Add a RuntimeEnabledFeature for display: contents, defaulted to false. 4 https://bugs.webkit.org/show_bug.cgi?id=171984 5 6 Reviewed by Antti Koivisto. 7 8 The "defaulted to false" is not only because there are spec issues, 9 but because I ran the WPT suite, and there was a fair amount of 10 crashes and messed render trees. 11 12 Tests: imported/w3c/web-platform-tests/innerText/getter.html 13 14 * css/StyleResolver.cpp: 15 (WebCore::StyleResolver::adjustRenderStyle): 16 * page/RuntimeEnabledFeatures.h: 17 (WebCore::RuntimeEnabledFeatures::setDisplayContentsEnabled): 18 (WebCore::RuntimeEnabledFeatures::displayContentsEnabled): 19 1 20 2017-05-22 Myles C. Maxfield <mmaxfield@apple.com> 2 21 -
trunk/Source/WebCore/css/StyleResolver.cpp
r216981 r217273 106 106 #include "RenderView.h" 107 107 #include "RuleSet.h" 108 #include "RuntimeEnabledFeatures.h" 108 109 #include "SVGDocument.h" 109 110 #include "SVGDocumentExtensions.h" … … 796 797 if (style.display() == CONTENTS) { 797 798 // FIXME: Enable for all elements. 798 bool elementSupportsDisplayContents = is<HTMLSlotElement>(element) ;799 bool elementSupportsDisplayContents = is<HTMLSlotElement>(element) || RuntimeEnabledFeatures::sharedFeatures().displayContentsEnabled(); 799 800 if (!elementSupportsDisplayContents) 800 801 style.setDisplay(INLINE); -
trunk/Source/WebCore/page/RuntimeEnabledFeatures.h
r217071 r217273 44 44 WTF_MAKE_NONCOPYABLE(RuntimeEnabledFeatures); 45 45 public: 46 void setDisplayContentsEnabled(bool isEnabled) { m_isDisplayContentsEnabled = isEnabled; } 47 bool displayContentsEnabled() const { return m_isDisplayContentsEnabled; } 48 46 49 void setLinkPreloadEnabled(bool isEnabled) { m_isLinkPreloadEnabled = isEnabled; } 47 50 bool linkPreloadEnabled() const { return m_isLinkPreloadEnabled; } … … 214 217 bool m_isCredentialManagementEnabled { false }; 215 218 219 bool m_isDisplayContentsEnabled { false }; 216 220 bool m_isShadowDOMEnabled { true }; 217 221 bool m_areCustomElementsEnabled { true }; -
trunk/Source/WebKit/mac/ChangeLog
r217251 r217273 1 2017-05-23 Emilio Cobos Álvarez <ecobos@igalia.com> 2 3 Add a RuntimeEnabledFeature for display: contents, defaulted to false. 4 https://bugs.webkit.org/show_bug.cgi?id=171984 5 6 Reviewed by Antti Koivisto. 7 8 * WebView/WebPreferenceKeysPrivate.h: 9 * WebView/WebPreferences.mm: 10 (+[WebPreferences initialize]): 11 (-[WebPreferences displayContentsEnabled]): 12 (-[WebPreferences setDisplayContentsEnabled:]): 13 * WebView/WebPreferencesPrivate.h: 14 * WebView/WebView.mm: 15 (-[WebView _preferencesChanged:]): 16 1 17 2017-05-22 Youenn Fablet <youenn@apple.com> 2 18 -
trunk/Source/WebKit/mac/WebView/WebPreferenceKeysPrivate.h
r217251 r217273 234 234 #define WebKitAttachmentElementEnabledPreferenceKey @"WebKitAttachmentElementEnabled" 235 235 #define WebKitIntersectionObserverEnabledPreferenceKey @"WebKitIntersectionObserverEnabled" 236 #define WebKitDisplayContentsEnabledPreferenceKey @"WebKitDisplayContentsEnabled" 236 237 #define WebKitUserTimingEnabledPreferenceKey @"WebKitUserTimingEnabled" 237 238 #define WebKitResourceTimingEnabledPreferenceKey @"WebKitResourceTimingEnabled" -
trunk/Source/WebKit/mac/WebView/WebPreferences.mm
r217251 r217273 666 666 @NO, WebKitIntersectionObserverEnabledPreferenceKey, 667 667 #endif 668 @NO, WebKitDisplayContentsEnabledPreferenceKey, 668 669 @NO, WebKitUserTimingEnabledPreferenceKey, 669 670 @NO, WebKitResourceTimingEnabledPreferenceKey, … … 3023 3024 } 3024 3025 3026 - (BOOL)displayContentsEnabled 3027 { 3028 return [self _boolValueForKey:WebKitDisplayContentsEnabledPreferenceKey]; 3029 } 3030 3031 - (void)setDisplayContentsEnabled:(BOOL)flag 3032 { 3033 [self _setBoolValue:flag forKey:WebKitDisplayContentsEnabledPreferenceKey]; 3034 } 3035 3025 3036 - (BOOL)userTimingEnabled 3026 3037 { -
trunk/Source/WebKit/mac/WebView/WebPreferencesPrivate.h
r217251 r217273 553 553 @property (nonatomic) BOOL allowsInlineMediaPlaybackAfterFullscreen; 554 554 @property (nonatomic) BOOL intersectionObserverEnabled; 555 @property (nonatomic) BOOL displayContentsEnabled; 555 556 @property (nonatomic) BOOL userTimingEnabled; 556 557 @property (nonatomic) BOOL resourceTimingEnabled; -
trunk/Source/WebKit/mac/WebView/WebView.mm
r217251 r217273 3043 3043 RuntimeEnabledFeatures::sharedFeatures().setIntersectionObserverEnabled(preferences.intersectionObserverEnabled); 3044 3044 #endif 3045 RuntimeEnabledFeatures::sharedFeatures().setDisplayContentsEnabled(preferences.displayContentsEnabled); 3045 3046 3046 3047 #if ENABLE(SUBTLE_CRYPTO) -
trunk/Source/WebKit2/ChangeLog
r217260 r217273 1 2017-05-23 Emilio Cobos Álvarez <ecobos@igalia.com> 2 3 Add a RuntimeEnabledFeature for display: contents, defaulted to false. 4 https://bugs.webkit.org/show_bug.cgi?id=171984 5 6 Reviewed by Antti Koivisto. 7 8 * Shared/WebPreferencesDefinitions.h: 9 * UIProcess/API/C/WKPreferences.cpp: 10 (WKPreferencesSetDisplayContentsEnabled): 11 (WKPreferencesGetDisplayContentsEnabled): 12 * UIProcess/API/C/WKPreferencesRefPrivate.h: 13 * WebProcess/WebPage/WebPage.cpp: 14 (WebKit::WebPage::updatePreferences): 15 1 16 2017-05-20 Alex Christensen <achristensen@webkit.org> 2 17 -
trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h
r217251 r217273 360 360 macro(WebGL2Enabled, webGL2Enabled, Bool, bool, false, "WebGL 2.0", "WebGL 2 prototype") \ 361 361 macro(WebGPUEnabled, webGPUEnabled, Bool, bool, false, "WebGPU", "WebGPU prototype") \ 362 macro(DisplayContentsEnabled, displayContentsEnabled, Bool, bool, false, "display: contents", "Enable CSS display: contents support") \ 362 363 \ 363 364 -
trunk/Source/WebKit2/UIProcess/API/C/WKPreferences.cpp
r217251 r217273 1622 1622 } 1623 1623 1624 void WKPreferencesSetDisplayContentsEnabled(WKPreferencesRef preferencesRef, bool flag) 1625 { 1626 toImpl(preferencesRef)->setDisplayContentsEnabled(flag); 1627 } 1628 1629 bool WKPreferencesGetDisplayContentsEnabled(WKPreferencesRef preferencesRef) 1630 { 1631 return toImpl(preferencesRef)->displayContentsEnabled(); 1632 } 1633 1624 1634 void WKPreferencesSetDownloadAttributeEnabled(WKPreferencesRef preferencesRef, bool flag) 1625 1635 { -
trunk/Source/WebKit2/UIProcess/API/C/WKPreferencesRefPrivate.h
r217251 r217273 455 455 456 456 // Defaults to false 457 WK_EXPORT void WKPreferencesSetDisplayContentsEnabled(WKPreferencesRef, bool flag); 458 WK_EXPORT bool WKPreferencesGetDisplayContentsEnabled(WKPreferencesRef); 459 460 // Defaults to false 457 461 WK_EXPORT void WKPreferencesSetUserTimingEnabled(WKPreferencesRef, bool flag); 458 462 WK_EXPORT bool WKPreferencesGetUserTimingEnabled(WKPreferencesRef); -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r217251 r217273 3355 3355 #endif 3356 3356 3357 RuntimeEnabledFeatures::sharedFeatures().setDisplayContentsEnabled(store.getBoolValueForKey(WebPreferencesKey::displayContentsEnabledKey())); 3357 3358 RuntimeEnabledFeatures::sharedFeatures().setUserTimingEnabled(store.getBoolValueForKey(WebPreferencesKey::userTimingEnabledKey())); 3358 3359 RuntimeEnabledFeatures::sharedFeatures().setResourceTimingEnabled(store.getBoolValueForKey(WebPreferencesKey::resourceTimingEnabledKey())); -
trunk/Tools/ChangeLog
r217260 r217273 1 2017-05-23 Emilio Cobos Álvarez <ecobos@igalia.com> 2 3 Add a RuntimeEnabledFeature for display: contents, defaulted to false. 4 https://bugs.webkit.org/show_bug.cgi?id=171984 5 6 Reviewed by Antti Koivisto. 7 8 * DumpRenderTree/mac/DumpRenderTree.mm: 9 (enableExperimentalFeatures): 10 * WebKitTestRunner/TestController.cpp: 11 (WTR::TestController::resetPreferencesToConsistentValues): 12 1 13 2017-05-20 Alex Christensen <achristensen@webkit.org> 2 14 -
trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm
r216981 r217273 839 839 { 840 840 [preferences setCSSGridLayoutEnabled:YES]; 841 [preferences setDisplayContentsEnabled:YES]; 841 842 // FIXME: SpringTimingFunction 842 843 [preferences setGamepadsEnabled:YES]; -
trunk/Tools/WebKitTestRunner/TestController.cpp
r217068 r217273 675 675 WKPreferencesSetTabToLinksEnabled(preferences, false); 676 676 WKPreferencesSetInteractiveFormValidationEnabled(preferences, true); 677 WKPreferencesSetDisplayContentsEnabled(preferences, true); 677 678 678 679 WKPreferencesSetMockScrollbarsEnabled(preferences, options.useMockScrollbars);
Note: See TracChangeset
for help on using the changeset viewer.