OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 4 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 5 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. | 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
All rights reserved. |
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 10 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1104 color = svgColor->color(); | 1104 color = svgColor->color(); |
1105 return color; | 1105 return color; |
1106 } | 1106 } |
1107 | 1107 |
1108 static EPaintOrder paintOrderFlattened(CSSValue* cssPaintOrder) | 1108 static EPaintOrder paintOrderFlattened(CSSValue* cssPaintOrder) |
1109 { | 1109 { |
1110 if (cssPaintOrder->isValueList()) { | 1110 if (cssPaintOrder->isValueList()) { |
1111 int paintOrder = 0; | 1111 int paintOrder = 0; |
1112 CSSValueListInspector iter(cssPaintOrder); | 1112 CSSValueListInspector iter(cssPaintOrder); |
1113 for (size_t i = 0; i < iter.length(); i++) { | 1113 for (size_t i = 0; i < iter.length(); i++) { |
1114 CSSPrimitiveValue* value = static_cast<CSSPrimitiveValue*>(iter.item
(i)); | 1114 CSSPrimitiveValue* value = toCSSPrimitiveValue(iter.item(i)); |
1115 | 1115 |
1116 EPaintOrderType paintOrderType = PT_NONE; | 1116 EPaintOrderType paintOrderType = PT_NONE; |
1117 switch (value->getValueID()) { | 1117 switch (value->getValueID()) { |
1118 case CSSValueFill: | 1118 case CSSValueFill: |
1119 paintOrderType = PT_FILL; | 1119 paintOrderType = PT_FILL; |
1120 break; | 1120 break; |
1121 case CSSValueStroke: | 1121 case CSSValueStroke: |
1122 paintOrderType = PT_STROKE; | 1122 paintOrderType = PT_STROKE; |
1123 break; | 1123 break; |
1124 case CSSValueMarkers: | 1124 case CSSValueMarkers: |
(...skipping 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2385 break; | 2385 break; |
2386 } | 2386 } |
2387 case CSSPropertyEnableBackground: | 2387 case CSSPropertyEnableBackground: |
2388 // Silently ignoring this property for now | 2388 // Silently ignoring this property for now |
2389 // http://bugs.webkit.org/show_bug.cgi?id=6022 | 2389 // http://bugs.webkit.org/show_bug.cgi?id=6022 |
2390 break; | 2390 break; |
2391 } | 2391 } |
2392 } | 2392 } |
2393 | 2393 |
2394 } // namespace WebCore | 2394 } // namespace WebCore |
OLD | NEW |