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

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

Issue 331653004: Delete RenderLayer::updateLayerPositionsAfterDocumentScroll (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 enum UpdateLayerPositionsFlag { 156 enum UpdateLayerPositionsFlag {
157 CheckForPaintInvalidation = 1 << 0, 157 CheckForPaintInvalidation = 1 << 0,
158 NeedsFullPaintInvalidationInBacking = 1 << 1, 158 NeedsFullPaintInvalidationInBacking = 1 << 1,
159 UpdatePagination = 1 << 2, 159 UpdatePagination = 1 << 2,
160 ForceMayNeedPaintInvalidation = 1 << 3, 160 ForceMayNeedPaintInvalidation = 1 << 3,
161 }; 161 };
162 typedef unsigned UpdateLayerPositionsFlags; 162 typedef unsigned UpdateLayerPositionsFlags;
163 163
164 void updateLayerPositionsAfterLayout(const RenderLayer* rootLayer, UpdateLay erPositionsFlags); 164 void updateLayerPositionsAfterLayout(const RenderLayer* rootLayer, UpdateLay erPositionsFlags);
165 void updateLayerPositionsAfterOverflowScroll(); 165 void updateLayerPositionsAfterOverflowScroll();
166 void updateLayerPositionsAfterDocumentScroll();
167 166
168 // FIXME: Should updateLayerPositions be private? 167 // FIXME: Should updateLayerPositions be private?
169 void updateLayerPositionRecursive(UpdateLayerPositionsFlags = CheckForPaintI nvalidation); 168 void updateLayerPositionRecursive(UpdateLayerPositionsFlags = CheckForPaintI nvalidation);
170 169
171 bool isPaginated() const { return m_isPaginated; } 170 bool isPaginated() const { return m_isPaginated; }
172 RenderLayer* enclosingPaginationLayer() const { return m_enclosingPagination Layer; } 171 RenderLayer* enclosingPaginationLayer() const { return m_enclosingPagination Layer; }
173 172
174 void updateTransformationMatrix(); 173 void updateTransformationMatrix();
175 RenderLayer* renderingContextRoot(); 174 RenderLayer* renderingContextRoot();
176 175
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 506
508 void setAncestorChainHasSelfPaintingLayerDescendant(); 507 void setAncestorChainHasSelfPaintingLayerDescendant();
509 void dirtyAncestorChainHasSelfPaintingLayerDescendantStatus(); 508 void dirtyAncestorChainHasSelfPaintingLayerDescendantStatus();
510 509
511 void clipToRect(const LayerPaintingInfo&, GraphicsContext*, const ClipRect&, PaintLayerFlags, BorderRadiusClippingRule = IncludeSelfForBorderRadius); 510 void clipToRect(const LayerPaintingInfo&, GraphicsContext*, const ClipRect&, PaintLayerFlags, BorderRadiusClippingRule = IncludeSelfForBorderRadius);
512 void restoreClip(GraphicsContext*, const LayoutRect& paintDirtyRect, const C lipRect&); 511 void restoreClip(GraphicsContext*, const LayoutRect& paintDirtyRect, const C lipRect&);
513 512
514 // Returns true if the position changed. 513 // Returns true if the position changed.
515 bool updateLayerPosition(); 514 bool updateLayerPosition();
516 515
517 enum UpdateLayerPositionsAfterScrollFlag { 516 void updateLayerPositionsAfterScrollRecursive();
518 NoFlag = 0,
519 IsOverflowScroll = 1 << 0,
520 HasSeenViewportConstrainedAncestor = 1 << 1,
521 HasSeenAncestorWithOverflowClip = 1 << 2,
522 HasChangedAncestor = 1 << 3
523 };
524 typedef unsigned UpdateLayerPositionsAfterScrollFlags;
525 void updateLayerPositionsAfterScroll(UpdateLayerPositionsAfterScrollFlags = NoFlag);
526 517
527 void setNextSibling(RenderLayer* next) { m_next = next; } 518 void setNextSibling(RenderLayer* next) { m_next = next; }
528 void setPreviousSibling(RenderLayer* prev) { m_previous = prev; } 519 void setPreviousSibling(RenderLayer* prev) { m_previous = prev; }
529 void setFirstChild(RenderLayer* first) { m_first = first; } 520 void setFirstChild(RenderLayer* first) { m_first = first; }
530 void setLastChild(RenderLayer* last) { m_last = last; } 521 void setLastChild(RenderLayer* last) { m_last = last; }
531 522
532 LayoutPoint renderBoxLocation() const { return renderer()->isBox() ? toRende rBox(renderer())->location() : LayoutPoint(); } 523 LayoutPoint renderBoxLocation() const { return renderer()->isBox() ? toRende rBox(renderer())->location() : LayoutPoint(); }
533 524
534 void paintLayerContentsAndReflection(GraphicsContext*, const LayerPaintingIn fo&, PaintLayerFlags); 525 void paintLayerContentsAndReflection(GraphicsContext*, const LayerPaintingIn fo&, PaintLayerFlags);
535 void paintLayerByApplyingTransform(GraphicsContext*, const LayerPaintingInfo &, PaintLayerFlags, const LayoutPoint& translationOffset = LayoutPoint()); 526 void paintLayerByApplyingTransform(GraphicsContext*, const LayerPaintingInfo &, PaintLayerFlags, const LayoutPoint& translationOffset = LayoutPoint());
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 717
727 } // namespace WebCore 718 } // namespace WebCore
728 719
729 #ifndef NDEBUG 720 #ifndef NDEBUG
730 // Outside the WebCore namespace for ease of invocation from gdb. 721 // Outside the WebCore namespace for ease of invocation from gdb.
731 void showLayerTree(const WebCore::RenderLayer*); 722 void showLayerTree(const WebCore::RenderLayer*);
732 void showLayerTree(const WebCore::RenderObject*); 723 void showLayerTree(const WebCore::RenderObject*);
733 #endif 724 #endif
734 725
735 #endif // RenderLayer_h 726 #endif // RenderLayer_h
OLDNEW
« no previous file with comments | « Source/core/frame/FrameView.cpp ('k') | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698