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 2361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2372 if (style.getTextCombine() == TextCombineAll) | 2372 if (style.getTextCombine() == TextCombineAll) |
2373 return CSSPrimitiveValue::createIdentifier(CSSValueHorizontal); | 2373 return CSSPrimitiveValue::createIdentifier(CSSValueHorizontal); |
2374 case CSSPropertyTextCombineUpright: | 2374 case CSSPropertyTextCombineUpright: |
2375 return cssValuePool().createValue(style.getTextCombine()); | 2375 return cssValuePool().createValue(style.getTextCombine()); |
2376 case CSSPropertyWebkitTextOrientation: | 2376 case CSSPropertyWebkitTextOrientation: |
2377 if (style.getTextOrientation() == TextOrientationMixed) | 2377 if (style.getTextOrientation() == TextOrientationMixed) |
2378 return CSSPrimitiveValue::createIdentifier(CSSValueVerticalRight); | 2378 return CSSPrimitiveValue::createIdentifier(CSSValueVerticalRight); |
2379 case CSSPropertyTextOrientation: | 2379 case CSSPropertyTextOrientation: |
2380 return CSSPrimitiveValue::create(style.getTextOrientation()); | 2380 return CSSPrimitiveValue::create(style.getTextOrientation()); |
2381 case CSSPropertyContent: | 2381 case CSSPropertyContent: |
| 2382 if (style.styleType() == PseudoIdNone) |
| 2383 return cssValuePool().createIdentifierValue(CSSValueNormal); |
| 2384 if (!style.hasContent() && (style.styleType() == PseudoIdBefore || style
.styleType() == PseudoIdAfter)) |
| 2385 return cssValuePool().createIdentifierValue(CSSValueNone); |
2382 return valueForContentData(style); | 2386 return valueForContentData(style); |
2383 case CSSPropertyCounterIncrement: | 2387 case CSSPropertyCounterIncrement: |
2384 return valueForCounterDirectives(style, propertyID); | 2388 return valueForCounterDirectives(style, propertyID); |
2385 case CSSPropertyCounterReset: | 2389 case CSSPropertyCounterReset: |
2386 return valueForCounterDirectives(style, propertyID); | 2390 return valueForCounterDirectives(style, propertyID); |
2387 case CSSPropertyWebkitClipPath: | 2391 case CSSPropertyWebkitClipPath: |
2388 if (ClipPathOperation* operation = style.clipPath()) { | 2392 if (ClipPathOperation* operation = style.clipPath()) { |
2389 if (operation->type() == ClipPathOperation::SHAPE) | 2393 if (operation->type() == ClipPathOperation::SHAPE) |
2390 return valueForBasicShape(style, toShapeClipPathOperation(operat
ion)->basicShape()); | 2394 return valueForBasicShape(style, toShapeClipPathOperation(operat
ion)->basicShape()); |
2391 if (operation->type() == ClipPathOperation::REFERENCE) | 2395 if (operation->type() == ClipPathOperation::REFERENCE) |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2754 case CSSPropertyAll: | 2758 case CSSPropertyAll: |
2755 return nullptr; | 2759 return nullptr; |
2756 default: | 2760 default: |
2757 break; | 2761 break; |
2758 } | 2762 } |
2759 ASSERT_NOT_REACHED(); | 2763 ASSERT_NOT_REACHED(); |
2760 return nullptr; | 2764 return nullptr; |
2761 } | 2765 } |
2762 | 2766 |
2763 } // namespace blink | 2767 } // namespace blink |
OLD | NEW |