Changeset 83417 in webkit
- Timestamp:
- Apr 10, 2011 8:49:38 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r83415 r83417 1 2011-04-10 Luke Macpherson <macpherson@chromium.org> 2 3 Reviewed by Simon Fraser. 4 5 Rename CSSStyleApplyProperty::inherit,initial,value applyInheritValue,applyInitialValue,applyValue 6 https://bugs.webkit.org/show_bug.cgi?id=58212 7 8 No new tests - function renaming only / no functionality changes. 9 10 * css/CSSStyleApplyProperty.cpp: 11 Rename all instances of inherit, initial and value. 12 * css/CSSStyleApplyProperty.h: 13 Rename all instances of inherit, initial and value. 14 * css/CSSStyleSelector.cpp: 15 Rename all instances of inherit, initial and value. 16 1 17 2011-04-10 Mike Lawther <mikelawther@chromium.org> 2 18 -
trunk/Source/WebCore/css/CSSStyleApplyProperty.cpp
r83264 r83417 41 41 class ApplyPropertyNull : public ApplyPropertyBase { 42 42 public: 43 virtual void inherit(CSSStyleSelector*) const {}44 virtual void initial(CSSStyleSelector*) const {}45 virtual void value(CSSStyleSelector*, CSSValue*) const {}43 virtual void applyInheritValue(CSSStyleSelector*) const {} 44 virtual void applyInitialValue(CSSStyleSelector*) const {} 45 virtual void applyValue(CSSStyleSelector*, CSSValue*) const {} 46 46 }; 47 47 … … 56 56 } 57 57 58 virtual void inherit(CSSStyleSelector* selector) const58 virtual void applyInheritValue(CSSStyleSelector* selector) const 59 59 { 60 60 (selector->style()->*m_setter)((selector->parentStyle()->*m_getter)()); 61 61 } 62 62 63 virtual void initial(CSSStyleSelector* selector) const63 virtual void applyInitialValue(CSSStyleSelector* selector) const 64 64 { 65 65 (selector->style()->*m_setter)((*m_initial)()); 66 66 } 67 67 68 virtual void value(CSSStyleSelector* selector, CSSValue* value) const68 virtual void applyValue(CSSStyleSelector* selector, CSSValue* value) const 69 69 { 70 70 if (value->isPrimitiveValue()) … … 87 87 { 88 88 } 89 virtual void inherit(CSSStyleSelector* selector) const89 virtual void applyInheritValue(CSSStyleSelector* selector) const 90 90 { 91 91 const Color& color = (selector->parentStyle()->*m_getter)(); … … 95 95 (selector->style()->*m_setter)(color); 96 96 } 97 virtual void initial(CSSStyleSelector* selector) const97 virtual void applyInitialValue(CSSStyleSelector* selector) const 98 98 { 99 99 Color color; 100 100 (selector->style()->*m_setter)(color); 101 101 } 102 virtual void value(CSSStyleSelector* selector, CSSValue* value) const102 virtual void applyValue(CSSStyleSelector* selector, CSSValue* value) const 103 103 { 104 104 if (value->isPrimitiveValue()) … … 119 119 } 120 120 121 virtual void initial(CSSStyleSelector* selector) const121 virtual void applyInitialValue(CSSStyleSelector* selector) const 122 122 { 123 123 (selector->style()->*m_setter)(m_initialValue()); 124 124 } 125 125 126 virtual void value(CSSStyleSelector* selector, CSSValue* value) const126 virtual void applyValue(CSSStyleSelector* selector, CSSValue* value) const 127 127 { 128 128 if (!value->isPrimitiveValue()) … … 130 130 131 131 if ((static_cast<CSSPrimitiveValue*>(value))->getIdent() == CSSValueCurrentcolor) 132 inherit(selector);132 applyInheritValue(selector); 133 133 else 134 ApplyPropertyColorBase:: value(selector, value);134 ApplyPropertyColorBase::applyValue(selector, value); 135 135 } 136 136 protected: … … 146 146 } 147 147 148 virtual void value(CSSStyleSelector* selector, CSSValue* value) const149 { 150 ApplyPropertyDefault<TextDirection>:: value(selector, value);148 virtual void applyValue(CSSStyleSelector* selector, CSSValue* value) const 149 { 150 ApplyPropertyDefault<TextDirection>::applyValue(selector, value); 151 151 Element* element = selector->element(); 152 152 if (element && selector->element() == element->document()->documentElement()) … … 175 175 } 176 176 177 virtual void inherit(CSSStyleSelector* selector) const177 virtual void applyInheritValue(CSSStyleSelector* selector) const 178 178 { 179 179 FillLayer* currChild = (selector->style()->*m_accessLayers)(); … … 199 199 } 200 200 201 virtual void initial(CSSStyleSelector* selector) const201 virtual void applyInitialValue(CSSStyleSelector* selector) const 202 202 { 203 203 FillLayer* currChild = (selector->style()->*m_accessLayers)(); … … 207 207 } 208 208 209 virtual void value(CSSStyleSelector* selector, CSSValue* value) const209 virtual void applyValue(CSSStyleSelector* selector, CSSValue* value) const 210 210 { 211 211 FillLayer* currChild = (selector->style()->*m_accessLayers)(); -
trunk/Source/WebCore/css/CSSStyleApplyProperty.h
r83241 r83417 40 40 ApplyPropertyBase() { } 41 41 virtual ~ApplyPropertyBase() { } 42 virtual void inherit(CSSStyleSelector*) const = 0;43 virtual void initial(CSSStyleSelector*) const = 0;44 virtual void value(CSSStyleSelector*, CSSValue*) const = 0;42 virtual void applyInheritValue(CSSStyleSelector*) const = 0; 43 virtual void applyInitialValue(CSSStyleSelector*) const = 0; 44 virtual void applyValue(CSSStyleSelector*, CSSValue*) const = 0; 45 45 }; 46 46 … … 50 50 static const CSSStyleApplyProperty& sharedCSSStyleApplyProperty(); 51 51 52 void inherit(CSSPropertyID property, CSSStyleSelector* selector) const52 void applyInheritValue(CSSPropertyID property, CSSStyleSelector* selector) const 53 53 { 54 54 ASSERT(implements(property)); 55 propertyValue(property)-> inherit(selector);55 propertyValue(property)->applyInheritValue(selector); 56 56 } 57 57 58 void initial(CSSPropertyID property, CSSStyleSelector* selector) const58 void applyInitialValue(CSSPropertyID property, CSSStyleSelector* selector) const 59 59 { 60 60 ASSERT(implements(property)); 61 propertyValue(property)-> initial(selector);61 propertyValue(property)->applyInitialValue(selector); 62 62 } 63 63 64 void value(CSSPropertyID property, CSSStyleSelector* selector, CSSValue* value) const64 void applyValue(CSSPropertyID property, CSSStyleSelector* selector, CSSValue* value) const 65 65 { 66 66 ASSERT(implements(property)); 67 propertyValue(property)-> value(selector, value);67 propertyValue(property)->applyValue(selector, value); 68 68 } 69 69 -
trunk/Source/WebCore/css/CSSStyleSelector.cpp
r83400 r83417 3643 3643 if (m_applyProperty.implements(property)) { 3644 3644 if (isInherit) 3645 m_applyProperty. inherit(property, this);3645 m_applyProperty.applyInheritValue(property, this); 3646 3646 else if (isInitial) 3647 m_applyProperty. initial(property, this);3647 m_applyProperty.applyInitialValue(property, this); 3648 3648 else 3649 m_applyProperty. value(property, this, value);3649 m_applyProperty.applyValue(property, this, value); 3650 3650 return; 3651 3651 }
Note: See TracChangeset
for help on using the changeset viewer.