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

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

Issue 2773163002: Include control clip in list of clip-related properties. (Closed)
Patch Set: Created 3 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
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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 bool childNeedsOverflowRecalcAfterStyleChange() const { 806 bool childNeedsOverflowRecalcAfterStyleChange() const {
807 return m_bitfields.childNeedsOverflowRecalcAfterStyleChange(); 807 return m_bitfields.childNeedsOverflowRecalcAfterStyleChange();
808 } 808 }
809 809
810 bool isSelectionBorder() const; 810 bool isSelectionBorder() const;
811 811
812 bool hasClip() const { 812 bool hasClip() const {
813 return isOutOfFlowPositioned() && !style()->hasAutoClip(); 813 return isOutOfFlowPositioned() && !style()->hasAutoClip();
814 } 814 }
815 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); } 815 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); }
816 bool hasClipRelatedProperty() const { 816 bool hasClipRelatedProperty() const;
817 return hasClip() || hasOverflowClip() || hasClipPath() ||
818 style()->containsPaint();
819 }
820 817
821 bool hasTransformRelatedProperty() const { 818 bool hasTransformRelatedProperty() const {
822 return m_bitfields.hasTransformRelatedProperty(); 819 return m_bitfields.hasTransformRelatedProperty();
823 } 820 }
824 bool isTransformApplicable() const { return isBox() || isSVG(); } 821 bool isTransformApplicable() const { return isBox() || isSVG(); }
825 bool hasMask() const { return style() && style()->hasMask(); } 822 bool hasMask() const { return style() && style()->hasMask(); }
826 bool hasClipPath() const { return style() && style()->clipPath(); } 823 bool hasClipPath() const { return style() && style()->clipPath(); }
827 bool hasHiddenBackface() const { 824 bool hasHiddenBackface() const {
828 return style() && style()->backfaceVisibility() == BackfaceVisibilityHidden; 825 return style() && style()->backfaceVisibility() == BackfaceVisibilityHidden;
829 } 826 }
(...skipping 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after
2712 CORE_EXPORT void showLineTree(const blink::LayoutObject*); 2709 CORE_EXPORT void showLineTree(const blink::LayoutObject*);
2713 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); 2710 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1);
2714 // We don't make object2 an optional parameter so that showLayoutTree 2711 // We don't make object2 an optional parameter so that showLayoutTree
2715 // can be called from gdb easily. 2712 // can be called from gdb easily.
2716 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, 2713 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1,
2717 const blink::LayoutObject* object2); 2714 const blink::LayoutObject* object2);
2718 2715
2719 #endif 2716 #endif
2720 2717
2721 #endif // LayoutObject_h 2718 #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