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. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. |
4 * All rights reserved. | 4 * All rights reserved. |
5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 5 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> | 6 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> |
7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. | 7 * Copyright (C) 2011 Sencha, Inc. All rights reserved. |
8 * Copyright (C) 2015 Google Inc. All rights reserved. | 8 * Copyright (C) 2015 Google Inc. All rights reserved. |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 2188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2199 return CSSIdentifierValue::create(style.boxOrient()); | 2199 return CSSIdentifierValue::create(style.boxOrient()); |
2200 case CSSPropertyWebkitBoxPack: | 2200 case CSSPropertyWebkitBoxPack: |
2201 return CSSIdentifierValue::create(style.boxPack()); | 2201 return CSSIdentifierValue::create(style.boxPack()); |
2202 case CSSPropertyWebkitBoxReflect: | 2202 case CSSPropertyWebkitBoxReflect: |
2203 return valueForReflection(style.boxReflect(), style); | 2203 return valueForReflection(style.boxReflect(), style); |
2204 case CSSPropertyBoxShadow: | 2204 case CSSPropertyBoxShadow: |
2205 return valueForShadowList(style.boxShadow(), style, true); | 2205 return valueForShadowList(style.boxShadow(), style, true); |
2206 case CSSPropertyCaptionSide: | 2206 case CSSPropertyCaptionSide: |
2207 return CSSIdentifierValue::create(style.captionSide()); | 2207 return CSSIdentifierValue::create(style.captionSide()); |
2208 case CSSPropertyCaretColor: | 2208 case CSSPropertyCaretColor: |
2209 if (style.caretColor().isCurrentColor()) | 2209 return allowVisitedStyle |
2210 return CSSIdentifierValue::create(CSSValueCurrentcolor); | 2210 ? CSSColorValue::create( |
2211 if (style.caretColor().isAutoColor()) | 2211 style.visitedDependentColor(CSSPropertyCaretColor).rgb()) |
2212 return CSSIdentifierValue::create(CSSValueAuto); | 2212 : currentColorOrValidColor(style, |
2213 return CSSColorValue::create(style.caretColor().color().rgb()); | 2213 style.caretColor().toStyleColor()); |
2214 case CSSPropertyClear: | 2214 case CSSPropertyClear: |
2215 return CSSIdentifierValue::create(style.clear()); | 2215 return CSSIdentifierValue::create(style.clear()); |
2216 case CSSPropertyColor: | 2216 case CSSPropertyColor: |
2217 return CSSColorValue::create( | 2217 return CSSColorValue::create( |
2218 allowVisitedStyle | 2218 allowVisitedStyle |
2219 ? style.visitedDependentColor(CSSPropertyColor).rgb() | 2219 ? style.visitedDependentColor(CSSPropertyColor).rgb() |
2220 : style.color().rgb()); | 2220 : style.color().rgb()); |
2221 case CSSPropertyWebkitPrintColorAdjust: | 2221 case CSSPropertyWebkitPrintColorAdjust: |
2222 return CSSIdentifierValue::create(style.getPrintColorAdjust()); | 2222 return CSSIdentifierValue::create(style.getPrintColorAdjust()); |
2223 case CSSPropertyColumnCount: | 2223 case CSSPropertyColumnCount: |
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3626 case CSSPropertyAll: | 3626 case CSSPropertyAll: |
3627 return nullptr; | 3627 return nullptr; |
3628 default: | 3628 default: |
3629 break; | 3629 break; |
3630 } | 3630 } |
3631 ASSERT_NOT_REACHED(); | 3631 ASSERT_NOT_REACHED(); |
3632 return nullptr; | 3632 return nullptr; |
3633 } | 3633 } |
3634 | 3634 |
3635 } // namespace blink | 3635 } // namespace blink |
OLD | NEW |