-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Allow parsing of overflow-anchor behind flag #2604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow parsing of overflow-anchor behind flag #2604
Conversation
ce29c9e to
52f811d
Compare
52f811d to
d56cbcd
Compare
d56cbcd to
536aa5c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d70cd13 changed the way CSS property settings work, you may want to follow examples in there.
Yeah from my understanding the only thing relevant that changed was that I no longer have to check the setting in switch statement that is parsing the particular css property right? Is there anything clearly wrong with the patch as it is? |
536aa5c to
a7a9200
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM assuming you've manually tested the preference works (the new mechanism is new to me as well, so I'm not 100% sure)
a7a9200 to
f9e591b
Compare
f9e591b to
bd82777
Compare
https://bugs.webkit.org/show_bug.cgi?id=242973 Reviewed by Simon Fraser and Tim Nguyen. Add flag for scroll anchoring and allow parsing of overflow-anchor behind that flag. * Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml: * Source/WebCore/css/CSSComputedStyleDeclaration.cpp: (WebCore::ComputedStyleExtractor::valueForPropertyInStyle): * Source/WebCore/css/CSSPrimitiveValueMappings.h: (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): (WebCore::CSSPrimitiveValue::operator OverflowAnchor const): * Source/WebCore/css/CSSProperties.json: * Source/WebCore/css/CSSValueKeywords.in: * Source/WebCore/css/parser/CSSParserContext.cpp: (WebCore::operator==): (WebCore::add): (WebCore::CSSParserContext::isPropertyRuntimeDisabled const): * Source/WebCore/css/parser/CSSParserContext.h: * Source/WebCore/css/parser/CSSPropertyParser.cpp: (WebCore::consumeOverflowAnchor): (WebCore::CSSPropertyParser::parseSingleValue): * Source/WebCore/platform/ScrollTypes.h: * Source/WebCore/rendering/style/RenderStyle.h: (WebCore::RenderStyle::overflowAnchor const): (WebCore::RenderStyle::setOverflowAnchor): (WebCore::RenderStyle::initialOverflowAnchor): * Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp: (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): (WebCore::StyleRareNonInheritedData::operator== const): * Source/WebCore/rendering/style/StyleRareNonInheritedData.h: Canonical link: https://commits.webkit.org/252906@main
bd82777 to
3d0806d
Compare
|
Committed 252906@main (3d0806d): https://commits.webkit.org/252906@main Reviewed commits have been landed. Closing PR #2604 and removing active labels. |
397d2db