Changeset 208026 in webkit
- Timestamp:
- Oct 27, 2016 8:21:58 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r208025 r208026 1 2016-10-27 Simon Fraser <simon.fraser@apple.com> 2 3 Rename StyleRareNonInheritedData::opacity to m_opacity 4 https://bugs.webkit.org/show_bug.cgi?id=164104 5 6 Reviewed by Dave Hyatt. 7 8 Pure rename. 9 10 * rendering/style/RenderStyle.cpp: 11 (WebCore::RenderStyle::changeRequiresLayerRepaint): 12 * rendering/style/RenderStyle.h: 13 (WebCore::RenderStyle::opacity): 14 (WebCore::RenderStyle::setOpacity): 15 * rendering/style/StyleRareNonInheritedData.cpp: 16 (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData): 17 (WebCore::StyleRareNonInheritedData::operator==): 18 * rendering/style/StyleRareNonInheritedData.h: 19 (WebCore::StyleRareNonInheritedData::hasOpacity): 20 1 21 2016-10-27 Simon Fraser <simon.fraser@apple.com> 2 22 -
trunk/Source/WebCore/rendering/style/RenderStyle.cpp
r208006 r208026 796 796 #endif 797 797 798 if (rareNonInheritedData-> opacity != other.rareNonInheritedData->opacity) {798 if (rareNonInheritedData->m_opacity != other.rareNonInheritedData->m_opacity) { 799 799 changedContextSensitiveProperties |= ContextSensitivePropertyOpacity; 800 800 // Don't return; keep looking for another change. -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r208006 r208026 908 908 909 909 float textStrokeWidth() const { return rareInheritedData->textStrokeWidth; } 910 float opacity() const { return rareNonInheritedData-> opacity; }910 float opacity() const { return rareNonInheritedData->m_opacity; } 911 911 ControlPart appearance() const { return static_cast<ControlPart>(rareNonInheritedData->m_appearance); } 912 912 AspectRatioType aspectRatioType() const { return static_cast<AspectRatioType>(rareNonInheritedData->m_aspectRatioType); } … … 1515 1515 void setTextStrokeWidth(float w) { SET_VAR(rareInheritedData, textStrokeWidth, w); } 1516 1516 void setTextFillColor(const Color& c) { SET_VAR(rareInheritedData, textFillColor, c); } 1517 void setOpacity(float f) { float v = clampTo<float>(f, 0, 1); SET_VAR(rareNonInheritedData, opacity, v); }1517 void setOpacity(float f) { float v = clampTo<float>(f, 0, 1); SET_VAR(rareNonInheritedData, m_opacity, v); } 1518 1518 void setAppearance(ControlPart a) { SET_VAR(rareNonInheritedData, m_appearance, a); } 1519 1519 // For valid values of box-align see http://www.w3.org/TR/2009/WD-css3-flexbox-20090723/#alignment -
trunk/Source/WebCore/rendering/style/StyleRareNonInheritedData.cpp
r207499 r208026 38 38 39 39 StyleRareNonInheritedData::StyleRareNonInheritedData() 40 : opacity(RenderStyle::initialOpacity())40 : m_opacity(RenderStyle::initialOpacity()) 41 41 , m_aspectRatioDenominator(RenderStyle::initialAspectRatioDenominator()) 42 42 , m_aspectRatioNumerator(RenderStyle::initialAspectRatioNumerator()) … … 120 120 inline StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInheritedData& o) 121 121 : RefCounted<StyleRareNonInheritedData>() 122 , opacity(o.opacity)122 , m_opacity(o.m_opacity) 123 123 , m_aspectRatioDenominator(o.m_aspectRatioDenominator) 124 124 , m_aspectRatioNumerator(o.m_aspectRatioNumerator) … … 226 226 bool StyleRareNonInheritedData::operator==(const StyleRareNonInheritedData& o) const 227 227 { 228 return opacity == o.opacity228 return m_opacity == o.m_opacity 229 229 && m_aspectRatioDenominator == o.m_aspectRatioDenominator 230 230 && m_aspectRatioNumerator == o.m_aspectRatioNumerator -
trunk/Source/WebCore/rendering/style/StyleRareNonInheritedData.h
r207499 r208026 97 97 bool hasBackdropFilters() const; 98 98 #endif 99 bool hasOpacity() const { return opacity < 1; }99 bool hasOpacity() const { return m_opacity < 1; } 100 100 101 101 bool hasAnimationsOrTransitions() const { return m_animations || m_transitions; } 102 102 103 float opacity;103 float m_opacity; 104 104 105 105 float m_aspectRatioDenominator;
Note: See TracChangeset
for help on using the changeset viewer.