WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 222010
Add CSS property to enable separated bit on GraphicsLayer
https://bugs.webkit.org/show_bug.cgi?id=222010
Summary
Add CSS property to enable separated bit on GraphicsLayer
Sam Weinig
Reported
2021-02-16 16:42:54 PST
There is no way to enable the separated bit on graphics layer from the page (currently been hardcoding it). We should expose some way to enable it via CSS (experimental, disabled by default).
Attachments
Patch
(13.80 KB, patch)
2021-02-16 18:25 PST
,
Sam Weinig
no flags
Details
Formatted Diff
Diff
Patch
(14.03 KB, patch)
2021-02-16 21:50 PST
,
Sam Weinig
no flags
Details
Formatted Diff
Diff
Patch for landing
(1.61 KB, patch)
2021-02-17 07:02 PST
,
Michael Catanzaro
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Sam Weinig
Comment 1
2021-02-16 18:25:40 PST
Created
attachment 420577
[details]
Patch
Dean Jackson
Comment 2
2021-02-16 19:53:21 PST
Comment on
attachment 420577
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=420577&action=review
> Source/WTF/ChangeLog:6 > + Add internal access to the seperated bit on graphics layer via a
typo: separated
> Source/WTF/ChangeLog:7 > + new "optimized-3d" transform-style. This is all off by default
I'll let it slide that optimised is spelt incorrectly though.
> Source/WTF/Scripts/Preferences/WebPreferences.yaml:395 > +CSSTransformStyleOptimized3DEnabled: > + type: bool > + condition: ENABLE(CSS_TRANSFORM_STYLE_OPTIMIZED_3D) > + defaultValue: > + WebKitLegacy: > + default: false > + WebKit: > + default: false > + WebCore: > + default: false
Given that the default value for the compile-time constant is 0, maybe these values should be true for now? That way we only have to toggle one thing to test it. Then, if we make it compiled in by default, we'd turn the runtime flags off. That might be too confusing though.
> Source/WebCore/css/CSSComputedStyleDeclaration.cpp:3621 > + case TransformStyle3D::Flat: > + return cssValuePool.createIdentifierValue(CSSValueFlat); > + case TransformStyle3D::Preserve3D: > + return cssValuePool.createIdentifierValue(CSSValuePreserve3d); > +#if ENABLE(CSS_TRANSFORM_STYLE_OPTIMIZED_3D) > + case TransformStyle3D::Optimized3D: > + return cssValuePool.createIdentifierValue(CSSValueOptimized3d); > +#endif
Indentation is out here.
> Source/WebCore/css/CSSProperties.json:6566 > + "preserve-3d", > + { > + "value": "optimized-3d", > + "status": "internal" > + }
We probably don't need to add it to the prefixed version.
Sam Weinig
Comment 3
2021-02-16 21:50:05 PST
Created
attachment 420596
[details]
Patch
EWS
Comment 4
2021-02-16 22:47:32 PST
Committed
r272987
: <
https://commits.webkit.org/r272987
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 420596
[details]
.
Radar WebKit Bug Importer
Comment 5
2021-02-16 22:48:17 PST
<
rdar://problem/74422474
>
Michael Catanzaro
Comment 6
2021-02-17 07:02:24 PST
Reopening to attach new patch.
Michael Catanzaro
Comment 7
2021-02-17 07:02:27 PST
Created
attachment 420639
[details]
Patch for landing
EWS
Comment 8
2021-02-17 07:56:30 PST
Committed
r272998
: <
https://commits.webkit.org/r272998
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 420639
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug