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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2009 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after
1570 // The returned rect does *not* account for composited scrolling. 1570 // The returned rect does *not* account for composited scrolling.
1571 const LayoutRect& previousVisualRect() const { return m_previousVisualRect; } 1571 const LayoutRect& previousVisualRect() const { return m_previousVisualRect; }
1572 1572
1573 // Called when the previous visual rect(s) is no longer valid. 1573 // Called when the previous visual rect(s) is no longer valid.
1574 virtual void clearPreviousVisualRects(); 1574 virtual void clearPreviousVisualRects();
1575 1575
1576 const LayoutPoint& previousPaintOffset() const { 1576 const LayoutPoint& previousPaintOffset() const {
1577 return m_previousPaintOffset; 1577 return m_previousPaintOffset;
1578 } 1578 }
1579 1579
1580 // Only adjusts if the paint invalidation container is not a composited
1581 // scroller.
1582 void adjustPreviousPaintInvalidationForScrollIfNeeded(
1583 const DoubleSize& scrollDelta);
1584
1585 PaintInvalidationReason fullPaintInvalidationReason() const { 1580 PaintInvalidationReason fullPaintInvalidationReason() const {
1586 return m_bitfields.fullPaintInvalidationReason(); 1581 return m_bitfields.fullPaintInvalidationReason();
1587 } 1582 }
1588 bool shouldDoFullPaintInvalidation() const { 1583 bool shouldDoFullPaintInvalidation() const {
1589 return m_bitfields.fullPaintInvalidationReason() != PaintInvalidationNone; 1584 return m_bitfields.fullPaintInvalidationReason() != PaintInvalidationNone;
1590 } 1585 }
1591 void setShouldDoFullPaintInvalidation( 1586 void setShouldDoFullPaintInvalidation(
1592 PaintInvalidationReason = PaintInvalidationFull); 1587 PaintInvalidationReason = PaintInvalidationFull);
1593 void clearShouldDoFullPaintInvalidation() { 1588 void clearShouldDoFullPaintInvalidation() {
1594 m_bitfields.setFullPaintInvalidationReason(PaintInvalidationNone); 1589 m_bitfields.setFullPaintInvalidationReason(PaintInvalidationNone);
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after
2675 CORE_EXPORT void showLineTree(const blink::LayoutObject*); 2670 CORE_EXPORT void showLineTree(const blink::LayoutObject*);
2676 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); 2671 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1);
2677 // We don't make object2 an optional parameter so that showLayoutTree 2672 // We don't make object2 an optional parameter so that showLayoutTree
2678 // can be called from gdb easily. 2673 // can be called from gdb easily.
2679 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, 2674 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1,
2680 const blink::LayoutObject* object2); 2675 const blink::LayoutObject* object2);
2681 2676
2682 #endif 2677 #endif
2683 2678
2684 #endif // LayoutObject_h 2679 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698