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

Side by Side Diff: Source/core/rendering/RenderLayer.h

Issue 26110004: Defer the real work in updateCompositingLayers until it's really needed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 7 years, 2 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 | Annotate | Revision Log
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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 UpdatePagination = 1 << 4 186 UpdatePagination = 1 << 4
187 }; 187 };
188 typedef unsigned UpdateLayerPositionsFlags; 188 typedef unsigned UpdateLayerPositionsFlags;
189 static const UpdateLayerPositionsFlags defaultFlags = CheckForRepaint | IsCo mpositingUpdateRoot | UpdateCompositingLayers; 189 static const UpdateLayerPositionsFlags defaultFlags = CheckForRepaint | IsCo mpositingUpdateRoot | UpdateCompositingLayers;
190 190
191 void updateLayerPositionsAfterLayout(const RenderLayer* rootLayer, UpdateLay erPositionsFlags); 191 void updateLayerPositionsAfterLayout(const RenderLayer* rootLayer, UpdateLay erPositionsFlags);
192 192
193 void updateLayerPositionsAfterOverflowScroll(); 193 void updateLayerPositionsAfterOverflowScroll();
194 void updateLayerPositionsAfterDocumentScroll(); 194 void updateLayerPositionsAfterDocumentScroll();
195 195
196 void positionNewlyCreatedOverflowControls();
197 196
198 bool isPaginated() const { return m_isPaginated; } 197 bool isPaginated() const { return m_isPaginated; }
199 RenderLayer* enclosingPaginationLayer() const { return m_enclosingPagination Layer; } 198 RenderLayer* enclosingPaginationLayer() const { return m_enclosingPagination Layer; }
200 199
201 void updateTransform(); 200 void updateTransform();
202 201
203 void updateBlendMode(); 202 void updateBlendMode();
204 203
205 const LayoutSize& offsetForInFlowPosition() const { return m_offsetForInFlow Position; } 204 const LayoutSize& offsetForInFlowPosition() const { return m_offsetForInFlow Position; }
206 205
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 void updateOrRemoveFilterClients(); 744 void updateOrRemoveFilterClients();
746 void updateOrRemoveFilterEffectRenderer(); 745 void updateOrRemoveFilterEffectRenderer();
747 746
748 void parentClipRects(const ClipRectsContext&, ClipRects&) const; 747 void parentClipRects(const ClipRectsContext&, ClipRects&) const;
749 ClipRect backgroundClipRect(const ClipRectsContext&) const; 748 ClipRect backgroundClipRect(const ClipRectsContext&) const;
750 749
751 LayoutRect paintingExtent(const RenderLayer* rootLayer, const LayoutRect& pa intDirtyRect, PaintBehavior); 750 LayoutRect paintingExtent(const RenderLayer* rootLayer, const LayoutRect& pa intDirtyRect, PaintBehavior);
752 751
753 RenderLayer* enclosingTransformedAncestor() const; 752 RenderLayer* enclosingTransformedAncestor() const;
754 753
754 // If IntSize is not given, then we must incur additional overhead to instan tiate a RenderGeometryMap
755 // and compute the correct offset ourselves.
756 void positionOverflowControls();
755 void positionOverflowControls(const IntSize&); 757 void positionOverflowControls(const IntSize&);
756 758
757 void updatePagination(); 759 void updatePagination();
758 760
759 // FIXME: Temporary. Remove when new columns come online. 761 // FIXME: Temporary. Remove when new columns come online.
760 bool useRegionBasedColumns() const; 762 bool useRegionBasedColumns() const;
761 763
762 bool hasCompositingDescendant() const { return m_compositingProperties.hasCo mpositingDescendant; } 764 bool hasCompositingDescendant() const { return m_compositingProperties.hasCo mpositingDescendant; }
763 void setHasCompositingDescendant(bool b) { m_compositingProperties.hasCompo sitingDescendant = b; } 765 void setHasCompositingDescendant(bool b) { m_compositingProperties.hasCompo sitingDescendant = b; }
764 766
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 966
965 } // namespace WebCore 967 } // namespace WebCore
966 968
967 #ifndef NDEBUG 969 #ifndef NDEBUG
968 // Outside the WebCore namespace for ease of invocation from gdb. 970 // Outside the WebCore namespace for ease of invocation from gdb.
969 void showLayerTree(const WebCore::RenderLayer*); 971 void showLayerTree(const WebCore::RenderLayer*);
970 void showLayerTree(const WebCore::RenderObject*); 972 void showLayerTree(const WebCore::RenderObject*);
971 #endif 973 #endif
972 974
973 #endif // RenderLayer_h 975 #endif // RenderLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698