Changeset 107724 in webkit
- Timestamp:
- Feb 14, 2012 12:22:03 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r107723 r107724 1 2012-02-14 Mike Lawther <mikelawther@chromium.org> 2 3 CSS3 calc: add isZero implementations to catch divide by zero 4 https://bugs.webkit.org/show_bug.cgi?id=78603 5 6 Reviewed by Ojan Vafai. 7 8 * css3/calc/calc-errors-expected.txt: 9 1 10 2012-02-14 Tony Chang <tony@chromium.org> 2 11 -
trunk/LayoutTests/css3/calc/calc-errors-expected.txt
r107688 r107724 4 4 unclosed calc with garbage => PASS 5 5 garbage => PASS 6 zero division => FAIL: expected width of 100, but was 06 zero division => PASS 7 7 non length => PASS 8 8 number + length => PASS -
trunk/Source/WebCore/ChangeLog
r107715 r107724 1 2012-02-14 Mike Lawther <mikelawther@chromium.org> 2 3 CSS3 calc: add isZero implementations to catch divide by zero 4 https://bugs.webkit.org/show_bug.cgi?id=78603 5 6 Reviewed by Ojan Vafai. 7 8 * css/CSSCalculationValue.cpp: 9 (WebCore::CSSCalcPrimitiveValue::isZero): 10 (CSSCalcPrimitiveValue): 11 (WebCore::CSSCalcBinaryOperation::isZero): 12 (CSSCalcBinaryOperation): 13 * css/CSSCalculationValue.h: 14 (CSSCalcExpressionNode): 15 1 16 2012-02-12 Timothy Hatcher <timothy@apple.com> 2 17 -
trunk/Source/WebCore/css/CSSCalculationValue.cpp
r107688 r107724 100 100 } 101 101 102 virtual bool isZero() const 103 { 104 return !m_value->getDoubleValue(); 105 } 106 102 107 virtual String cssText() const 103 108 { … … 194 199 } 195 200 201 virtual bool isZero() const 202 { 203 return !doubleValue(); 204 } 205 196 206 virtual double doubleValue() const 197 207 { -
trunk/Source/WebCore/css/CSSCalculationValue.h
r107688 r107724 60 60 61 61 virtual ~CSSCalcExpressionNode() = 0; 62 virtual bool isZero() const = 0; 62 63 virtual double doubleValue() const = 0; 63 64 virtual double computeLengthPx(RenderStyle* currentStyle, RenderStyle* rootStyle, double multiplier = 1.0, bool computingFontSize = false) const = 0; … … 65 66 CalculationCategory category() const { return m_category; } 66 67 bool isInteger() const { return m_isInteger; } 67 bool isZero() const { return false; }68 68 69 69 protected:
Note: See TracChangeset
for help on using the changeset viewer.