Ignore:
Timestamp:
Feb 10, 2022, 3:36:55 PM (3 years ago)
Author:
[email protected]
Message:

Use Ref<> for getBackground/MaskShorthandValue
https://bugs.webkit.org/show_bug.cgi?id=236408

Patch by Matt Woodrow <Matt Woodrow> on 2022-02-10
Reviewed by Tim Nguyen.

Simple cleanup to make it clearer that these can't return nullptr, no tests needed.

  • css/CSSComputedStyleDeclaration.cpp:

(WebCore::ComputedStyleExtractor::getFillLayerPropertyShorthandValue):
(WebCore::ComputedStyleExtractor::getBackgroundShorthandValue):
(WebCore::ComputedStyleExtractor::getMaskShorthandValue):

  • css/CSSComputedStyleDeclaration.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp

    r289377 r289588  
    44354435}
    44364436
    4437 RefPtr<CSSValue> ComputedStyleExtractor::getFillLayerPropertyShorthandValue(CSSPropertyID property, const StylePropertyShorthand& propertiesBeforeSlashSeparator, const StylePropertyShorthand& propertiesAfterSlashSeparator, CSSPropertyID lastLayerProperty)
     4437Ref<CSSValue> ComputedStyleExtractor::getFillLayerPropertyShorthandValue(CSSPropertyID property, const StylePropertyShorthand& propertiesBeforeSlashSeparator, const StylePropertyShorthand& propertiesAfterSlashSeparator, CSSPropertyID lastLayerProperty)
    44384438{
    44394439    ASSERT(property == CSSPropertyBackground || property == CSSPropertyMask);
     
    44834483
    44844484
    4485 RefPtr<CSSValue> ComputedStyleExtractor::getBackgroundShorthandValue()
     4485Ref<CSSValue> ComputedStyleExtractor::getBackgroundShorthandValue()
    44864486{
    44874487    static const CSSPropertyID propertiesBeforeSlashSeparator[] = { CSSPropertyBackgroundImage, CSSPropertyBackgroundRepeat, CSSPropertyBackgroundAttachment, CSSPropertyBackgroundPosition };
     
    44914491}
    44924492
    4493 RefPtr<CSSValue> ComputedStyleExtractor::getMaskShorthandValue()
     4493Ref<CSSValue> ComputedStyleExtractor::getMaskShorthandValue()
    44944494{
    44954495    static const CSSPropertyID propertiesBeforeSlashSeperator[2] = { CSSPropertyMaskImage, CSSPropertyMaskPosition };
Note: See TracChangeset for help on using the changeset viewer.