| 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 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 static PassRefPtr<CSSValue> computedTransform(RenderObject* renderer, const Rend
erStyle* style) | 786 static PassRefPtr<CSSValue> computedTransform(RenderObject* renderer, const Rend
erStyle* style) |
| 787 { | 787 { |
| 788 if (!renderer || !renderer->hasTransform() || !style->hasTransform()) | 788 if (!renderer || !renderer->hasTransform() || !style->hasTransform()) |
| 789 return cssValuePool().createIdentifierValue(CSSValueNone); | 789 return cssValuePool().createIdentifierValue(CSSValueNone); |
| 790 | 790 |
| 791 IntRect box; | 791 IntRect box; |
| 792 if (renderer->isBox()) | 792 if (renderer->isBox()) |
| 793 box = pixelSnappedIntRect(toRenderBox(renderer)->borderBoxRect()); | 793 box = pixelSnappedIntRect(toRenderBox(renderer)->borderBoxRect()); |
| 794 | 794 |
| 795 TransformationMatrix transform; | 795 TransformationMatrix transform; |
| 796 style->applyTransform(transform, box.size(), RenderStyle::ExcludeTransformOr
igin); | 796 style->applyTransform(transform, box.size(), RenderStyle::ExcludeTransformOr
igin, renderer->view()); |
| 797 | 797 |
| 798 // FIXME: Need to print out individual functions (https://bugs.webkit.org/sh
ow_bug.cgi?id=23924) | 798 // FIXME: Need to print out individual functions (https://bugs.webkit.org/sh
ow_bug.cgi?id=23924) |
| 799 RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); | 799 RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); |
| 800 list->append(matrixTransformValue(transform, style)); | 800 list->append(matrixTransformValue(transform, style)); |
| 801 | 801 |
| 802 return list.release(); | 802 return list.release(); |
| 803 } | 803 } |
| 804 | 804 |
| 805 static PassRefPtr<CSSValue> valueForCustomFilterArrayParameter(const CustomFilte
rArrayParameter* arrayParameter) | 805 static PassRefPtr<CSSValue> valueForCustomFilterArrayParameter(const CustomFilte
rArrayParameter* arrayParameter) |
| 806 { | 806 { |
| (...skipping 2264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3071 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 3071 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
| 3072 CSSPropertyB
ackgroundClip }; | 3072 CSSPropertyB
ackgroundClip }; |
| 3073 | 3073 |
| 3074 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); | 3074 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); |
| 3075 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(CSSPropertyBackground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(prope
rtiesBeforeSlashSeperator)))); | 3075 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(CSSPropertyBackground, propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(prope
rtiesBeforeSlashSeperator)))); |
| 3076 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(CSSPropertyBackground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(proper
tiesAfterSlashSeperator)))); | 3076 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(CSSPropertyBackground, propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(proper
tiesAfterSlashSeperator)))); |
| 3077 return list.release(); | 3077 return list.release(); |
| 3078 } | 3078 } |
| 3079 | 3079 |
| 3080 } // namespace WebCore | 3080 } // namespace WebCore |
| OLD | NEW |