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

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

Issue 2605543002: Replace adjustment of previous visual rects on scroll with normal paint invalidation (Closed)
Patch Set: Remove unused parameters Created 3 years, 11 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 PaintLayerCompositor* compositor() const; 285 PaintLayerCompositor* compositor() const;
286 286
287 // Notification from the layoutObject that its content changed (e.g. current 287 // Notification from the layoutObject that its content changed (e.g. current
288 // frame of image changed). Allows updates of layer content without 288 // frame of image changed). Allows updates of layer content without
289 // invalidating paint. 289 // invalidating paint.
290 void contentChanged(ContentChangeType); 290 void contentChanged(ContentChangeType);
291 291
292 void updateLayerPosition(); 292 void updateLayerPosition();
293 293
294 void updateLayerPositionsAfterLayout(); 294 void updateLayerPositionsAfterLayout();
295 void updateLayerPositionsAfterOverflowScroll(const DoubleSize& scrollDelta); 295 void updateLayerPositionsAfterOverflowScroll();
296 296
297 PaintLayer* enclosingPaginationLayer() const { 297 PaintLayer* enclosingPaginationLayer() const {
298 return m_rareData ? m_rareData->enclosingPaginationLayer : nullptr; 298 return m_rareData ? m_rareData->enclosingPaginationLayer : nullptr;
299 } 299 }
300 300
301 void updateTransformationMatrix(); 301 void updateTransformationMatrix();
302 PaintLayer* renderingContextRoot(); 302 PaintLayer* renderingContextRoot();
303 const PaintLayer* renderingContextRoot() const; 303 const PaintLayer* renderingContextRoot() const;
304 304
305 LayoutSize offsetForInFlowPosition() const { 305 LayoutSize offsetForInFlowPosition() const {
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 void setNeedsCompositingInputsUpdateInternal(); 983 void setNeedsCompositingInputsUpdateInternal();
984 984
985 // Bounding box in the coordinates of this layer. 985 // Bounding box in the coordinates of this layer.
986 LayoutRect logicalBoundingBox() const; 986 LayoutRect logicalBoundingBox() const;
987 987
988 bool hasOverflowControls() const; 988 bool hasOverflowControls() const;
989 989
990 void dirtyAncestorChainHasSelfPaintingLayerDescendantStatus(); 990 void dirtyAncestorChainHasSelfPaintingLayerDescendantStatus();
991 991
992 void updateLayerPositionRecursive(); 992 void updateLayerPositionRecursive();
993 void updateLayerPositionsAfterScrollRecursive(
994 const DoubleSize& scrollDelta,
995 bool paintInvalidationContainerWasScrolled);
996 993
997 void setNextSibling(PaintLayer* next) { m_next = next; } 994 void setNextSibling(PaintLayer* next) { m_next = next; }
998 void setPreviousSibling(PaintLayer* prev) { m_previous = prev; } 995 void setPreviousSibling(PaintLayer* prev) { m_previous = prev; }
999 void setFirstChild(PaintLayer* first) { m_first = first; } 996 void setFirstChild(PaintLayer* first) { m_first = first; }
1000 void setLastChild(PaintLayer* last) { m_last = last; } 997 void setLastChild(PaintLayer* last) { m_last = last; }
1001 998
1002 void updateHasSelfPaintingLayerDescendant() const; 999 void updateHasSelfPaintingLayerDescendant() const;
1003 PaintLayer* hitTestLayer(PaintLayer* rootLayer, 1000 PaintLayer* hitTestLayer(PaintLayer* rootLayer,
1004 PaintLayer* containerLayer, 1001 PaintLayer* containerLayer,
1005 HitTestResult&, 1002 HitTestResult&,
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 1231
1235 } // namespace blink 1232 } // namespace blink
1236 1233
1237 #ifndef NDEBUG 1234 #ifndef NDEBUG
1238 // Outside the WebCore namespace for ease of invocation from gdb. 1235 // Outside the WebCore namespace for ease of invocation from gdb.
1239 CORE_EXPORT void showLayerTree(const blink::PaintLayer*); 1236 CORE_EXPORT void showLayerTree(const blink::PaintLayer*);
1240 CORE_EXPORT void showLayerTree(const blink::LayoutObject*); 1237 CORE_EXPORT void showLayerTree(const blink::LayoutObject*);
1241 #endif 1238 #endif
1242 1239
1243 #endif // Layer_h 1240 #endif // Layer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698