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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayer.h

Issue 2028893002: Disallow fragmentation of composited content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 783
784 void mergeNeedsPaintPhaseFlagsFrom(const PaintLayer& layer) 784 void mergeNeedsPaintPhaseFlagsFrom(const PaintLayer& layer)
785 { 785 {
786 m_needsPaintPhaseDescendantOutlines |= layer.m_needsPaintPhaseDescendant Outlines; 786 m_needsPaintPhaseDescendantOutlines |= layer.m_needsPaintPhaseDescendant Outlines;
787 m_needsPaintPhaseFloat |= layer.m_needsPaintPhaseFloat; 787 m_needsPaintPhaseFloat |= layer.m_needsPaintPhaseFloat;
788 m_needsPaintPhaseDescendantBlockBackgrounds |= layer.m_needsPaintPhaseDe scendantBlockBackgrounds; 788 m_needsPaintPhaseDescendantBlockBackgrounds |= layer.m_needsPaintPhaseDe scendantBlockBackgrounds;
789 } 789 }
790 790
791 bool isSelfPaintingLayerForIntrinsicOrScrollingReasons() const; 791 bool isSelfPaintingLayerForIntrinsicOrScrollingReasons() const;
792 792
793 bool shouldFragmentCompositedBounds(const PaintLayer* compositingLayer) cons t;
794
793 // Self-painting layer is an optimization where we avoid the heavy Layer pai nting 795 // Self-painting layer is an optimization where we avoid the heavy Layer pai nting
794 // machinery for a Layer allocated only to handle the overflow clip case. 796 // machinery for a Layer allocated only to handle the overflow clip case.
795 // FIXME(crbug.com/332791): Self-painting layer should be merged into the ov erflow-only concept. 797 // FIXME(crbug.com/332791): Self-painting layer should be merged into the ov erflow-only concept.
796 unsigned m_isSelfPaintingLayer : 1; 798 unsigned m_isSelfPaintingLayer : 1;
797 799
798 // If have no self-painting descendants, we don't have to walk our children during painting. This can lead to 800 // If have no self-painting descendants, we don't have to walk our children during painting. This can lead to
799 // significant savings, especially if the tree has lots of non-self-painting layers grouped together (e.g. table cells). 801 // significant savings, especially if the tree has lots of non-self-painting layers grouped together (e.g. table cells).
800 mutable unsigned m_hasSelfPaintingLayerDescendant : 1; 802 mutable unsigned m_hasSelfPaintingLayerDescendant : 1;
801 mutable unsigned m_hasSelfPaintingLayerDescendantDirty : 1; 803 mutable unsigned m_hasSelfPaintingLayerDescendantDirty : 1;
802 804
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 896
895 } // namespace blink 897 } // namespace blink
896 898
897 #ifndef NDEBUG 899 #ifndef NDEBUG
898 // Outside the WebCore namespace for ease of invocation from gdb. 900 // Outside the WebCore namespace for ease of invocation from gdb.
899 void showLayerTree(const blink::PaintLayer*); 901 void showLayerTree(const blink::PaintLayer*);
900 void showLayerTree(const blink::LayoutObject*); 902 void showLayerTree(const blink::LayoutObject*);
901 #endif 903 #endif
902 904
903 #endif // Layer_h 905 #endif // Layer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698