Changeset 126119 in webkit
- Timestamp:
- Aug 20, 2012 7:03:27 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r126118 r126119 1 2012-08-20 Elliott Sprehn <esprehn@chromium.org> 2 3 Removed dead code from a very old iteration of CSS counters. 4 https://bugs.webkit.org/show_bug.cgi?id=94539 5 6 Reviewed by Eric Seidel. 7 8 Remove two unused shorts that were on StyleRareNonInheritedData that are no longer used. 9 10 No tests, this just removes dead code. 11 12 * rendering/style/RenderStyle.cpp: 13 (WebCore::RenderStyle::diff): 14 * rendering/style/RenderStyle.h: 15 * rendering/style/StyleRareNonInheritedData.cpp: 16 (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): 17 (WebCore::StyleRareNonInheritedData::operator==): 18 * rendering/style/StyleRareNonInheritedData.h: 19 (StyleRareNonInheritedData): 20 1 21 2012-08-20 Luke Macpherson <macpherson@chromium.org> 2 22 -
trunk/Source/WebCore/rendering/style/RenderStyle.cpp
r126105 r126119 567 567 const CounterDirectiveMap* mapB = other->rareNonInheritedData->m_counterDirectives.get(); 568 568 if (!(mapA == mapB || (mapA && mapB && *mapA == *mapB))) 569 return StyleDifferenceLayout;570 if (rareNonInheritedData->m_counterIncrement != other->rareNonInheritedData->m_counterIncrement571 || rareNonInheritedData->m_counterReset != other->rareNonInheritedData->m_counterReset)572 569 return StyleDifferenceLayout; 573 570 -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r126105 r126119 718 718 ECaptionSide captionSide() const { return static_cast<ECaptionSide>(inherited_flags._caption_side); } 719 719 720 short counterIncrement() const { return rareNonInheritedData->m_counterIncrement; }721 short counterReset() const { return rareNonInheritedData->m_counterReset; }722 723 720 EListStyleType listStyleType() const { return static_cast<EListStyleType>(inherited_flags._list_style_type); } 724 721 StyleImage* listStyleImage() const; … … 1204 1201 void setAspectRatioDenominator(float v) { SET_VAR(rareNonInheritedData, m_aspectRatioDenominator, v); } 1205 1202 void setAspectRatioNumerator(float v) { SET_VAR(rareNonInheritedData, m_aspectRatioNumerator, v); } 1206 void setCounterIncrement(short v) { SET_VAR(rareNonInheritedData, m_counterIncrement, v) }1207 void setCounterReset(short v) { SET_VAR(rareNonInheritedData, m_counterReset, v) }1208 1203 1209 1204 void setListStyleType(EListStyleType v) { inherited_flags._list_style_type = v; } -
trunk/Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp
r126105 r126119 39 39 , m_aspectRatioDenominator(RenderStyle::initialAspectRatioDenominator()) 40 40 , m_aspectRatioNumerator(RenderStyle::initialAspectRatioNumerator()) 41 , m_counterIncrement(0)42 , m_counterReset(0)43 41 , m_perspective(RenderStyle::initialPerspective()) 44 42 , m_perspectiveOriginX(RenderStyle::initialPerspectiveOriginX()) … … 94 92 , m_aspectRatioDenominator(o.m_aspectRatioDenominator) 95 93 , m_aspectRatioNumerator(o.m_aspectRatioNumerator) 96 , m_counterIncrement(o.m_counterIncrement)97 , m_counterReset(o.m_counterReset)98 94 , m_perspective(o.m_perspective) 99 95 , m_perspectiveOriginX(o.m_perspectiveOriginX) … … 174 170 && m_aspectRatioDenominator == o.m_aspectRatioDenominator 175 171 && m_aspectRatioNumerator == o.m_aspectRatioNumerator 176 && m_counterIncrement == o.m_counterIncrement177 && m_counterReset == o.m_counterReset178 172 && m_perspective == o.m_perspective 179 173 && m_perspectiveOriginX == o.m_perspectiveOriginX -
trunk/Source/WebCore/rendering/style/StyleRareNonInheritedData.h
r126105 r126119 97 97 float m_aspectRatioDenominator; 98 98 float m_aspectRatioNumerator; 99 100 short m_counterIncrement;101 short m_counterReset;102 99 103 100 float m_perspective;
Note: See TracChangeset
for help on using the changeset viewer.