Changeset 160023 in webkit


Ignore:
Timestamp:
Dec 3, 2013 11:43:25 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Remove some CSS Variables leftovers
https://bugs.webkit.org/show_bug.cgi?id=125167

Patch by Nick Diego Yamane <nick.yamane@openbossa.org> on 2013-12-03
Reviewed by Darin Adler.

Source/WebCore:

No new tests needed. Only removing leftover code.

  • css/CSSBasicShapes.cpp:
  • css/CSSBasicShapes.h:

Source/WebKit/blackberry:

  • WebCoreSupport/AboutDataEnableFeatures.in:
Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r160021 r160023  
     12013-12-03  Nick Diego Yamane  <nick.yamane@openbossa.org>
     2
     3        Remove some CSS Variables leftovers
     4        https://bugs.webkit.org/show_bug.cgi?id=125167
     5
     6        Reviewed by Darin Adler.
     7
     8        No new tests needed. Only removing leftover code.
     9
     10        * css/CSSBasicShapes.cpp:
     11        * css/CSSBasicShapes.h:
     12
    1132013-12-03  Myles C. Maxfield  <mmaxfield@apple.com>
    214
  • trunk/Source/WebCore/css/CSSBasicShapes.cpp

    r159979 r160023  
    534534}
    535535
    536 #if ENABLE(CSS_VARIABLES)
    537 String CSSBasicShapeInset::serializeResolvingVariables(const HashMap<AtomicString, String>& variables) const
    538 {
    539     String topLeftRadiusWidth;
    540     String topLeftRadiusHeight;
    541     if (topLeftRadius()) {
    542         if (m_topLeftRadius->getPairValue()->first())
    543             topLeftRadiusWidth = m_topLeftRadius->getPairValue()->first()->serializeResolvingVariables(variables);
    544         if (m_topLeftRadius->getPairValue()->second())
    545             topLeftRadiusHeight = m_topLeftRadius->getPairValue()->second()->serializeResolvingVariables(variables);
    546     }
    547 
    548     String topRightRadiusWidth;
    549     String topRightRadiusHeight;
    550     if (topRightRadius()) {
    551         if (m_topRightRadius->getPairValue()->first())
    552             topRightRadiusWidth = m_topRightRadius->getPairValue()->first()->serializeResolvingVariables(variables);
    553         if (m_topRightRadius->getPairValue()->second())
    554             topRightRadiusHeight = m_topRightRadius->getPairValue()->second()->serializeResolvingVariables(variables);
    555     }
    556 
    557     String bottomRightRadiusWidth;
    558     String bottomRightRadiusHeight;
    559     if (bottomRightRadius()) {
    560         if (m_bottomRightRadius->getPairValue()->first())
    561             bottomRightRadiusWidth = m_bottomRightRadius->getPairValue()->first()->serializeResolvingVariables(variables);
    562         if (m_bottomRightRadius->getPairValue()->second())
    563             bottomRightRadiusHeight = m_bottomRightRadius->getPairValue()->second()->serializeResolvingVariables(variables);
    564     }
    565 
    566     String bottomLeftRadiusWidth;
    567     String bottomLeftRadiusHeight;
    568     if (bottomLeftRadius()) {
    569         if (m_bottomLeftRadius->getPairValue()->first())
    570             bottomLeftRadiusWidth = m_bottomLeftRadius->getPairValue()->first()->serializeResolvingVariables(variables);
    571         if (m_bottomLeftRadius->getPairValue()->second())
    572             bottomLeftRadiusHeight = m_bottomLeftRadius->getPairValue()->second()->serializeResolvingVariables(variables);
    573     }
    574 
    575     return buildInsetString(m_top->serializeResolvingVariables(variables),
    576         m_right->serializeResolvingVariables(variables),
    577         m_bottom->serializeResolvingVariables(variables),
    578         m_left->serializeResolvingVariables(variables),
    579         topLeftRadiusWidth,
    580         topLeftRadiusHeight,
    581         topRightRadiusWidth,
    582         topRightRadiusHeight,
    583         bottomRightRadiusWidth,
    584         bottomRightRadiusHeight,
    585         bottomLeftRadiusWidth,
    586         bottomLeftRadiusHeight,
    587         m_box ? m_box->serializeResolvingVariables(variables) : String());
    588 }
    589 
    590 bool CSSBasicShapeInset::hasVariableReference() const
    591 {
    592     return m_top->hasVariableReference()
    593         || m_right->hasVariableReference()
    594         || m_bottom->hasVariableReference()
    595         || m_left->hasVariableReference()
    596         || (topLeftRadius() && m_topLeftRadius->hasVariableReference())
    597         || (topRightRadius() && m_topRightRadius->hasVariableReference())
    598         || (bottomRightRadius() && m_bottomRightRadius->hasVariableReference())
    599         || (bottomLeftRadius() && m_bottomLeftRadius->hasVariableReference())
    600         || (m_box && m_box->hasVariableReference());
    601 }
    602 #endif
    603 
    604536} // namespace WebCore
    605537
  • trunk/Source/WebCore/css/CSSBasicShapes.h

    r159968 r160023  
    162162    virtual bool equals(const CSSBasicShape&) const OVERRIDE;
    163163
    164 #if ENABLE(CSS_VARIABLES)
    165     virtual String serializeResolvingVariables(const HashMap<AtomicString, String>&) const;
    166     virtual bool hasVariableReference() const;
    167 #endif
    168 
    169164private:
    170165    CSSBasicShapeInset() { }
  • trunk/Source/WebKit/blackberry/ChangeLog

    r159360 r160023  
     12013-12-03  Nick Diego Yamane  <nick.yamane@openbossa.org>
     2
     3        Remove some CSS Variables leftovers
     4        https://bugs.webkit.org/show_bug.cgi?id=125167
     5
     6        Reviewed by Darin Adler.
     7
     8        * WebCoreSupport/AboutDataEnableFeatures.in:
     9
    1102013-11-15  Mark Hahnenberg  <mhahnenberg@apple.com>
    211
  • trunk/Source/WebKit/blackberry/WebCoreSupport/AboutDataEnableFeatures.in

    r159360 r160023  
    3838CSS_SHAPES
    3939CSS_STICKY_POSITION
    40 CSS_VARIABLES
    4140CURSOR_VISIBILITY
    4241CUSTOM_PROTOCOLS
Note: See TracChangeset for help on using the changeset viewer.