OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> | 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. | 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. |
7 * Copyright (C) 2015 Google Inc. All rights reserved. | 7 * Copyright (C) 2015 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Lesser General Public | 10 * modify it under the terms of the GNU Lesser General Public |
(...skipping 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1548 case CSSPropertyFontFamily: { | 1548 case CSSPropertyFontFamily: { |
1549 RefPtrWillBeRawPtr<CSSValueList> fontFamilyList = valueForFontFamily(sty
le); | 1549 RefPtrWillBeRawPtr<CSSValueList> fontFamilyList = valueForFontFamily(sty
le); |
1550 // If there's only a single family, return that as a CSSPrimitiveValue. | 1550 // If there's only a single family, return that as a CSSPrimitiveValue. |
1551 // NOTE: Gecko always returns this as a comma-separated CSSPrimitiveValu
e string. | 1551 // NOTE: Gecko always returns this as a comma-separated CSSPrimitiveValu
e string. |
1552 if (fontFamilyList->length() == 1) | 1552 if (fontFamilyList->length() == 1) |
1553 return fontFamilyList->item(0); | 1553 return fontFamilyList->item(0); |
1554 return fontFamilyList.release(); | 1554 return fontFamilyList.release(); |
1555 } | 1555 } |
1556 case CSSPropertyFontSize: | 1556 case CSSPropertyFontSize: |
1557 return valueForFontSize(style); | 1557 return valueForFontSize(style); |
| 1558 case CSSPropertyFontSizeAdjust: |
| 1559 if (style.hasFontSizeAdjust()) |
| 1560 return cssValuePool().createValue(style.fontSizeAdjust(), CSSPrimiti
veValue::CSS_NUMBER); |
| 1561 return cssValuePool().createIdentifierValue(CSSValueNone); |
1558 case CSSPropertyFontStretch: | 1562 case CSSPropertyFontStretch: |
1559 return valueForFontStretch(style); | 1563 return valueForFontStretch(style); |
1560 case CSSPropertyFontStyle: | 1564 case CSSPropertyFontStyle: |
1561 return valueForFontStyle(style); | 1565 return valueForFontStyle(style); |
1562 case CSSPropertyFontVariant: | 1566 case CSSPropertyFontVariant: |
1563 return valueForFontVariant(style); | 1567 return valueForFontVariant(style); |
1564 case CSSPropertyFontWeight: | 1568 case CSSPropertyFontWeight: |
1565 return valueForFontWeight(style); | 1569 return valueForFontWeight(style); |
1566 case CSSPropertyWebkitFontFeatureSettings: { | 1570 case CSSPropertyWebkitFontFeatureSettings: { |
1567 const FontFeatureSettings* featureSettings = style.fontDescription().fea
tureSettings(); | 1571 const FontFeatureSettings* featureSettings = style.fontDescription().fea
tureSettings(); |
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2564 return zoomAdjustedPixelValueForLength(svgStyle.y(), style); | 2568 return zoomAdjustedPixelValueForLength(svgStyle.y(), style); |
2565 | 2569 |
2566 case CSSPropertyAll: | 2570 case CSSPropertyAll: |
2567 return nullptr; | 2571 return nullptr; |
2568 } | 2572 } |
2569 ASSERT_NOT_REACHED(); | 2573 ASSERT_NOT_REACHED(); |
2570 return nullptr; | 2574 return nullptr; |
2571 } | 2575 } |
2572 | 2576 |
2573 } | 2577 } |
OLD | NEW |