Changeset 254790 in webkit
- Timestamp:
- Jan 17, 2020, 9:49:24 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 5 added
- 46 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/inheritance-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/inheritance.html (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/parsing/scroll-behavior-computed-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/parsing/scroll-behavior-computed.html (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/parsing/scroll-behavior-valid-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/parsing/scroll-behavior-valid.html (modified) (1 diff)
-
Source/WebCore/CMakeLists.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/DerivedSources.make (modified) (1 diff)
-
Source/WebCore/Headers.cmake (modified) (1 diff)
-
Source/WebCore/Sources.txt (modified) (2 diffs)
-
Source/WebCore/WebCore.xcodeproj/project.pbxproj (modified) (9 diffs)
-
Source/WebCore/css/CSSComputedStyleDeclaration.cpp (modified) (1 diff)
-
Source/WebCore/css/CSSProperties.json (modified) (2 diffs)
-
Source/WebCore/css/CSSValueKeywords.in (modified) (1 diff)
-
Source/WebCore/css/parser/CSSParserContext.cpp (modified) (2 diffs)
-
Source/WebCore/css/parser/CSSParserContext.h (modified) (2 diffs)
-
Source/WebCore/css/parser/CSSParserFastPaths.cpp (modified) (2 diffs)
-
Source/WebCore/css/parser/CSSPropertyParser.cpp (modified) (2 diffs)
-
Source/WebCore/page/ScrollBehavior.cpp (added)
-
Source/WebCore/page/ScrollBehavior.h (added)
-
Source/WebCore/page/ScrollBehavior.idl (added)
-
Source/WebCore/page/ScrollIntoViewOptions.h (modified) (1 diff)
-
Source/WebCore/page/ScrollIntoViewOptions.idl (modified) (1 diff)
-
Source/WebCore/page/ScrollOptions.h (added)
-
Source/WebCore/page/ScrollOptions.idl (added)
-
Source/WebCore/page/ScrollToOptions.h (modified) (3 diffs)
-
Source/WebCore/page/ScrollToOptions.idl (modified) (1 diff)
-
Source/WebCore/page/Settings.yaml (modified) (1 diff)
-
Source/WebCore/rendering/style/RenderStyle.h (modified) (3 diffs)
-
Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp (modified) (3 diffs)
-
Source/WebCore/rendering/style/StyleRareNonInheritedData.h (modified) (1 diff)
-
Source/WebCore/style/StyleBuilderConverter.h (modified) (2 diffs)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/Shared/WebPreferences.yaml (modified) (1 diff)
-
Source/WebKitLegacy/mac/ChangeLog (modified) (1 diff)
-
Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h (modified) (1 diff)
-
Source/WebKitLegacy/mac/WebView/WebPreferences.mm (modified) (2 diffs)
-
Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h (modified) (1 diff)
-
Source/WebKitLegacy/mac/WebView/WebView.mm (modified) (1 diff)
-
Source/WebKitLegacy/win/ChangeLog (modified) (1 diff)
-
Source/WebKitLegacy/win/Interfaces/IWebPreferencesPrivate.idl (modified) (1 diff)
-
Source/WebKitLegacy/win/WebPreferenceKeysPrivate.h (modified) (1 diff)
-
Source/WebKitLegacy/win/WebPreferences.cpp (modified) (2 diffs)
-
Source/WebKitLegacy/win/WebPreferences.h (modified) (1 diff)
-
Source/WebKitLegacy/win/WebView.cpp (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/DumpRenderTree/TestOptions.cpp (modified) (1 diff)
-
Tools/DumpRenderTree/TestOptions.h (modified) (1 diff)
-
Tools/DumpRenderTree/mac/DumpRenderTree.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r254672 r254790 1 2020-01-17 Cathie Chen <cathiechen@igalia.com> 2 3 Add support for scroll behavior parsing 4 https://bugs.webkit.org/show_bug.cgi?id=205009 5 6 Reviewed by Frédéric Wang. 7 8 Based on the patch by Frédéric Wang. 9 10 * web-platform-tests/css/cssom-view/inheritance-expected.txt: 11 * web-platform-tests/css/cssom-view/inheritance.html: 12 * web-platform-tests/css/cssom-view/parsing/scroll-behavior-computed-expected.txt: 13 * web-platform-tests/css/cssom-view/parsing/scroll-behavior-computed.html: 14 * web-platform-tests/css/cssom-view/parsing/scroll-behavior-valid-expected.txt: 15 * web-platform-tests/css/cssom-view/parsing/scroll-behavior-valid.html: 16 1 17 2020-01-16 Rob Buis <rbuis@igalia.com> 2 18 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/inheritance-expected.txt
r251634 r254790 1 1 2 FAIL Property scroll-behavior has initial value auto assert_true: scroll-behavior doesn't seem to be supported in the computed style expected true got false 3 FAIL Property scroll-behavior does not inherit assert_true: expected true got false 2 PASS Property scroll-behavior has initial value auto 3 PASS Property scroll-behavior does not inherit 4 4 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/inheritance.html
r254129 r254790 1 <!DOCTYPE html> 1 <!DOCTYPE html><!-- webkit-test-runner [ experimental:CSSOMViewSmoothScrollingEnabled=true ] --> 2 2 <html> 3 3 <head> -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/parsing/scroll-behavior-computed-expected.txt
r254129 r254790 1 1 2 FAIL Property scroll-behavior value 'auto' computes to 'auto' assert_true: scroll-behavior doesn't seem to be supported in the computed style expected true got false 3 FAIL Property scroll-behavior value 'smooth' computes to 'smooth' assert_true: scroll-behavior doesn't seem to be supported in the computed style expected true got false 2 PASS Property scroll-behavior value 'auto' computes to 'auto' 3 PASS Property scroll-behavior value 'smooth' computes to 'smooth' 4 4 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/parsing/scroll-behavior-computed.html
r254129 r254790 1 <!DOCTYPE html> 1 <!DOCTYPE html><!-- webkit-test-runner [ experimental:CSSOMViewSmoothScrollingEnabled=true ] --> 2 2 <html> 3 3 <head> -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/parsing/scroll-behavior-valid-expected.txt
r254129 r254790 1 1 2 FAIL e.style['scroll-behavior'] = "auto" should set the property value assert_not_equals: property should be set got disallowed value "" 3 FAIL e.style['scroll-behavior'] = "smooth" should set the property value assert_not_equals: property should be set got disallowed value "" 2 PASS e.style['scroll-behavior'] = "auto" should set the property value 3 PASS e.style['scroll-behavior'] = "smooth" should set the property value 4 4 -
trunk/LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/parsing/scroll-behavior-valid.html
r254129 r254790 1 <!DOCTYPE html> 1 <!DOCTYPE html><!-- webkit-test-runner [ experimental:CSSOMViewSmoothScrollingEnabled=true ] --> 2 2 <html> 3 3 <head> -
trunk/Source/WebCore/CMakeLists.txt
r254681 r254790 973 973 page/ResizeObserverEntry.idl 974 974 page/Screen.idl 975 page/ScrollBehavior.idl 975 976 page/ScrollIntoViewOptions.idl 976 977 page/ScrollLogicalPosition.idl 978 page/ScrollOptions.idl 977 979 page/ScrollToOptions.idl 978 980 page/ShareData.idl -
trunk/Source/WebCore/ChangeLog
r254789 r254790 1 2020-01-17 Cathie Chen <cathiechen@igalia.com> 2 3 Add support for scroll behavior parsing 4 https://bugs.webkit.org/show_bug.cgi?id=205009 5 6 Reviewed by Frédéric Wang. 7 8 Based on the patch by Frédéric Wang. 9 10 Add support for parsing scroll-behavior css property and ScrollOptions. 11 12 Tests: LayoutTests/imported/w3c/web-platform-tests/css/cssom-view/inheritance.html 13 LayoutTests/web-platform-tests/css/cssom-view/parsing/scroll-behavior-computed.html 14 LayoutTests/web-platform-tests/css/cssom-view/parsing/scroll-behavior-valid.html 15 16 * CMakeLists.txt: Add IDL files for ScrollOptions and ScrollBehavior. 17 * DerivedSources.make: 18 * Headers.cmake: Add headers for ScrollBehavor and ScrollOptions. 19 * Sources.txt: Add ScrollBehavor and ScrollOptions implementation. 20 * WebCore.xcodeproj/project.pbxproj: Add files to the build system. 21 * css/CSSComputedStyleDeclaration.cpp: Handle scroll-behavior. 22 (WebCore::ComputedStyleExtractor::valueForPropertyInStyle): 23 * css/CSSProperties.json: Add scroll-behavior. 24 * css/CSSValueKeywords.in: Add keywords for scroll-behavior. 25 * css/parser/CSSParserContext.cpp: Add runtime config for scroll-behavior. 26 (WebCore::CSSParserContext::CSSParserContext): 27 (WebCore::operator==): 28 * css/parser/CSSParserContext.h: Ditto. 29 (WebCore::CSSParserContextHash::hash): 30 * css/parser/CSSParserFastPaths.cpp: Remove scroll-behavior templates. It is handled in the slow path since property can be disabled. 31 (WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue): 32 (WebCore::CSSParserFastPaths::isKeywordPropertyID): 33 * css/parser/CSSPropertyParser.cpp: 34 (WebCore::consumeScrollBehavior): 35 (WebCore::CSSPropertyParser::parseSingleValue): Parse scroll-behavior (only if enabled). 36 * page/ScrollBehavior.cpp: Added. 37 (WebCore::useSmoothScrolling): Helper funciton to determine the scroll behavior to apply to an element from the CSS and DOM behavior. 38 * page/ScrollBehavior.h: Added. 39 * page/ScrollBehavior.idl: Added. 40 * page/ScrollIntoViewOptions.h: Make this class inherits from ScrollOption. Also remove unnecessary forward declaration. 41 * page/ScrollIntoViewOptions.idl: Make this class inherits from ScrollOption. 42 * page/ScrollOptions.h: Added. 43 * page/ScrollOptions.idl: Added. 44 * page/ScrollToOptions.h: Make this struct inherits from ScrollOptions. 45 (WebCore::ScrollToOptions::ScrollToOptions): 46 (WebCore::normalizeNonFiniteCoordinatesOrFallBackTo): Copy the current ScrollToOptions so that the scroll behavior is preserved. 47 * page/ScrollToOptions.idl: Make this class inherit from ScrollOptions. 48 * page/Settings.yaml: New setting for CSSOM View smooth scrolling. 49 * rendering/style/RenderStyle.h: Handle 'smooth scrolling' boolean data. 50 (WebCore::RenderStyle::useSmoothScrolling const): 51 (WebCore::RenderStyle::setUseSmoothScrolling): 52 (WebCore::RenderStyle::initialUseSmoothScrolling): 53 * rendering/style/StyleRareNonInheritedData.cpp: 54 (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): 55 (WebCore::StyleRareNonInheritedData::operator== const): 56 * rendering/style/StyleRareNonInheritedData.h: 57 * style/StyleBuilderConverter.h: 58 (WebCore::Style::BuilderConverter::convertSmoothScrolling): 59 1 60 2020-01-17 Ryosuke Niwa <rniwa@webkit.org> 2 61 -
trunk/Source/WebCore/DerivedSources.make
r254029 r254790 920 920 $(WebCore)/page/ResizeObserverEntry.idl \ 921 921 $(WebCore)/page/Screen.idl \ 922 $(WebCore)/page/ScrollBehavior.idl \ 922 923 $(WebCore)/page/ScrollIntoViewOptions.idl \ 923 924 $(WebCore)/page/ScrollLogicalPosition.idl \ 925 $(WebCore)/page/ScrollOptions.idl \ 924 926 $(WebCore)/page/ScrollToOptions.idl \ 925 927 $(WebCore)/page/ShareData.idl \ -
trunk/Source/WebCore/Headers.cmake
r254766 r254790 836 836 page/RenderingUpdateScheduler.h 837 837 page/RuntimeEnabledFeatures.h 838 page/ScrollBehavior.h 838 839 page/ScrollIntoViewOptions.h 839 840 page/ScrollLogicalPosition.h 841 page/ScrollOptions.h 840 842 page/ScrollToOptions.h 841 843 page/SecurityOrigin.h -
trunk/Source/WebCore/Sources.txt
r254766 r254790 1656 1656 page/RuntimeEnabledFeatures.cpp 1657 1657 page/Screen.cpp 1658 page/ScrollBehavior.cpp 1658 1659 page/SecurityOrigin.cpp 1659 1660 page/SecurityOriginData.cpp … … 3397 3398 JSScreen.cpp 3398 3399 JSScriptProcessorNode.cpp 3400 JSScrollBehavior.cpp 3399 3401 JSScrollIntoViewOptions.cpp 3400 3402 JSScrollLogicalPosition.cpp 3403 JSScrollOptions.cpp 3401 3404 JSScrollToOptions.cpp 3402 3405 JSSecurityPolicyViolationEvent.cpp -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r254779 r254790 2413 2413 834476EF1DA5BC5E002B5EB0 /* JSScrollLogicalPosition.h in Headers */ = {isa = PBXBuildFile; fileRef = 83E9B3011DA5A51E00FFD8D4 /* JSScrollLogicalPosition.h */; }; 2414 2414 834476EF1DA5BC5E002B5EC1 /* JSScrollIntoViewOptions.h in Headers */ = {isa = PBXBuildFile; fileRef = 83E9B3011DA5A51E00FFD8E5 /* JSScrollIntoViewOptions.h */; }; 2415 834476EF1DA5BC5E002B6EB0 /* JSScrollBehavior.h in Headers */ = {isa = PBXBuildFile; fileRef = 83E9B3011DA5A51E00FFE8D4 /* JSScrollBehavior.h */; }; 2416 834476EF1DA5BC5E002B6EC1 /* JSScrollOptions.h in Headers */ = {isa = PBXBuildFile; fileRef = 83E9B3011DA5A51E00FFE8E5 /* JSScrollOptions.h */; }; 2415 2417 834476EF1DA5BC5E002B6ED2 /* JSScrollToOptions.h in Headers */ = {isa = PBXBuildFile; fileRef = 83E9B3011DA5A51E00FFE8F6 /* JSScrollToOptions.h */; }; 2416 2418 8348BFAC1B85729800912F36 /* ClassCollection.h in Headers */ = {isa = PBXBuildFile; fileRef = 8348BFAA1B85729500912F36 /* ClassCollection.h */; }; … … 2467 2469 83C5795D1DA5C301006F9C86 /* ScrollLogicalPosition.h in Headers */ = {isa = PBXBuildFile; fileRef = 8350C3E71DA59B6200355424 /* ScrollLogicalPosition.h */; settings = {ATTRIBUTES = (Private, ); }; }; 2468 2470 83C5795D1DA5C301006F9C97 /* ScrollIntoViewOptions.h in Headers */ = {isa = PBXBuildFile; fileRef = 8350C3E71DA59B6200355435 /* ScrollIntoViewOptions.h */; settings = {ATTRIBUTES = (Private, ); }; }; 2471 83C5795D1DA5C301006FAC86 /* ScrollBehavior.h in Headers */ = {isa = PBXBuildFile; fileRef = 8350C3E71DA59B6200356424 /* ScrollBehavior.h */; settings = {ATTRIBUTES = (Private, ); }; }; 2472 83C5795D1DA5C301006FAC97 /* ScrollOptions.h in Headers */ = {isa = PBXBuildFile; fileRef = 8350C3E71DA59B6200356435 /* ScrollOptions.h */; settings = {ATTRIBUTES = (Private, ); }; }; 2469 2473 83C5795D1DA5C301006FACA8 /* ScrollToOptions.h in Headers */ = {isa = PBXBuildFile; fileRef = 8350C3E71DA59B6200356446 /* ScrollToOptions.h */; settings = {ATTRIBUTES = (Private, ); }; }; 2470 2474 83D35AEC1C7187FA00F70D5A /* XMLHttpRequestEventTarget.h in Headers */ = {isa = PBXBuildFile; fileRef = 83D35AEA1C7187ED00F70D5A /* XMLHttpRequestEventTarget.h */; }; … … 10213 10217 8350C3E71DA59B6200355424 /* ScrollLogicalPosition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScrollLogicalPosition.h; sourceTree = "<group>"; }; 10214 10218 8350C3E71DA59B6200355435 /* ScrollIntoViewOptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScrollIntoViewOptions.h; sourceTree = "<group>"; }; 10219 8350C3E71DA59B6200356424 /* ScrollBehavior.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScrollBehavior.h; sourceTree = "<group>"; }; 10220 8350C3E71DA59B6200356434 /* ScrollBehavior.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScrollBehavior.cpp; sourceTree = "<group>"; }; 10221 8350C3E71DA59B6200356435 /* ScrollOptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScrollOptions.h; sourceTree = "<group>"; }; 10215 10222 8350C3E71DA59B6200356446 /* ScrollToOptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScrollToOptions.h; sourceTree = "<group>"; }; 10216 10223 8350C3E81DA59B6200355424 /* ScrollLogicalPosition.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ScrollLogicalPosition.idl; sourceTree = "<group>"; }; 10217 10224 8350C3E81DA59B6200355435 /* ScrollIntoViewOptions.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ScrollIntoViewOptions.idl; sourceTree = "<group>"; }; 10225 8350C3E81DA59B6200356424 /* ScrollBehavior.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ScrollBehavior.idl; sourceTree = "<group>"; }; 10226 8350C3E81DA59B6200356435 /* ScrollOptions.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ScrollOptions.idl; sourceTree = "<group>"; }; 10218 10227 8350C3E81DA59B6200356446 /* ScrollToOptions.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ScrollToOptions.idl; sourceTree = "<group>"; }; 10219 10228 83520C7D1A71BFCC006BD2AA /* CSSFontFamily.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CSSFontFamily.h; sourceTree = "<group>"; }; … … 10337 10346 83E9B3001DA5A51E00FFD8D4 /* JSScrollLogicalPosition.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSScrollLogicalPosition.cpp; sourceTree = "<group>"; }; 10338 10347 83E9B3001DA5A51E00FFD8E5 /* JSScrollIntoViewOptions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSScrollIntoViewOptions.cpp; sourceTree = "<group>"; }; 10348 83E9B3001DA5A51E00FFE8D4 /* JSScrollBehavior.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSScrollBehavior.cpp; sourceTree = "<group>"; }; 10349 83E9B3001DA5A51E00FFE8E5 /* JSScrollOptions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSScrollOptions.cpp; sourceTree = "<group>"; }; 10339 10350 83E9B3001DA5A51E00FFE8F6 /* JSScrollToOptions.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSScrollToOptions.cpp; sourceTree = "<group>"; }; 10340 10351 83E9B3011DA5A51E00FFD8D4 /* JSScrollLogicalPosition.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSScrollLogicalPosition.h; sourceTree = "<group>"; }; 10341 10352 83E9B3011DA5A51E00FFD8E5 /* JSScrollIntoViewOptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSScrollIntoViewOptions.h; sourceTree = "<group>"; }; 10353 83E9B3011DA5A51E00FFE8D4 /* JSScrollBehavior.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSScrollBehavior.h; sourceTree = "<group>"; }; 10354 83E9B3011DA5A51E00FFE8E5 /* JSScrollOptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSScrollOptions.h; sourceTree = "<group>"; }; 10342 10355 83E9B3011DA5A51E00FFE8F6 /* JSScrollToOptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSScrollToOptions.h; sourceTree = "<group>"; }; 10343 10356 83EE598B1F50958B003E8B30 /* JSErrorCallback.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSErrorCallback.h; sourceTree = "<group>"; }; … … 20839 20852 BCEC01BB0C274DAC009F4EC9 /* Screen.h */, 20840 20853 BCEC01BC0C274DAC009F4EC9 /* Screen.idl */, 20854 8350C3E71DA59B6200356434 /* ScrollBehavior.cpp */, 20855 8350C3E71DA59B6200356424 /* ScrollBehavior.h */, 20856 8350C3E81DA59B6200356424 /* ScrollBehavior.idl */, 20841 20857 8350C3E71DA59B6200355435 /* ScrollIntoViewOptions.h */, 20842 20858 8350C3E81DA59B6200355435 /* ScrollIntoViewOptions.idl */, 20843 20859 8350C3E71DA59B6200355424 /* ScrollLogicalPosition.h */, 20844 20860 8350C3E81DA59B6200355424 /* ScrollLogicalPosition.idl */, 20861 8350C3E71DA59B6200356435 /* ScrollOptions.h */, 20862 8350C3E81DA59B6200356435 /* ScrollOptions.idl */, 20845 20863 8350C3E71DA59B6200356446 /* ScrollToOptions.h */, 20846 20864 8350C3E81DA59B6200356446 /* ScrollToOptions.idl */, … … 25636 25654 BCEC01C00C274DDD009F4EC9 /* JSScreen.cpp */, 25637 25655 BCEC01C10C274DDD009F4EC9 /* JSScreen.h */, 25656 83E9B3001DA5A51E00FFE8D4 /* JSScrollBehavior.cpp */, 25657 83E9B3011DA5A51E00FFE8D4 /* JSScrollBehavior.h */, 25638 25658 83E9B3001DA5A51E00FFD8E5 /* JSScrollIntoViewOptions.cpp */, 25639 25659 83E9B3011DA5A51E00FFD8E5 /* JSScrollIntoViewOptions.h */, 25640 25660 83E9B3001DA5A51E00FFD8D4 /* JSScrollLogicalPosition.cpp */, 25641 25661 83E9B3011DA5A51E00FFD8D4 /* JSScrollLogicalPosition.h */, 25662 83E9B3001DA5A51E00FFE8E5 /* JSScrollOptions.cpp */, 25663 83E9B3011DA5A51E00FFE8E5 /* JSScrollOptions.h */, 25642 25664 83E9B3001DA5A51E00FFE8F6 /* JSScrollToOptions.cpp */, 25643 25665 83E9B3011DA5A51E00FFE8F6 /* JSScrollToOptions.h */, … … 31004 31026 BCEC01C30C274DDD009F4EC9 /* JSScreen.h in Headers */, 31005 31027 FDA15ECE12B03F61003A583A /* JSScriptProcessorNode.h in Headers */, 31028 834476EF1DA5BC5E002B6EB0 /* JSScrollBehavior.h in Headers */, 31006 31029 834476EF1DA5BC5E002B5EC1 /* JSScrollIntoViewOptions.h in Headers */, 31007 31030 834476EF1DA5BC5E002B5EB0 /* JSScrollLogicalPosition.h in Headers */, 31031 834476EF1DA5BC5E002B6EC1 /* JSScrollOptions.h in Headers */, 31008 31032 834476EF1DA5BC5E002B6ED2 /* JSScrollToOptions.h in Headers */, 31009 31033 CED06AD11C77754800FDFAF1 /* JSSecurityPolicyViolationEvent.h in Headers */, … … 32217 32241 BC8B853E0E7C7F1100AB6984 /* ScrollbarThemeMac.h in Headers */, 32218 32242 0FE71406142170B800DB33BA /* ScrollbarThemeMock.h in Headers */, 32243 83C5795D1DA5C301006FAC86 /* ScrollBehavior.h in Headers */, 32219 32244 1AA84F05143BA7BD0051D153 /* ScrollController.h in Headers */, 32220 32245 0F605AED15F94848004DF0C0 /* ScrollingConstraints.h in Headers */, … … 32253 32278 7AAFE8D019CB8672000F56D8 /* ScrollLatchingState.h in Headers */, 32254 32279 83C5795D1DA5C301006F9C86 /* ScrollLogicalPosition.h in Headers */, 32280 83C5795D1DA5C301006FAC97 /* ScrollOptions.h in Headers */, 32255 32281 F478755419983AFF0024A287 /* ScrollSnapAnimatorState.h in Headers */, 32256 32282 F46729281E0DE68500ACC3D8 /* ScrollSnapOffsetsInfo.h in Headers */, -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r254561 r254790 3375 3375 return cssValuePool.createIdentifierValue(CSSValueTouch); 3376 3376 #endif 3377 case CSSPropertyScrollBehavior: 3378 if (!style.useSmoothScrolling()) 3379 return cssValuePool.createIdentifierValue(CSSValueAuto); 3380 return cssValuePool.createIdentifierValue(CSSValueSmooth); 3377 3381 case CSSPropertyPerspective: 3378 3382 if (!style.hasPerspective()) -
trunk/Source/WebCore/css/CSSProperties.json
r254187 r254790 3555 3555 } 3556 3556 }, 3557 "scroll-behavior": { 3558 "values": [ 3559 "auto", 3560 "smooth" 3561 ], 3562 "specification": { 3563 "category": "cssom-view", 3564 "url": "https://drafts.csswg.org/cssom-view/#propdef-scroll-behavior" 3565 } 3566 }, 3557 3567 "shape-rendering": { 3558 3568 "inherited": true, … … 6482 6492 } 6483 6493 }, 6494 "scroll-behavior": { 6495 "values": [ 6496 "auto", 6497 "smooth" 6498 ], 6499 "codegen-properties": { 6500 "converter": "SmoothScrolling", 6501 "name-for-methods": "UseSmoothScrolling" 6502 }, 6503 "status": { 6504 "status": "experimental" 6505 }, 6506 "specification": { 6507 "url": "https://drafts.csswg.org/cssom-view/#propdef-scroll-behavior" 6508 } 6509 }, 6484 6510 "scroll-padding": { 6485 6511 "codegen-properties": { -
trunk/Source/WebCore/css/CSSValueKeywords.in
r254187 r254790 1389 1389 #endif 1390 1390 1391 // scroll-behavior 1392 // auto 1393 smooth 1394 1391 1395 // hanging-punctuation 1392 1396 allow-end -
trunk/Source/WebCore/css/parser/CSSParserContext.cpp
r245483 r254790 76 76 #endif 77 77 deferredCSSParserEnabled = document.settings().deferredCSSParserEnabled(); 78 scrollBehaviorEnabled = document.settings().CSSOMViewSmoothScrollingEnabled(); 78 79 useSystemAppearance = document.page() ? document.page()->useSystemAppearance() : false; 79 80 } … … 100 101 #endif 101 102 && a.deferredCSSParserEnabled == b.deferredCSSParserEnabled 103 && a.scrollBehaviorEnabled == b.scrollBehaviorEnabled 102 104 && a.hasDocumentSecurityOrigin == b.hasDocumentSecurityOrigin 103 105 && a.useSystemAppearance == b.useSystemAppearance; -
trunk/Source/WebCore/css/parser/CSSParserContext.h
r251655 r254790 66 66 #endif 67 67 bool deferredCSSParserEnabled { false }; 68 bool scrollBehaviorEnabled { false }; 68 69 69 70 // This is only needed to support getMatchedCSSRules. … … 117 118 & key.attachmentEnabled << 11 118 119 #endif 119 & key.mode << 12; // Keep this last. 120 & key.scrollBehaviorEnabled << 12 121 & key.mode << 13; // Keep this last. 120 122 hash ^= WTF::intHash(bits); 121 123 return hash; -
trunk/Source/WebCore/css/parser/CSSParserFastPaths.cpp
r254232 r254790 639 639 case CSSPropertyResize: // none | both | horizontal | vertical | auto 640 640 return valueID == CSSValueNone || valueID == CSSValueBoth || valueID == CSSValueHorizontal || valueID == CSSValueVertical || valueID == CSSValueAuto; 641 // FIXME-NEWPARSER: Investigate this property.642 // case CSSPropertyScrollBehavior: // auto | smooth643 // ASSERT(RuntimeEnabledFeatures::cssomSmoothScrollEnabled());644 // return valueID == CSSValueAuto || valueID == CSSValueSmooth;645 641 case CSSPropertyShapeRendering: 646 642 return valueID == CSSValueAuto || valueID == CSSValueOptimizeSpeed || valueID == CSSValueCrispedges || valueID == CSSValueGeometricPrecision; … … 943 939 // case CSSPropertyHyphens: 944 940 // case CSSPropertyOverflowAnchor: 945 // case CSSPropertyScrollBehavior:946 941 // case CSSPropertyScrollSnapType: 947 942 // case CSSPropertyTextAlignLast: -
trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp
r254232 r254790 2328 2328 #endif 2329 2329 2330 static RefPtr<CSSPrimitiveValue> consumeScrollBehavior(CSSParserTokenRange& range) 2331 { 2332 auto valueID = range.peek().id(); 2333 if (valueID != CSSValueAuto && valueID != CSSValueSmooth) 2334 return nullptr; 2335 return consumeIdent(range); 2336 } 2337 2330 2338 static RefPtr<CSSValue> consumeBorderRadiusCorner(CSSParserTokenRange& range, CSSParserMode cssParserMode) 2331 2339 { … … 3910 3918 return consumeScrollSnapType(m_range); 3911 3919 #endif 3920 case CSSPropertyScrollBehavior: 3921 if (!m_context.scrollBehaviorEnabled) 3922 return nullptr; 3923 return consumeScrollBehavior(m_range); 3912 3924 case CSSPropertyClip: 3913 3925 return consumeClip(m_range, m_context.mode); -
trunk/Source/WebCore/page/ScrollIntoViewOptions.h
r239427 r254790 21 21 22 22 #include "ScrollLogicalPosition.h" 23 #include "ScrollOptions.h" 23 24 24 25 namespace WebCore { 25 26 26 class Element; 27 28 struct ScrollIntoViewOptions { 27 struct ScrollIntoViewOptions : ScrollOptions { 29 28 Optional<ScrollLogicalPosition> blockPosition { ScrollLogicalPosition::Start }; 30 29 Optional<ScrollLogicalPosition> inlinePosition { ScrollLogicalPosition::Nearest }; -
trunk/Source/WebCore/page/ScrollIntoViewOptions.idl
r235659 r254790 18 18 */ 19 19 20 // FIXME(webkit.org/b/188043): Support ScrollBehavior. 21 dictionary ScrollIntoViewOptions { 20 dictionary ScrollIntoViewOptions : ScrollOptions { 22 21 [ImplementedAs=blockPosition] ScrollLogicalPosition block = "start"; 23 22 [ImplementedAs=inlinePosition] ScrollLogicalPosition inline = "nearest"; -
trunk/Source/WebCore/page/ScrollToOptions.h
r239427 r254790 29 29 #pragma once 30 30 31 #include "ScrollOptions.h" 31 32 #include <cmath> 32 33 #include <wtf/Optional.h> … … 34 35 namespace WebCore { 35 36 36 struct ScrollToOptions {37 struct ScrollToOptions : ScrollOptions { 37 38 Optional<double> left; 38 39 Optional<double> top; 40 41 ScrollToOptions() = default; 42 ScrollToOptions(double x, double y) 43 : left(x) 44 , top(y) 45 { } 39 46 }; 40 47 … … 48 55 inline ScrollToOptions normalizeNonFiniteCoordinatesOrFallBackTo(const ScrollToOptions& value, double x, double y) 49 56 { 50 ScrollToOptions options ;57 ScrollToOptions options = value; 51 58 options.left = normalizeNonFiniteValueOrFallBackTo(value.left, x); 52 59 options.top = normalizeNonFiniteValueOrFallBackTo(value.top, y); -
trunk/Source/WebCore/page/ScrollToOptions.idl
r234254 r254790 27 27 */ 28 28 29 // FIXME(webkit.org/b/188043): Support ScrollBehavior. 30 dictionary ScrollToOptions { 29 dictionary ScrollToOptions : ScrollOptions { 31 30 unrestricted double left; 32 31 unrestricted double top; -
trunk/Source/WebCore/page/Settings.yaml
r254669 r254790 622 622 initial: false 623 623 624 CSSOMViewSmoothScrollingEnabled: 625 initial: false 626 624 627 inputEventsEnabled: 625 628 initial: true -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r254187 r254790 737 737 #endif 738 738 739 bool useSmoothScrolling() const { return m_rareNonInheritedData->useSmoothScrolling; } 740 739 741 #if ENABLE(TEXT_AUTOSIZING) 740 742 TextSizeAdjustment textSizeAdjust() const { return m_rareInheritedData->textSizeAdjust; } … … 1264 1266 void setUseTouchOverflowScrolling(bool v) { SET_VAR(m_rareInheritedData, useTouchOverflowScrolling, v); } 1265 1267 #endif 1268 1269 void setUseSmoothScrolling(bool v) { SET_VAR(m_rareNonInheritedData, useSmoothScrolling, v); } 1266 1270 1267 1271 #if ENABLE(TEXT_AUTOSIZING) … … 1702 1706 #endif 1703 1707 1708 static bool initialUseSmoothScrolling() { return false; } 1709 1704 1710 static const FilterOperations& initialFilter() { static NeverDestroyed<FilterOperations> ops; return ops; } 1705 1711 static const FilterOperations& initialAppleColorFilter() { static NeverDestroyed<FilterOperations> ops; return ops; } -
trunk/Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp
r253987 r254790 90 90 , userDrag(static_cast<unsigned>(RenderStyle::initialUserDrag())) 91 91 , textOverflow(static_cast<unsigned>(RenderStyle::initialTextOverflow())) 92 , useSmoothScrolling(static_cast<unsigned>(RenderStyle::initialUseSmoothScrolling())) 92 93 , marginBeforeCollapse(static_cast<unsigned>(MarginCollapse::Collapse)) 93 94 , marginAfterCollapse(static_cast<unsigned>(MarginCollapse::Collapse)) … … 183 184 , userDrag(o.userDrag) 184 185 , textOverflow(o.textOverflow) 186 , useSmoothScrolling(o.useSmoothScrolling) 185 187 , marginBeforeCollapse(o.marginBeforeCollapse) 186 188 , marginAfterCollapse(o.marginAfterCollapse) … … 281 283 && userDrag == o.userDrag 282 284 && textOverflow == o.textOverflow 285 && useSmoothScrolling == o.useSmoothScrolling 283 286 && marginBeforeCollapse == o.marginBeforeCollapse 284 287 && marginAfterCollapse == o.marginAfterCollapse -
trunk/Source/WebCore/rendering/style/StyleRareNonInheritedData.h
r253987 r254790 184 184 unsigned userDrag : 2; // UserDrag 185 185 unsigned textOverflow : 1; // Whether or not lines that spill out should be truncated with "..." 186 unsigned useSmoothScrolling : 1; // ScrollBehavior 186 187 unsigned marginBeforeCollapse : 2; // MarginCollapse 187 188 unsigned marginAfterCollapse : 2; // MarginCollapse -
trunk/Source/WebCore/style/StyleBuilderConverter.h
r254187 r254790 131 131 #endif 132 132 static FontFeatureSettings convertFontFeatureSettings(BuilderState&, const CSSValue&); 133 static bool convertSmoothScrolling(BuilderState&, const CSSValue&); 133 134 static FontSelectionValue convertFontWeightFromValue(const CSSValue&); 134 135 static FontSelectionValue convertFontStretchFromValue(const CSSValue&); … … 1376 1377 #endif 1377 1378 1379 inline bool BuilderConverter::convertSmoothScrolling(BuilderState&, const CSSValue& value) 1380 { 1381 return downcast<CSSPrimitiveValue>(value).valueID() == CSSValueSmooth; 1382 } 1383 1378 1384 inline SVGLengthValue BuilderConverter::convertSVGLengthValue(BuilderState&, const CSSValue& value) 1379 1385 { -
trunk/Source/WebKit/ChangeLog
r254784 r254790 1 2020-01-17 Cathie Chen <cathiechen@igalia.com> 2 3 Add support for scroll behavior parsing 4 https://bugs.webkit.org/show_bug.cgi?id=205009 5 6 Reviewed by Frédéric Wang. 7 8 Based on the patch by Frédéric Wang. 9 10 Add CSSOM smooth scrolling as an experimental feature. 11 12 * Shared/WebPreferences.yaml: 13 1 14 2020-01-17 Peng Liu <peng.liu6@apple.com> 2 15 -
trunk/Source/WebKit/Shared/WebPreferences.yaml
r254669 r254790 1320 1320 category: internal 1321 1321 1322 CSSOMViewSmoothScrollingEnabled: 1323 type: bool 1324 defaultValue: false 1325 humanReadableName: "CSSOM View Smooth Scrolling" 1326 humanReadableDescription: "Enable DOM API and CSS property for 'smooth' scroll behavior" 1327 category: experimental 1328 1322 1329 WebAnimationsEnabled: 1323 1330 type: bool -
trunk/Source/WebKitLegacy/mac/ChangeLog
r254683 r254790 1 2020-01-17 Cathie Chen <cathiechen@igalia.com> 2 3 Add support for scroll behavior parsing 4 https://bugs.webkit.org/show_bug.cgi?id=205009 5 6 Reviewed by Frédéric Wang. 7 8 Based on the patch by Frédéric Wang. 9 10 Add run time flag for CSSOMViewSmoothScrolling. 11 12 * WebView/WebPreferenceKeysPrivate.h: Handle CSSOMViewSmoothScrolling by. 13 * WebView/WebPreferences.mm: 14 ([WebPreferences initialize]): Disable CSSOMViewSmoothScrolling by default. 15 (-[WebPreferences CSSOMViewSmoothScrollingEnabled]): Getter. 16 (-[WebPreferences setCSSOMViewSmoothScrollingEnabled:]): Setter. 17 * WebView/WebPreferencesPrivate.h: 18 * WebView/WebView.mm: 19 (-[WebView _preferencesChanged:]): 20 1 21 2020-01-16 David Kilzer <ddkilzer@apple.com> 2 22 -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h
r254669 r254790 189 189 #define WebKitVisualViewportAPIEnabledPreferenceKey @"WebKitVisualViewportAPIEnabled" 190 190 #define WebKitCSSOMViewScrollingAPIEnabledPreferenceKey @"WebKitCSSOMViewScrollingAPIEnabled" 191 #define WebKitCSSOMViewSmoothScrollingEnabledPreferenceKey @"WebKitCSSOMViewSmoothScrollingEnabled" 191 192 #define WebKitModernMediaControlsEnabledPreferenceKey @"WebKitModernMediaControlsEnabled" 192 193 #define WebKitRemotePlaybackEnabledPreferenceKey @"WebKitRemotePlaybackEnabled" -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferences.mm
r254669 r254790 665 665 666 666 @YES, WebKitCSSOMViewScrollingAPIEnabledPreferenceKey, 667 @NO, WebKitCSSOMViewSmoothScrollingEnabledPreferenceKey, 667 668 @YES, WebKitNeedsStorageAccessFromFileURLsQuirkKey, 668 669 @NO, WebKitAllowCrossOriginSubresourcesToAskForCredentialsKey, … … 3184 3185 } 3185 3186 3187 - (BOOL)CSSOMViewSmoothScrollingEnabled 3188 { 3189 return [self _boolValueForKey:WebKitCSSOMViewSmoothScrollingEnabledPreferenceKey]; 3190 } 3191 3192 - (void)setCSSOMViewSmoothScrollingEnabled:(BOOL)flag 3193 { 3194 [self _setBoolValue:flag forKey:WebKitCSSOMViewSmoothScrollingEnabledPreferenceKey]; 3195 } 3196 3186 3197 - (BOOL)webAnimationsEnabled 3187 3198 { -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h
r254669 r254790 639 639 @property (nonatomic) BOOL visualViewportAPIEnabled; 640 640 @property (nonatomic) BOOL CSSOMViewScrollingAPIEnabled; 641 @property (nonatomic) BOOL CSSOMViewSmoothScrollingEnabled; 641 642 @property (nonatomic) BOOL largeImageAsyncDecodingEnabled; 642 643 @property (nonatomic) BOOL animatedImageAsyncDecodingEnabled; -
trunk/Source/WebKitLegacy/mac/WebView/WebView.mm
r254669 r254790 3006 3006 settings.setSyntheticEditingCommandsEnabled([preferences syntheticEditingCommandsEnabled]); 3007 3007 settings.setCSSOMViewScrollingAPIEnabled([preferences CSSOMViewScrollingAPIEnabled]); 3008 settings.setCSSOMViewSmoothScrollingEnabled([preferences CSSOMViewSmoothScrollingEnabled]); 3008 3009 settings.setMediaContentTypesRequiringHardwareSupport([preferences mediaContentTypesRequiringHardwareSupport]); 3009 3010 -
trunk/Source/WebKitLegacy/win/ChangeLog
r254669 r254790 1 2020-01-17 Cathie Chen <cathiechen@igalia.com> 2 3 Add support for scroll behavior parsing 4 https://bugs.webkit.org/show_bug.cgi?id=205009 5 6 Reviewed by Frédéric Wang. 7 8 Based on the patch by Frédéric Wang. 9 10 * Interfaces/IWebPreferencesPrivate.idl: Handle smooth scrolling option. 11 * WebPreferenceKeysPrivate.h: Ditto. 12 * WebPreferences.cpp: Ditto. 13 (WebPreferences::initializeDefaultSettings): 14 (WebPreferences::CSSOMViewSmoothScrollingEnabled): 15 (WebPreferences::setCSSOMViewSmoothScrollingEnabled): 16 * WebPreferences.h: Ditto. 17 * WebView.cpp: Ditto. 18 (WebView::notifyPreferencesChanged): 19 1 20 2020-01-16 Cathie Chen <cathiechen@igalia.com> 2 21 -
trunk/Source/WebKitLegacy/win/Interfaces/IWebPreferencesPrivate.idl
r254669 r254790 224 224 HRESULT CSSOMViewScrollingAPIEnabled([out, retval] BOOL*); 225 225 HRESULT setCSSOMViewScrollingAPIEnabled([in] BOOL enabled); 226 HRESULT CSSOMViewSmoothScrollingEnabled([out, retval] BOOL*); 227 HRESULT setCSSOMViewSmoothScrollingEnabled([in] BOOL enabled); 226 228 HRESULT fetchAPIKeepAliveEnabled([out, retval] BOOL* enabled); 227 229 HRESULT setFetchAPIKeepAliveEnabled([in] BOOL enabled); -
trunk/Source/WebKitLegacy/win/WebPreferenceKeysPrivate.h
r254669 r254790 210 210 211 211 #define WebKitCSSOMViewScrollingAPIEnabledPreferenceKey "WebKitCSSOMViewScrollingAPIEnabled" 212 #define WebKitCSSOMViewSmoothScrollingEnabledPreferenceKey "WebKitCSSOMViewSmoothScrollingEnabled" 212 213 213 214 #define WebKitResizeObserverEnabledPreferenceKey "WebKitResizeObserverEnabled" -
trunk/Source/WebKitLegacy/win/WebPreferences.cpp
r254669 r254790 340 340 CFDictionaryAddValue(defaults, CFSTR(WebKitResizeObserverEnabledPreferenceKey), kCFBooleanFalse); 341 341 342 CFDictionaryAddValue(defaults, CFSTR(WebKitCSSOMViewSmoothScrollingEnabledPreferenceKey), kCFBooleanFalse); 343 342 344 CFDictionaryAddValue(defaults, CFSTR(WebKitCoreMathMLEnabledPreferenceKey), kCFBooleanFalse); 343 345 … … 2286 2288 } 2287 2289 2290 HRESULT WebPreferences::CSSOMViewSmoothScrollingEnabled(_Out_ BOOL* enabled) 2291 { 2292 if (!enabled) 2293 return E_POINTER; 2294 *enabled = boolValueForKey(WebKitCSSOMViewSmoothScrollingEnabledPreferenceKey); 2295 return S_OK; 2296 } 2297 2298 HRESULT WebPreferences::setCSSOMViewSmoothScrollingEnabled(BOOL enabled) 2299 { 2300 setBoolValue(WebKitCSSOMViewSmoothScrollingEnabledPreferenceKey, enabled); 2301 return S_OK; 2302 } 2303 2288 2304 HRESULT WebPreferences::requestIdleCallbackEnabled(_Out_ BOOL* enabled) 2289 2305 { -
trunk/Source/WebKitLegacy/win/WebPreferences.h
r254669 r254790 272 272 virtual HRESULT STDMETHODCALLTYPE CSSOMViewScrollingAPIEnabled(_Out_ BOOL*); 273 273 virtual HRESULT STDMETHODCALLTYPE setCSSOMViewScrollingAPIEnabled(BOOL); 274 virtual HRESULT STDMETHODCALLTYPE CSSOMViewSmoothScrollingEnabled(_Out_ BOOL*); 275 virtual HRESULT STDMETHODCALLTYPE setCSSOMViewSmoothScrollingEnabled(BOOL); 274 276 virtual HRESULT STDMETHODCALLTYPE fetchAPIKeepAliveEnabled(_Out_ BOOL*); 275 277 virtual HRESULT STDMETHODCALLTYPE setFetchAPIKeepAliveEnabled(BOOL); -
trunk/Source/WebKitLegacy/win/WebView.cpp
r254669 r254790 5321 5321 settings.setCSSOMViewScrollingAPIEnabled(!!enabled); 5322 5322 5323 hr = prefsPrivate->CSSOMViewSmoothScrollingEnabled(&enabled); 5324 if (FAILED(hr)) 5325 return hr; 5326 settings.setCSSOMViewSmoothScrollingEnabled(!!enabled); 5327 5323 5328 hr = preferences->privateBrowsingEnabled(&enabled); 5324 5329 if (FAILED(hr)) -
trunk/Tools/ChangeLog
r254786 r254790 1 2020-01-17 Cathie Chen <cathiechen@igalia.com> 2 3 Add support for scroll behavior parsing 4 https://bugs.webkit.org/show_bug.cgi?id=205009 5 6 Reviewed by Frédéric Wang. 7 8 Based on the patch by Frédéric Wang. 9 10 * DumpRenderTree/TestOptions.cpp: 11 (TestOptions::TestOptions): Parse CSSOMViewSmoothScrollingEnabled. 12 * DumpRenderTree/TestOptions.h: Add CSSOMViewSmoothScrollingEnabled, disabled by default. 13 * DumpRenderTree/mac/DumpRenderTree.mm: 14 (enableExperimentalFeatures): 15 (setWebPreferencesForTestOptions): Set CSSOMViewSmoothScrollingEnabled from the test options. 16 1 17 2020-01-16 Simon Fraser <simon.fraser@apple.com> 2 18 -
trunk/Tools/DumpRenderTree/TestOptions.cpp
r254669 r254790 143 143 else if (key == "experimental:ResizeObserverEnabled") 144 144 enableResizeObserver = parseBooleanTestHeaderValue(value); 145 else if (key == "experimental:CSSOMViewSmoothScrollingEnabled") 146 enableCSSOMViewSmoothScrolling = parseBooleanTestHeaderValue(value); 145 147 else if (key == "experimental:CoreMathMLEnabled") 146 148 enableCoreMathML = parseBooleanTestHeaderValue(value); -
trunk/Tools/DumpRenderTree/TestOptions.h
r254669 r254790 51 51 bool adClickAttributionEnabled { false }; 52 52 bool enableResizeObserver { false }; 53 bool enableCSSOMViewSmoothScrolling { false }; 53 54 bool enableCoreMathML { false }; 54 55 bool enableRequestIdleCallback { false }; -
trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm
r254669 r254790 885 885 [preferences setCSSShadowPartsEnabled:YES]; 886 886 [preferences setAspectRatioOfImgFromWidthAndHeightEnabled:YES]; 887 [preferences setCSSOMViewSmoothScrollingEnabled:YES]; 887 888 } 888 889 … … 1032 1033 preferences.adClickAttributionEnabled = options.adClickAttributionEnabled; 1033 1034 preferences.resizeObserverEnabled = options.enableResizeObserver; 1035 preferences.CSSOMViewSmoothScrollingEnabled = options.enableCSSOMViewSmoothScrolling; 1034 1036 preferences.coreMathMLEnabled = options.enableCoreMathML; 1035 1037 preferences.requestIdleCallbackEnabled = options.enableRequestIdleCallback;
Note:
See TracChangeset
for help on using the changeset viewer.