⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 259813 in webkit


Ignore:
Timestamp:
Apr 9, 2020, 12:23:10 PM (6 years ago)
Author:
Antti Koivisto
Message:

Removed unused fields and functions from StylePropertyShorthand
https://bugs.webkit.org/show_bug.cgi?id=210279

Reviewed by Darin Adler.

  • css/StylePropertyShorthand.cpp:

(WebCore::borderAbridgedShorthand): Deleted.

  • css/StylePropertyShorthand.h:

(WebCore::StylePropertyShorthand::StylePropertyShorthand):
(WebCore::StylePropertyShorthand::properties const):
(WebCore::StylePropertyShorthand::propertiesForInitialization const): Deleted.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r259805 r259813  
     12020-04-09  Antti Koivisto  <antti@apple.com>
     2
     3        Removed unused fields and functions from StylePropertyShorthand
     4        https://bugs.webkit.org/show_bug.cgi?id=210279
     5
     6        Reviewed by Darin Adler.
     7
     8        * css/StylePropertyShorthand.cpp:
     9        (WebCore::borderAbridgedShorthand): Deleted.
     10        * css/StylePropertyShorthand.h:
     11        (WebCore::StylePropertyShorthand::StylePropertyShorthand):
     12        (WebCore::StylePropertyShorthand::properties const):
     13        (WebCore::StylePropertyShorthand::propertiesForInitialization const): Deleted.
     14
    1152020-04-08  Simon Fraser  <simon.fraser@apple.com>
    216
  • trunk/Source/WebCore/css/StylePropertyShorthand.cpp

    r207479 r259813  
    2525
    2626namespace WebCore {
    27 
    28 StylePropertyShorthand borderAbridgedShorthand()
    29 {
    30     static const CSSPropertyID borderAbridgedProperties[] = { CSSPropertyBorderWidth, CSSPropertyBorderStyle, CSSPropertyBorderColor };
    31     static const StylePropertyShorthand propertiesForInitialization[] = { borderWidthShorthand(), borderStyleShorthand(), borderColorShorthand() };
    32     return StylePropertyShorthand(CSSPropertyBorder, borderAbridgedProperties, propertiesForInitialization);
    33 }
    3427
    3528StylePropertyShorthand animationShorthandForParsing()
  • trunk/Source/WebCore/css/StylePropertyShorthand.h

    r259659 r259813  
    3232
    3333    template<unsigned numProperties>
    34     StylePropertyShorthand(CSSPropertyID id, const CSSPropertyID (&properties)[numProperties], const StylePropertyShorthand* propertiesForInitialization = nullptr)
     34    StylePropertyShorthand(CSSPropertyID id, const CSSPropertyID (&properties)[numProperties])
    3535        : m_properties(properties)
    36         , m_propertiesForInitialization(propertiesForInitialization)
    3736        , m_length(numProperties)
    3837        , m_shorthandID(id)
     
    4443
    4544    const CSSPropertyID* properties() const { return m_properties; }
    46     const StylePropertyShorthand* propertiesForInitialization() const { return m_propertiesForInitialization; }
    4745    unsigned length() const { return m_length; }
    4846    CSSPropertyID id() const { return m_shorthandID; }
     
    5048private:
    5149    const CSSPropertyID* m_properties { nullptr };
    52     const StylePropertyShorthand* m_propertiesForInitialization { nullptr };
    5350    unsigned m_length { 0 };
    5451    CSSPropertyID m_shorthandID { CSSPropertyInvalid };
     
    5855StylePropertyShorthand animationShorthandForParsing();
    5956StylePropertyShorthand transitionShorthandForParsing();
    60 StylePropertyShorthand borderAbridgedShorthand();
    6157
    6258// Returns empty value if the property is not a shorthand.
Note: See TracChangeset for help on using the changeset viewer.