Changeset 259813 in webkit
- Timestamp:
- Apr 9, 2020, 12:23:10 PM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
css/StylePropertyShorthand.cpp (modified) (1 diff)
-
css/StylePropertyShorthand.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r259805 r259813 1 2020-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 1 15 2020-04-08 Simon Fraser <simon.fraser@apple.com> 2 16 -
trunk/Source/WebCore/css/StylePropertyShorthand.cpp
r207479 r259813 25 25 26 26 namespace 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 }34 27 35 28 StylePropertyShorthand animationShorthandForParsing() -
trunk/Source/WebCore/css/StylePropertyShorthand.h
r259659 r259813 32 32 33 33 template<unsigned numProperties> 34 StylePropertyShorthand(CSSPropertyID id, const CSSPropertyID (&properties)[numProperties] , const StylePropertyShorthand* propertiesForInitialization = nullptr)34 StylePropertyShorthand(CSSPropertyID id, const CSSPropertyID (&properties)[numProperties]) 35 35 : m_properties(properties) 36 , m_propertiesForInitialization(propertiesForInitialization)37 36 , m_length(numProperties) 38 37 , m_shorthandID(id) … … 44 43 45 44 const CSSPropertyID* properties() const { return m_properties; } 46 const StylePropertyShorthand* propertiesForInitialization() const { return m_propertiesForInitialization; }47 45 unsigned length() const { return m_length; } 48 46 CSSPropertyID id() const { return m_shorthandID; } … … 50 48 private: 51 49 const CSSPropertyID* m_properties { nullptr }; 52 const StylePropertyShorthand* m_propertiesForInitialization { nullptr };53 50 unsigned m_length { 0 }; 54 51 CSSPropertyID m_shorthandID { CSSPropertyInvalid }; … … 58 55 StylePropertyShorthand animationShorthandForParsing(); 59 56 StylePropertyShorthand transitionShorthandForParsing(); 60 StylePropertyShorthand borderAbridgedShorthand();61 57 62 58 // Returns empty value if the property is not a shorthand.
Note:
See TracChangeset
for help on using the changeset viewer.