[webkit-changes] [WebKit/WebKit] 195dfe: Use dynamicDowncast<T> more in css/

Chris Dumez noreply at github.com
Thu Nov 23 09:23:36 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 195dfef21b846376c8f467f8e610db4900b9a2f4
      https://github.com/WebKit/WebKit/commit/195dfef21b846376c8f467f8e610db4900b9a2f4
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-11-23 (Thu, 23 Nov 2023)

  Changed paths:
    M Source/WebCore/css/CSSValue.cpp
    M Source/WebCore/css/ComputedStyleExtractor.cpp
    M Source/WebCore/css/DeprecatedCSSOMPrimitiveValue.cpp
    M Source/WebCore/css/FontFace.cpp
    M Source/WebCore/css/FontFaceSet.cpp
    M Source/WebCore/css/FontVariantBuilder.cpp
    M Source/WebCore/css/MutableStyleProperties.cpp
    M Source/WebCore/css/SelectorChecker.cpp
    M Source/WebCore/css/SelectorCheckerTestFunctions.h
    M Source/WebCore/css/ShorthandSerializer.cpp
    M Source/WebCore/css/StyleProperties.cpp
    M Source/WebCore/css/StylePropertiesInlines.h
    M Source/WebCore/css/StyleRule.cpp
    M Source/WebCore/css/StyleSheetContents.cpp
    M Source/WebCore/css/TransformFunctions.cpp
    M Source/WebCore/css/calc/CSSCalcExpressionNodeParser.cpp
    M Source/WebCore/css/calc/CSSCalcOperationNode.cpp

  Log Message:
  -----------
  Use dynamicDowncast<T> more in css/
https://bugs.webkit.org/show_bug.cgi?id=265269

Reviewed by Dan Glastonbury.

* Source/WebCore/css/CSSValue.cpp:
(WebCore::CSSValue::equals const):
* Source/WebCore/css/ComputedStyleExtractor.cpp:
(WebCore::sizingBox):
(WebCore::ComputedStyleExtractor::valueForFilter):
(WebCore::valueForGridTrackList):
(WebCore::styleElementForNode):
(WebCore::contentToCSSValue):
(WebCore::zoomAdjustedPaddingOrMarginPixelValue):
(WebCore::isLayoutDependent):
(WebCore::isFlexOrGridItem):
(WebCore::ComputedStyleExtractor::propertyValue const):
(WebCore::ComputedStyleExtractor::valueForPropertyInStyle const):
(WebCore::ComputedStyleExtractor::propertyMatches const):
* Source/WebCore/css/DeprecatedCSSOMPrimitiveValue.cpp:
(WebCore::DeprecatedCSSOMPrimitiveValue::getCounterValue const):
(WebCore::DeprecatedCSSOMPrimitiveValue::getRectValue const):
* Source/WebCore/css/FontFace.cpp:
(WebCore::FontFace::create):
* Source/WebCore/css/FontFaceSet.cpp:
(WebCore::FontFaceSet::FontFaceSet):
(WebCore::FontFaceSet::load):
* Source/WebCore/css/FontVariantBuilder.cpp:
(WebCore::extractFontVariantLigatures):
(WebCore::extractFontVariantNumeric):
(WebCore::extractFontVariantEastAsian):
* Source/WebCore/css/MutableStyleProperties.cpp:
(WebCore::MutableStyleProperties::MutableStyleProperties):
* Source/WebCore/css/SelectorChecker.cpp:
(WebCore::localContextForParent):
(WebCore::SelectorChecker::checkOne const):
* Source/WebCore/css/SelectorCheckerTestFunctions.h:
(WebCore::isAutofilled):
(WebCore::isAutofilledStrongPassword):
(WebCore::isAutofilledStrongPasswordViewable):
(WebCore::isAutofilledAndObscured):
(WebCore::matchesDisabledPseudoClass):
(WebCore::matchesEnabledPseudoClass):
(WebCore::isChecked):
(WebCore::hasAttachment):
(WebCore::matchesLangPseudoClass):
(WebCore::matchesPastCuePseudoClass):
(WebCore::matchesPlayingPseudoClass):
(WebCore::matchesPausedPseudoClass):
(WebCore::matchesSeekingPseudoClass):
(WebCore::matchesBufferingPseudoClass):
(WebCore::matchesStalledPseudoClass):
(WebCore::matchesMutedPseudoClass):
(WebCore::matchesVolumeLockedPseudoClass):
(WebCore::matchesModalPseudoClass):
* Source/WebCore/css/ShorthandSerializer.cpp:
(WebCore::ShorthandSerializer::serializeLayered const):
(WebCore::isValueIDIncludingList):
(WebCore::gridAutoFlowContains):
(WebCore::isCustomIdentValue):
(WebCore::ShorthandSerializer::serializeGridTemplate const):
* Source/WebCore/css/StyleProperties.cpp:
(WebCore::StyleProperties::immutableCopyIfNeeded const):
(WebCore::serializeLonghandValue):
(WebCore::StyleProperties::asTextInternal const):
(WebCore::StyleProperties::hasCSSOMWrapper const):
* Source/WebCore/css/StylePropertiesInlines.h:
(WebCore::StyleProperties::propertyAt const):
(WebCore::StyleProperties::propertyCount const):
(WebCore::StyleProperties::deref const):
(WebCore::StyleProperties::findPropertyIndex const):
(WebCore::StyleProperties::findCustomPropertyIndex const):
* Source/WebCore/css/StyleRule.cpp:
(WebCore::StyleRule::mutableProperties):
(WebCore::StyleRulePage::mutableProperties):
(WebCore::StyleRuleFontFace::mutableProperties):
* Source/WebCore/css/StyleSheetContents.cpp:
(WebCore::StyleSheetContents::parserAppendRule):
(WebCore::StyleSheetContents::wrapperInsertRule):
(WebCore::traverseRulesInVector):
* Source/WebCore/css/TransformFunctions.cpp:
(WebCore::transformsForValue):
(WebCore::translateForValue):
(WebCore::scaleForValue):
(WebCore::rotateForValue):
* Source/WebCore/css/calc/CSSCalcExpressionNodeParser.cpp:
(WebCore::CSSCalcExpressionNodeParser::parseCalc):
* Source/WebCore/css/calc/CSSCalcOperationNode.cpp:
(WebCore::CSSCalcOperationNode::hoistChildrenWithOperator):
(WebCore::CSSCalcOperationNode::simplifyRecursive):
(WebCore::CSSCalcOperationNode::simplifyNode):
(WebCore::CSSCalcOperationNode::buildCSSText):
(WebCore::CSSCalcOperationNode::buildCSSTextRecursive):

Canonical link: https://commits.webkit.org/271083@main




More information about the webkit-changes mailing list