| 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 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 800 { | 800 { |
| 801 if (!renderer || !renderer->hasTransform() || !style->hasTransform()) | 801 if (!renderer || !renderer->hasTransform() || !style->hasTransform()) |
| 802 return cssValuePool().createIdentifierValue(CSSValueNone); | 802 return cssValuePool().createIdentifierValue(CSSValueNone); |
| 803 | 803 |
| 804 IntRect box; | 804 IntRect box; |
| 805 if (renderer->isBox()) | 805 if (renderer->isBox()) |
| 806 box = pixelSnappedIntRect(toRenderBox(renderer)->borderBoxRect()); | 806 box = pixelSnappedIntRect(toRenderBox(renderer)->borderBoxRect()); |
| 807 | 807 |
| 808 TransformationMatrix transform; | 808 TransformationMatrix transform; |
| 809 style->applyTransform(transform, box.size(), RenderStyle::ExcludeTransformOr
igin); | 809 style->applyTransform(transform, box.size(), RenderStyle::ExcludeTransformOr
igin); |
| 810 // Note that this does not flatten to an affine transform if ENABLE(3D_RENDE
RING) is off, by design. | |
| 811 | 810 |
| 812 // FIXME: Need to print out individual functions (https://bugs.webkit.org/sh
ow_bug.cgi?id=23924) | 811 // FIXME: Need to print out individual functions (https://bugs.webkit.org/sh
ow_bug.cgi?id=23924) |
| 813 RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); | 812 RefPtr<CSSValueList> list = CSSValueList::createSpaceSeparated(); |
| 814 list->append(matrixTransformValue(transform, style)); | 813 list->append(matrixTransformValue(transform, style)); |
| 815 | 814 |
| 816 return list.release(); | 815 return list.release(); |
| 817 } | 816 } |
| 818 | 817 |
| 819 static PassRefPtr<CSSValue> valueForCustomFilterArrayParameter(const CustomFilte
rArrayParameter* arrayParameter) | 818 static PassRefPtr<CSSValue> valueForCustomFilterArrayParameter(const CustomFilte
rArrayParameter* arrayParameter) |
| 820 { | 819 { |
| (...skipping 2191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3012 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, | 3011 static const CSSPropertyID propertiesAfterSlashSeperator[3] = { CSSPropertyB
ackgroundSize, CSSPropertyBackgroundOrigin, |
| 3013 CSSPropertyB
ackgroundClip }; | 3012 CSSPropertyB
ackgroundClip }; |
| 3014 | 3013 |
| 3015 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); | 3014 RefPtr<CSSValueList> list = CSSValueList::createSlashSeparated(); |
| 3016 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlashSeperat
or)))); | 3015 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(propertiesBeforeSlashSeperator, WTF_ARRAY_LENGTH(propertiesBeforeSlashSeperat
or)))); |
| 3017 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSeperator
)))); | 3016 list->append(getCSSPropertyValuesForShorthandProperties(StylePropertyShortha
nd(propertiesAfterSlashSeperator, WTF_ARRAY_LENGTH(propertiesAfterSlashSeperator
)))); |
| 3018 return list.release(); | 3017 return list.release(); |
| 3019 } | 3018 } |
| 3020 | 3019 |
| 3021 } // namespace WebCore | 3020 } // namespace WebCore |
| OLD | NEW |