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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 2225743002: Use same layout logic in animations for deciding whether an element can transform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: isTransformApplicable Created 4 years, 4 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 | « third_party/WebKit/Source/core/animation/CompositorAnimations.cpp ('k') | no next file » | 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 bool selfNeedsOverflowRecalcAfterStyleChange() const { return m_bitfields.se lfNeedsOverflowRecalcAfterStyleChange(); } 705 bool selfNeedsOverflowRecalcAfterStyleChange() const { return m_bitfields.se lfNeedsOverflowRecalcAfterStyleChange(); }
706 bool childNeedsOverflowRecalcAfterStyleChange() const { return m_bitfields.c hildNeedsOverflowRecalcAfterStyleChange(); } 706 bool childNeedsOverflowRecalcAfterStyleChange() const { return m_bitfields.c hildNeedsOverflowRecalcAfterStyleChange(); }
707 707
708 bool isSelectionBorder() const; 708 bool isSelectionBorder() const;
709 709
710 bool hasClip() const { return isOutOfFlowPositioned() && !style()->hasAutoCl ip(); } 710 bool hasClip() const { return isOutOfFlowPositioned() && !style()->hasAutoCl ip(); }
711 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); } 711 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); }
712 bool hasClipRelatedProperty() const { return hasClip() || hasOverflowClip() || style()->containsPaint(); } 712 bool hasClipRelatedProperty() const { return hasClip() || hasOverflowClip() || style()->containsPaint(); }
713 713
714 bool hasTransformRelatedProperty() const { return m_bitfields.hasTransformRe latedProperty(); } 714 bool hasTransformRelatedProperty() const { return m_bitfields.hasTransformRe latedProperty(); }
715 bool isTransformApplicable() const { return isBox() || isSVG(); }
715 bool hasMask() const { return style() && style()->hasMask(); } 716 bool hasMask() const { return style() && style()->hasMask(); }
716 bool hasClipPath() const { return style() && style()->clipPath(); } 717 bool hasClipPath() const { return style() && style()->clipPath(); }
717 bool hasHiddenBackface() const { return style() && style()->backfaceVisibili ty() == BackfaceVisibilityHidden; } 718 bool hasHiddenBackface() const { return style() && style()->backfaceVisibili ty() == BackfaceVisibilityHidden; }
718 bool hasBackdropFilter() const { return style() && style()->hasBackdropFilte r(); } 719 bool hasBackdropFilter() const { return style() && style()->hasBackdropFilte r(); }
719 720
720 // Returns |true| if any property that renders using filter operations is 721 // Returns |true| if any property that renders using filter operations is
721 // used (including, but not limited to, 'filter'). 722 // used (including, but not limited to, 'filter').
722 bool hasFilterInducingProperty() const 723 bool hasFilterInducingProperty() const
723 { 724 {
724 return (style() && style()->hasFilter()) || (RuntimeEnabledFeatures::css BoxReflectFilterEnabled() && hasReflection()); 725 return (style() && style()->hasFilter()) || (RuntimeEnabledFeatures::css BoxReflectFilterEnabled() && hasReflection());
(...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after
2181 void showTree(const blink::LayoutObject*); 2182 void showTree(const blink::LayoutObject*);
2182 void showLineTree(const blink::LayoutObject*); 2183 void showLineTree(const blink::LayoutObject*);
2183 void showLayoutTree(const blink::LayoutObject* object1); 2184 void showLayoutTree(const blink::LayoutObject* object1);
2184 // We don't make object2 an optional parameter so that showLayoutTree 2185 // We don't make object2 an optional parameter so that showLayoutTree
2185 // can be called from gdb easily. 2186 // can be called from gdb easily.
2186 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2187 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2187 2188
2188 #endif 2189 #endif
2189 2190
2190 #endif // LayoutObject_h 2191 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/CompositorAnimations.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698