| 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 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1356 } | 1356 } |
| 1357 | 1357 |
| 1358 PassRefPtrWillBeRawPtr<CSSValue> ComputedStyleCSSValueMapping::get(CSSPropertyID
propertyID, const ComputedStyle& style, const LayoutObject* layoutObject, Node*
styledNode, bool allowVisitedStyle) | 1358 PassRefPtrWillBeRawPtr<CSSValue> ComputedStyleCSSValueMapping::get(CSSPropertyID
propertyID, const ComputedStyle& style, const LayoutObject* layoutObject, Node*
styledNode, bool allowVisitedStyle) |
| 1359 { | 1359 { |
| 1360 const SVGComputedStyle& svgStyle = style.svgStyle(); | 1360 const SVGComputedStyle& svgStyle = style.svgStyle(); |
| 1361 propertyID = CSSProperty::resolveDirectionAwareProperty(propertyID, style.di
rection(), style.writingMode()); | 1361 propertyID = CSSProperty::resolveDirectionAwareProperty(propertyID, style.di
rection(), style.writingMode()); |
| 1362 switch (propertyID) { | 1362 switch (propertyID) { |
| 1363 case CSSPropertyInvalid: | 1363 case CSSPropertyInvalid: |
| 1364 return nullptr; | 1364 return nullptr; |
| 1365 | 1365 |
| 1366 case CSSPropertyOnclickVpi: |
| 1367 case CSSPropertyOnclickVpu: |
| 1368 case CSSPropertyOnscrollVpi: |
| 1369 case CSSPropertyOnscrollVpu: |
| 1370 case CSSPropertyOntouchstartVpi: |
| 1371 case CSSPropertyOntouchstartVpu: |
| 1372 case CSSPropertyOntouchendVpi: |
| 1373 case CSSPropertyOntouchendVpu: |
| 1374 case CSSPropertyOntouchmoveVpi: |
| 1375 case CSSPropertyOntouchmoveVpu: |
| 1376 return cssValuePool().createValue(style.order(), CSSPrimitiveValue::Unit
Type::Number); |
| 1366 case CSSPropertyBackgroundColor: | 1377 case CSSPropertyBackgroundColor: |
| 1367 return allowVisitedStyle ? cssValuePool().createColorValue(style.visited
DependentColor(CSSPropertyBackgroundColor).rgb()) : currentColorOrValidColor(sty
le, style.backgroundColor()); | 1378 return allowVisitedStyle ? cssValuePool().createColorValue(style.visited
DependentColor(CSSPropertyBackgroundColor).rgb()) : currentColorOrValidColor(sty
le, style.backgroundColor()); |
| 1368 case CSSPropertyBackgroundImage: | 1379 case CSSPropertyBackgroundImage: |
| 1369 case CSSPropertyWebkitMaskImage: { | 1380 case CSSPropertyWebkitMaskImage: { |
| 1370 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparat
ed(); | 1381 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createCommaSeparat
ed(); |
| 1371 const FillLayer* currLayer = propertyID == CSSPropertyWebkitMaskImage ?
&style.maskLayers() : &style.backgroundLayers(); | 1382 const FillLayer* currLayer = propertyID == CSSPropertyWebkitMaskImage ?
&style.maskLayers() : &style.backgroundLayers(); |
| 1372 for (; currLayer; currLayer = currLayer->next()) { | 1383 for (; currLayer; currLayer = currLayer->next()) { |
| 1373 if (currLayer->image()) | 1384 if (currLayer->image()) |
| 1374 list->append(currLayer->image()->computedCSSValue()); | 1385 list->append(currLayer->image()->computedCSSValue()); |
| 1375 else | 1386 else |
| (...skipping 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2688 case CSSPropertyAll: | 2699 case CSSPropertyAll: |
| 2689 return nullptr; | 2700 return nullptr; |
| 2690 default: | 2701 default: |
| 2691 break; | 2702 break; |
| 2692 } | 2703 } |
| 2693 ASSERT_NOT_REACHED(); | 2704 ASSERT_NOT_REACHED(); |
| 2694 return nullptr; | 2705 return nullptr; |
| 2695 } | 2706 } |
| 2696 | 2707 |
| 2697 } | 2708 } |
| OLD | NEW |