| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2012 Apple Inc. All rights reserv
ed. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 // We do not apply the zoom factor when we are computing the value of the fo
nt-size property. The zooming | 663 // We do not apply the zoom factor when we are computing the value of the fo
nt-size property. The zooming |
| 664 // for font sizes is much more complicated, since we have to worry about enf
orcing the minimum font size preference | 664 // for font sizes is much more complicated, since we have to worry about enf
orcing the minimum font size preference |
| 665 // as well as enforcing the implicit "smart minimum." | 665 // as well as enforcing the implicit "smart minimum." |
| 666 double result = getDoubleValue() * factor; | 666 double result = getDoubleValue() * factor; |
| 667 if (computingFontSize || isFontRelativeLength()) | 667 if (computingFontSize || isFontRelativeLength()) |
| 668 return result; | 668 return result; |
| 669 | 669 |
| 670 return result * conversionData.zoom(); | 670 return result * conversionData.zoom(); |
| 671 } | 671 } |
| 672 | 672 |
| 673 void CSSPrimitiveValue::zeroLengthArray(CSSLengthArray& lengthArray) |
| 674 { |
| 675 lengthArray.resize(LengthUnitTypeCount); |
| 676 for (size_t i = 0; i < LengthUnitTypeCount; ++i) |
| 677 lengthArray.at(i) = 0; |
| 678 } |
| 679 |
| 673 void CSSPrimitiveValue::accumulateLengthArray(CSSLengthArray& lengthArray, doubl
e multiplier) const | 680 void CSSPrimitiveValue::accumulateLengthArray(CSSLengthArray& lengthArray, doubl
e multiplier) const |
| 674 { | 681 { |
| 675 ASSERT(lengthArray.size() == LengthUnitTypeCount); | 682 ASSERT(lengthArray.size() == LengthUnitTypeCount); |
| 676 | 683 |
| 677 if (m_primitiveUnitType == CSS_CALC) { | 684 if (m_primitiveUnitType == CSS_CALC) { |
| 678 cssCalcValue()->accumulateLengthArray(lengthArray, multiplier); | 685 cssCalcValue()->accumulateLengthArray(lengthArray, multiplier); |
| 679 return; | 686 return; |
| 680 } | 687 } |
| 681 | 688 |
| 682 LengthUnitType lengthType; | 689 LengthUnitType lengthType; |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1431 case CSS_SHAPE: | 1438 case CSS_SHAPE: |
| 1432 visitor->trace(m_value.shape); | 1439 visitor->trace(m_value.shape); |
| 1433 break; | 1440 break; |
| 1434 default: | 1441 default: |
| 1435 break; | 1442 break; |
| 1436 } | 1443 } |
| 1437 CSSValue::traceAfterDispatch(visitor); | 1444 CSSValue::traceAfterDispatch(visitor); |
| 1438 } | 1445 } |
| 1439 | 1446 |
| 1440 } // namespace WebCore | 1447 } // namespace WebCore |
| OLD | NEW |