Changeset 208026 in webkit


Ignore:
Timestamp:
Oct 27, 2016 8:21:58 PM (7 years ago)
Author:
Simon Fraser
Message:

Rename StyleRareNonInheritedData::opacity to m_opacity
https://bugs.webkit.org/show_bug.cgi?id=164104

Reviewed by Dave Hyatt.

Pure rename.

  • rendering/style/RenderStyle.cpp:

(WebCore::RenderStyle::changeRequiresLayerRepaint):

  • rendering/style/RenderStyle.h:

(WebCore::RenderStyle::opacity):
(WebCore::RenderStyle::setOpacity):

  • rendering/style/StyleRareNonInheritedData.cpp:

(WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
(WebCore::StyleRareNonInheritedData::operator==):

  • rendering/style/StyleRareNonInheritedData.h:

(WebCore::StyleRareNonInheritedData::hasOpacity):

Location:
trunk/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r208025 r208026  
     12016-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
    1212016-10-27  Simon Fraser  <simon.fraser@apple.com>
    222
  • trunk/Source/WebCore/rendering/style/RenderStyle.cpp

    r208006 r208026  
    796796#endif
    797797
    798     if (rareNonInheritedData->opacity != other.rareNonInheritedData->opacity) {
     798    if (rareNonInheritedData->m_opacity != other.rareNonInheritedData->m_opacity) {
    799799        changedContextSensitiveProperties |= ContextSensitivePropertyOpacity;
    800800        // Don't return; keep looking for another change.
  • trunk/Source/WebCore/rendering/style/RenderStyle.h

    r208006 r208026  
    908908
    909909    float textStrokeWidth() const { return rareInheritedData->textStrokeWidth; }
    910     float opacity() const { return rareNonInheritedData->opacity; }
     910    float opacity() const { return rareNonInheritedData->m_opacity; }
    911911    ControlPart appearance() const { return static_cast<ControlPart>(rareNonInheritedData->m_appearance); }
    912912    AspectRatioType aspectRatioType() const { return static_cast<AspectRatioType>(rareNonInheritedData->m_aspectRatioType); }
     
    15151515    void setTextStrokeWidth(float w) { SET_VAR(rareInheritedData, textStrokeWidth, w); }
    15161516    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); }
    15181518    void setAppearance(ControlPart a) { SET_VAR(rareNonInheritedData, m_appearance, a); }
    15191519    // 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  
    3838
    3939StyleRareNonInheritedData::StyleRareNonInheritedData()
    40     : opacity(RenderStyle::initialOpacity())
     40    : m_opacity(RenderStyle::initialOpacity())
    4141    , m_aspectRatioDenominator(RenderStyle::initialAspectRatioDenominator())
    4242    , m_aspectRatioNumerator(RenderStyle::initialAspectRatioNumerator())
     
    120120inline StyleRareNonInheritedData::StyleRareNonInheritedData(const StyleRareNonInheritedData& o)
    121121    : RefCounted<StyleRareNonInheritedData>()
    122     , opacity(o.opacity)
     122    , m_opacity(o.m_opacity)
    123123    , m_aspectRatioDenominator(o.m_aspectRatioDenominator)
    124124    , m_aspectRatioNumerator(o.m_aspectRatioNumerator)
     
    226226bool StyleRareNonInheritedData::operator==(const StyleRareNonInheritedData& o) const
    227227{
    228     return opacity == o.opacity
     228    return m_opacity == o.m_opacity
    229229        && m_aspectRatioDenominator == o.m_aspectRatioDenominator
    230230        && m_aspectRatioNumerator == o.m_aspectRatioNumerator
  • trunk/Source/WebCore/rendering/style/StyleRareNonInheritedData.h

    r207499 r208026  
    9797    bool hasBackdropFilters() const;
    9898#endif
    99     bool hasOpacity() const { return opacity < 1; }
     99    bool hasOpacity() const { return m_opacity < 1; }
    100100
    101101    bool hasAnimationsOrTransitions() const { return m_animations || m_transitions; }
    102102
    103     float opacity;
     103    float m_opacity;
    104104
    105105    float m_aspectRatioDenominator;
Note: See TracChangeset for help on using the changeset viewer.