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.hasContent()) { | |
2383 if (style.styleType() == PseudoIdBefore || style.styleType() == Pseu doIdAfter) | |
2384 return cssValuePool().createIdentifierValue(CSSValueNone); | |
2385 if (!styledNode->isPseudoElement()) | |
2386 return cssValuePool().createIdentifierValue(CSSValueNormal); | |
alancutter (OOO until 2018)
2016/03/17 06:40:24
Should this be guarded by !style.hasContent()?
nainar
2016/03/17 06:54:24
As far as I understand from https://www.w3.org/TR/
| |
2387 } | |
2382 return valueForContentData(style); | 2388 return valueForContentData(style); |
2383 case CSSPropertyCounterIncrement: | 2389 case CSSPropertyCounterIncrement: |
2384 return valueForCounterDirectives(style, propertyID); | 2390 return valueForCounterDirectives(style, propertyID); |
2385 case CSSPropertyCounterReset: | 2391 case CSSPropertyCounterReset: |
2386 return valueForCounterDirectives(style, propertyID); | 2392 return valueForCounterDirectives(style, propertyID); |
2387 case CSSPropertyWebkitClipPath: | 2393 case CSSPropertyWebkitClipPath: |
2388 if (ClipPathOperation* operation = style.clipPath()) { | 2394 if (ClipPathOperation* operation = style.clipPath()) { |
2389 if (operation->type() == ClipPathOperation::SHAPE) | 2395 if (operation->type() == ClipPathOperation::SHAPE) |
2390 return valueForBasicShape(style, toShapeClipPathOperation(operat ion)->basicShape()); | 2396 return valueForBasicShape(style, toShapeClipPathOperation(operat ion)->basicShape()); |
2391 if (operation->type() == ClipPathOperation::REFERENCE) | 2397 if (operation->type() == ClipPathOperation::REFERENCE) |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2754 case CSSPropertyAll: | 2760 case CSSPropertyAll: |
2755 return nullptr; | 2761 return nullptr; |
2756 default: | 2762 default: |
2757 break; | 2763 break; |
2758 } | 2764 } |
2759 ASSERT_NOT_REACHED(); | 2765 ASSERT_NOT_REACHED(); |
2760 return nullptr; | 2766 return nullptr; |
2761 } | 2767 } |
2762 | 2768 |
2763 } // namespace blink | 2769 } // namespace blink |
OLD | NEW |