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

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

Issue 663923002: Rename hasTransform() to hasTransformRelatedProperty, since the meaning is the latter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Created 6 years, 2 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 | « no previous file | Source/core/rendering/RenderBlock.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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 transformValue->append(zoomAdjustedNumberValue(transform.m42(), style)); 748 transformValue->append(zoomAdjustedNumberValue(transform.m42(), style));
749 transformValue->append(zoomAdjustedNumberValue(transform.m43(), style)); 749 transformValue->append(zoomAdjustedNumberValue(transform.m43(), style));
750 transformValue->append(cssValuePool().createValue(transform.m44(), CSSPr imitiveValue::CSS_NUMBER)); 750 transformValue->append(cssValuePool().createValue(transform.m44(), CSSPr imitiveValue::CSS_NUMBER));
751 } 751 }
752 752
753 return transformValue.release(); 753 return transformValue.release();
754 } 754 }
755 755
756 static PassRefPtrWillBeRawPtr<CSSValue> computedTransform(RenderObject* renderer , const RenderStyle& style) 756 static PassRefPtrWillBeRawPtr<CSSValue> computedTransform(RenderObject* renderer , const RenderStyle& style)
757 { 757 {
758 if (!renderer || !renderer->hasTransform() || !style.hasTransform()) 758 if (!renderer || !renderer->hasTransformRelatedProperty() || !style.hasTrans form())
759 return cssValuePool().createIdentifierValue(CSSValueNone); 759 return cssValuePool().createIdentifierValue(CSSValueNone);
760 760
761 IntRect box; 761 IntRect box;
762 if (renderer->isBox()) 762 if (renderer->isBox())
763 box = pixelSnappedIntRect(toRenderBox(renderer)->borderBoxRect()); 763 box = pixelSnappedIntRect(toRenderBox(renderer)->borderBoxRect());
764 764
765 TransformationMatrix transform; 765 TransformationMatrix transform;
766 style.applyTransform(transform, box.size(), RenderStyle::ExcludeTransformOri gin); 766 style.applyTransform(transform, box.size(), RenderStyle::ExcludeTransformOri gin);
767 767
768 // FIXME: Need to print out individual functions (https://bugs.webkit.org/sh ow_bug.cgi?id=23924) 768 // FIXME: Need to print out individual functions (https://bugs.webkit.org/sh ow_bug.cgi?id=23924)
(...skipping 2223 matching lines...) Expand 10 before | Expand all | Expand 10 after
2992 return list.release(); 2992 return list.release();
2993 } 2993 }
2994 2994
2995 void CSSComputedStyleDeclaration::trace(Visitor* visitor) 2995 void CSSComputedStyleDeclaration::trace(Visitor* visitor)
2996 { 2996 {
2997 visitor->trace(m_node); 2997 visitor->trace(m_node);
2998 CSSStyleDeclaration::trace(visitor); 2998 CSSStyleDeclaration::trace(visitor);
2999 } 2999 }
3000 3000
3001 } // namespace blink 3001 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698