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

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

Issue 2770943003: Include control clip in list of clip-related properties. (Closed)
Patch Set: Merge branch 'master' into squash Created 3 years, 9 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
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. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2009 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 bool childNeedsOverflowRecalcAfterStyleChange() const { 816 bool childNeedsOverflowRecalcAfterStyleChange() const {
817 return m_bitfields.childNeedsOverflowRecalcAfterStyleChange(); 817 return m_bitfields.childNeedsOverflowRecalcAfterStyleChange();
818 } 818 }
819 819
820 bool isSelectionBorder() const; 820 bool isSelectionBorder() const;
821 821
822 bool hasClip() const { 822 bool hasClip() const {
823 return isOutOfFlowPositioned() && !style()->hasAutoClip(); 823 return isOutOfFlowPositioned() && !style()->hasAutoClip();
824 } 824 }
825 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); } 825 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); }
826 bool hasClipRelatedProperty() const { 826 bool hasClipRelatedProperty() const;
827 return hasClip() || hasOverflowClip() || hasClipPath() ||
828 style()->containsPaint();
829 }
830 827
831 bool hasTransformRelatedProperty() const { 828 bool hasTransformRelatedProperty() const {
832 return m_bitfields.hasTransformRelatedProperty(); 829 return m_bitfields.hasTransformRelatedProperty();
833 } 830 }
834 bool isTransformApplicable() const { return isBox() || isSVG(); } 831 bool isTransformApplicable() const { return isBox() || isSVG(); }
835 bool hasMask() const { return style() && style()->hasMask(); } 832 bool hasMask() const { return style() && style()->hasMask(); }
836 bool hasClipPath() const { return style() && style()->clipPath(); } 833 bool hasClipPath() const { return style() && style()->clipPath(); }
837 bool hasHiddenBackface() const { 834 bool hasHiddenBackface() const {
838 return style() && style()->backfaceVisibility() == BackfaceVisibilityHidden; 835 return style() && style()->backfaceVisibility() == BackfaceVisibilityHidden;
839 } 836 }
(...skipping 1945 matching lines...) Expand 10 before | Expand all | Expand 10 after
2785 CORE_EXPORT void showLineTree(const blink::LayoutObject*); 2782 CORE_EXPORT void showLineTree(const blink::LayoutObject*);
2786 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); 2783 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1);
2787 // We don't make object2 an optional parameter so that showLayoutTree 2784 // We don't make object2 an optional parameter so that showLayoutTree
2788 // can be called from gdb easily. 2785 // can be called from gdb easily.
2789 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, 2786 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1,
2790 const blink::LayoutObject* object2); 2787 const blink::LayoutObject* object2);
2791 2788
2792 #endif 2789 #endif
2793 2790
2794 #endif // LayoutObject_h 2791 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698