Changeset 160023 in webkit
- Timestamp:
- Dec 3, 2013 11:43:25 AM (10 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r160021 r160023 1 2013-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 1 13 2013-12-03 Myles C. Maxfield <mmaxfield@apple.com> 2 14 -
trunk/Source/WebCore/css/CSSBasicShapes.cpp
r159979 r160023 534 534 } 535 535 536 #if ENABLE(CSS_VARIABLES)537 String CSSBasicShapeInset::serializeResolvingVariables(const HashMap<AtomicString, String>& variables) const538 {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() const591 {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 #endif603 604 536 } // namespace WebCore 605 537 -
trunk/Source/WebCore/css/CSSBasicShapes.h
r159968 r160023 162 162 virtual bool equals(const CSSBasicShape&) const OVERRIDE; 163 163 164 #if ENABLE(CSS_VARIABLES)165 virtual String serializeResolvingVariables(const HashMap<AtomicString, String>&) const;166 virtual bool hasVariableReference() const;167 #endif168 169 164 private: 170 165 CSSBasicShapeInset() { } -
trunk/Source/WebKit/blackberry/ChangeLog
r159360 r160023 1 2013-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 1 10 2013-11-15 Mark Hahnenberg <mhahnenberg@apple.com> 2 11 -
trunk/Source/WebKit/blackberry/WebCoreSupport/AboutDataEnableFeatures.in
r159360 r160023 38 38 CSS_SHAPES 39 39 CSS_STICKY_POSITION 40 CSS_VARIABLES41 40 CURSOR_VISIBILITY 42 41 CUSTOM_PROTOCOLS
Note: See TracChangeset
for help on using the changeset viewer.