Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: Source/WebCore/css/CSSComputedStyleDeclaration.cpp

Issue 14067007: Remove 3D_RENDERING define from Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased, retrying the bots Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/WTF/wtf/FeatureDefines.h ('k') | Source/WebCore/css/MediaQueryEvaluator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/WTF/wtf/FeatureDefines.h ('k') | Source/WebCore/css/MediaQueryEvaluator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698