| 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 3150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3161 CSSValue* bottom = | 3161 CSSValue* bottom = |
| 3162 zoomAdjustedPixelValueOrAuto(style.clip().bottom(), style); | 3162 zoomAdjustedPixelValueOrAuto(style.clip().bottom(), style); |
| 3163 CSSValue* left = zoomAdjustedPixelValueOrAuto(style.clip().left(), style); | 3163 CSSValue* left = zoomAdjustedPixelValueOrAuto(style.clip().left(), style); |
| 3164 return CSSQuadValue::create(top, right, bottom, left, | 3164 return CSSQuadValue::create(top, right, bottom, left, |
| 3165 CSSQuadValue::SerializeAsRect); | 3165 CSSQuadValue::SerializeAsRect); |
| 3166 } | 3166 } |
| 3167 case CSSPropertySpeak: | 3167 case CSSPropertySpeak: |
| 3168 return CSSIdentifierValue::create(style.speak()); | 3168 return CSSIdentifierValue::create(style.speak()); |
| 3169 case CSSPropertyTransform: | 3169 case CSSPropertyTransform: |
| 3170 return computedTransform(layoutObject, style); | 3170 return computedTransform(layoutObject, style); |
| 3171 case CSSPropertyTransformBox: |
| 3172 return CSSIdentifierValue::create(style.transformBox()); |
| 3171 case CSSPropertyTransformOrigin: { | 3173 case CSSPropertyTransformOrigin: { |
| 3172 CSSValueList* list = CSSValueList::createSpaceSeparated(); | 3174 CSSValueList* list = CSSValueList::createSpaceSeparated(); |
| 3173 if (layoutObject) { | 3175 if (layoutObject) { |
| 3174 LayoutRect box; | 3176 LayoutRect box; |
| 3175 if (layoutObject->isBox()) | 3177 if (layoutObject->isBox()) |
| 3176 box = toLayoutBox(layoutObject)->borderBoxRect(); | 3178 box = toLayoutBox(layoutObject)->borderBoxRect(); |
| 3177 | 3179 |
| 3178 list->append(*zoomAdjustedPixelValue( | 3180 list->append(*zoomAdjustedPixelValue( |
| 3179 minimumValueForLength(style.transformOriginX(), box.width()), | 3181 minimumValueForLength(style.transformOriginX(), box.width()), |
| 3180 style)); | 3182 style)); |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3701 case CSSPropertyAll: | 3703 case CSSPropertyAll: |
| 3702 return nullptr; | 3704 return nullptr; |
| 3703 default: | 3705 default: |
| 3704 break; | 3706 break; |
| 3705 } | 3707 } |
| 3706 NOTREACHED(); | 3708 NOTREACHED(); |
| 3707 return nullptr; | 3709 return nullptr; |
| 3708 } | 3710 } |
| 3709 | 3711 |
| 3710 } // namespace blink | 3712 } // namespace blink |
| OLD | NEW |