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

Side by Side Diff: Source/core/paint/DeprecatedPaintLayer.h

Issue 1192463006: Remove constant default-arg from DeprecatedPaintLayer::currentTransform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | Source/core/paint/DeprecatedPaintLayer.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) 2003, 2009, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 264
265 bool hasTransformRelatedProperty() const { return layoutObject()->hasTransfo rmRelatedProperty(); } 265 bool hasTransformRelatedProperty() const { return layoutObject()->hasTransfo rmRelatedProperty(); }
266 // Note that this transform has the transform-origin baked in. 266 // Note that this transform has the transform-origin baked in.
267 TransformationMatrix* transform() const { return m_transform.get(); } 267 TransformationMatrix* transform() const { return m_transform.get(); }
268 void setTransform(PassOwnPtr<TransformationMatrix> transform) { m_transform = transform; } 268 void setTransform(PassOwnPtr<TransformationMatrix> transform) { m_transform = transform; }
269 void clearTransform() { m_transform.clear(); } 269 void clearTransform() { m_transform.clear(); }
270 270
271 // currentTransform computes a transform which takes accelerated animations into account. The 271 // currentTransform computes a transform which takes accelerated animations into account. The
272 // resulting transform has transform-origin baked in. If the layer does not have a transform, 272 // resulting transform has transform-origin baked in. If the layer does not have a transform,
273 // returns the identity matrix. 273 // returns the identity matrix.
274 TransformationMatrix currentTransform(ComputedStyle::ApplyTransformOrigin = ComputedStyle::IncludeTransformOrigin) const; 274 TransformationMatrix currentTransform() const;
275 TransformationMatrix renderableTransform(PaintBehavior) const; 275 TransformationMatrix renderableTransform(PaintBehavior) const;
276 276
277 // Get the perspective transform, which is applied to transformed sublayers. 277 // Get the perspective transform, which is applied to transformed sublayers.
278 // Returns true if the layer has a -webkit-perspective. 278 // Returns true if the layer has a -webkit-perspective.
279 // Note that this transform does not have the perspective-origin baked in. 279 // Note that this transform does not have the perspective-origin baked in.
280 TransformationMatrix perspectiveTransform() const; 280 TransformationMatrix perspectiveTransform() const;
281 FloatPoint perspectiveOrigin() const; 281 FloatPoint perspectiveOrigin() const;
282 bool preserves3D() const { return layoutObject()->style()->transformStyle3D( ) == TransformStyle3DPreserve3D; } 282 bool preserves3D() const { return layoutObject()->style()->transformStyle3D( ) == TransformStyle3DPreserve3D; }
283 bool has3DTransform() const { return m_transform && !m_transform->isAffine() ; } 283 bool has3DTransform() const { return m_transform && !m_transform->isAffine() ; }
284 284
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 710
711 } // namespace blink 711 } // namespace blink
712 712
713 #ifndef NDEBUG 713 #ifndef NDEBUG
714 // Outside the WebCore namespace for ease of invocation from gdb. 714 // Outside the WebCore namespace for ease of invocation from gdb.
715 void showLayerTree(const blink::DeprecatedPaintLayer*); 715 void showLayerTree(const blink::DeprecatedPaintLayer*);
716 void showLayerTree(const blink::LayoutObject*); 716 void showLayerTree(const blink::LayoutObject*);
717 #endif 717 #endif
718 718
719 #endif // Layer_h 719 #endif // Layer_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/paint/DeprecatedPaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698