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

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: almost there 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 UpdatePagination = 1 << 4 192 UpdatePagination = 1 << 4
193 }; 193 };
194 typedef unsigned UpdateLayerPositionsFlags; 194 typedef unsigned UpdateLayerPositionsFlags;
195 static const UpdateLayerPositionsFlags defaultFlags = CheckForRepaint | IsCo mpositingUpdateRoot | UpdateCompositingLayers; 195 static const UpdateLayerPositionsFlags defaultFlags = CheckForRepaint | IsCo mpositingUpdateRoot | UpdateCompositingLayers;
196 196
197 void updateLayerPositionsAfterLayout(const RenderLayer* rootLayer, UpdateLay erPositionsFlags); 197 void updateLayerPositionsAfterLayout(const RenderLayer* rootLayer, UpdateLay erPositionsFlags);
198 198
199 void updateLayerPositionsAfterOverflowScroll(); 199 void updateLayerPositionsAfterOverflowScroll();
200 void updateLayerPositionsAfterDocumentScroll(); 200 void updateLayerPositionsAfterDocumentScroll();
201 201
202 void positionNewlyCreatedOverflowControls();
203 202
204 bool isPaginated() const { return m_isPaginated; } 203 bool isPaginated() const { return m_isPaginated; }
205 RenderLayer* enclosingPaginationLayer() const { return m_enclosingPagination Layer; } 204 RenderLayer* enclosingPaginationLayer() const { return m_enclosingPagination Layer; }
206 205
207 void updateTransform(); 206 void updateTransform();
208 207
209 void updateBlendMode(); 208 void updateBlendMode();
210 209
211 const LayoutSize& offsetForInFlowPosition() const { return m_offsetForInFlow Position; } 210 const LayoutSize& offsetForInFlowPosition() const { return m_offsetForInFlow Position; }
212 211
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 void parentClipRects(const ClipRectsContext&, ClipRects&) const; 773 void parentClipRects(const ClipRectsContext&, ClipRects&) const;
775 ClipRect backgroundClipRect(const ClipRectsContext&) const; 774 ClipRect backgroundClipRect(const ClipRectsContext&) const;
776 775
777 LayoutRect paintingExtent(const RenderLayer* rootLayer, const LayoutRect& pa intDirtyRect, PaintBehavior); 776 LayoutRect paintingExtent(const RenderLayer* rootLayer, const LayoutRect& pa intDirtyRect, PaintBehavior);
778 777
779 RenderLayer* enclosingTransformedAncestor() const; 778 RenderLayer* enclosingTransformedAncestor() const;
780 779
781 // Convert a point in absolute coords into layer coords, taking transforms i nto account 780 // Convert a point in absolute coords into layer coords, taking transforms i nto account
782 LayoutPoint absoluteToContents(const LayoutPoint&) const; 781 LayoutPoint absoluteToContents(const LayoutPoint&) const;
783 782
783 // If IntSize is not given, then we must incur additional overhead to instan tiate a RenderGeometryMap
784 // and compute the correct offset ourselves.
785 void positionOverflowControls();
784 void positionOverflowControls(const IntSize&); 786 void positionOverflowControls(const IntSize&);
785 787
786 void updatePagination(); 788 void updatePagination();
787 789
788 // FIXME: Temporary. Remove when new columns come online. 790 // FIXME: Temporary. Remove when new columns come online.
789 bool useRegionBasedColumns() const; 791 bool useRegionBasedColumns() const;
790 792
791 bool hasCompositingDescendant() const { return m_compositingProperties.hasCo mpositingDescendant; } 793 bool hasCompositingDescendant() const { return m_compositingProperties.hasCo mpositingDescendant; }
792 void setHasCompositingDescendant(bool b) { m_compositingProperties.hasCompo sitingDescendant = b; } 794 void setHasCompositingDescendant(bool b) { m_compositingProperties.hasCompo sitingDescendant = b; }
793 795
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 991
990 } // namespace WebCore 992 } // namespace WebCore
991 993
992 #ifndef NDEBUG 994 #ifndef NDEBUG
993 // Outside the WebCore namespace for ease of invocation from gdb. 995 // Outside the WebCore namespace for ease of invocation from gdb.
994 void showLayerTree(const WebCore::RenderLayer*); 996 void showLayerTree(const WebCore::RenderLayer*);
995 void showLayerTree(const WebCore::RenderObject*); 997 void showLayerTree(const WebCore::RenderObject*);
996 #endif 998 #endif
997 999
998 #endif // RenderLayer_h 1000 #endif // RenderLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698