Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 696b0afcef81c484ec7c878812f211a52fb3d191 https://github.com/WebKit/WebKit/commit/696b0afcef81c484ec7c878812f211a52fb3d191 Author: Kiet Ho <kiet...@apple.com> Date: 2024-11-19 (Tue, 19 Nov 2024)
Changed paths: M Source/WebCore/animation/CSSPropertyAnimation.cpp M Source/WebCore/css/CSSProperties.json M Source/WebCore/css/ComputedStyleExtractor.cpp M Source/WebCore/css/calc/CSSCalcTree+Evaluation.cpp M Source/WebCore/css/calc/CSSCalcTree+Parser.cpp M Source/WebCore/css/calc/CSSCalcTree+Simplification.cpp M Source/WebCore/css/calc/CSSCalcTree.h M Source/WebCore/rendering/style/RenderStyle.h M Source/WebCore/rendering/style/RenderStyleInlines.h M Source/WebCore/rendering/style/RenderStyleSetters.h M Source/WebCore/rendering/style/StyleRareNonInheritedData.h M Source/WebCore/style/AnchorPositionEvaluator.cpp M Source/WebCore/style/AnchorPositionEvaluator.h M Source/WebCore/style/StyleBuilderConverter.h Log Message: ----------- [css-anchor-position-1] Use Style::ScopedName to represent anchor names rdar://139617595 https://bugs.webkit.org/show_bug.cgi?id=282914 Reviewed by Antti Koivisto. Currently, AtomString is used to represent anchor names in the code. However, the anchor names are supposed to be scoped (i.e: anchor names in one shadow tree can only be referred to in the same shadow tree). To prepare for this, this patch mechanically replace all uses of AtomString to Style::ScopedName. Note that this patch does not fix logic to consider scopes when resolving anchor names, that'll come in a separate patch. * Source/WebCore/animation/CSSPropertyAnimation.cpp: (WebCore::CSSPropertyAnimationWrapperMap::CSSPropertyAnimationWrapperMap): * Source/WebCore/css/CSSProperties.json: * Source/WebCore/css/ComputedStyleExtractor.cpp: (WebCore::valueForAnchorName): (WebCore::ComputedStyleExtractor::valueForPropertyInStyle const): * Source/WebCore/css/calc/CSSCalcTree+Evaluation.cpp: (WebCore::CSSCalc::evaluate): (WebCore::CSSCalc::evaluateWithoutFallback): * Source/WebCore/css/calc/CSSCalcTree+Parser.cpp: (WebCore::CSSCalc::consumeAnchor): * Source/WebCore/css/calc/CSSCalcTree+Simplification.cpp: (WebCore::CSSCalc::simplify): * Source/WebCore/css/calc/CSSCalcTree.h: * Source/WebCore/rendering/style/RenderStyle.h: * Source/WebCore/rendering/style/RenderStyleInlines.h: (WebCore::RenderStyle::anchorNames const): (WebCore::RenderStyle::initialAnchorNames): (WebCore::RenderStyle::initialPositionAnchor): (WebCore::RenderStyle::positionAnchor const): * Source/WebCore/rendering/style/RenderStyleSetters.h: (WebCore::RenderStyle::setAnchorNames): (WebCore::RenderStyle::setPositionAnchor): * Source/WebCore/rendering/style/StyleRareNonInheritedData.h: * Source/WebCore/style/AnchorPositionEvaluator.cpp: (WebCore::Style::AnchorPositionEvaluator::findAnchorAndAttemptResolution): (WebCore::Style::AnchorPositionEvaluator::evaluate): (WebCore::Style::AnchorPositionEvaluator::evaluateSize): (WebCore::Style::collectAnchorsForAnchorName): (WebCore::Style::AnchorPositionEvaluator::updateSnapshottedScrollOffsets): * Source/WebCore/style/AnchorPositionEvaluator.h: * Source/WebCore/style/StyleBuilderConverter.h: (WebCore::Style::BuilderConverter::convertAnchorName): (WebCore::Style::BuilderConverter::convertPositionAnchor): Canonical link: https://commits.webkit.org/286841@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes