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

Side by Side Diff: Source/core/layout/LayoutObject.h

Issue 1355753008: RuntimeEnabledFeatures::slimmingPaintOffsetCaching (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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) 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. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1122 LayoutRect previousPaintInvalidationRectIncludingCompositedScrolling(const L ayoutBoxModelObject& paintInvalidationContainer) const; 1122 LayoutRect previousPaintInvalidationRectIncludingCompositedScrolling(const L ayoutBoxModelObject& paintInvalidationContainer) const;
1123 LayoutSize previousPaintInvalidationRectSize() const { return previousPaintI nvalidationRect().size(); } 1123 LayoutSize previousPaintInvalidationRectSize() const { return previousPaintI nvalidationRect().size(); }
1124 void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPa intInvalidationRect = rect; } 1124 void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPa intInvalidationRect = rect; }
1125 1125
1126 // Only adjusts if the paint invalidation container is not a composited scro ller. 1126 // Only adjusts if the paint invalidation container is not a composited scro ller.
1127 void adjustPreviousPaintInvalidationForScrollIfNeeded(const DoubleSize& scro llDelta); 1127 void adjustPreviousPaintInvalidationForScrollIfNeeded(const DoubleSize& scro llDelta);
1128 1128
1129 // The previous position of the top-left corner of the object in its previou s paint backing. 1129 // The previous position of the top-left corner of the object in its previou s paint backing.
1130 const LayoutPoint& previousPositionFromPaintInvalidationBacking() const 1130 const LayoutPoint& previousPositionFromPaintInvalidationBacking() const
1131 { 1131 {
1132 ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled()); 1132 ASSERT(!RuntimeEnabledFeatures::slimmingPaintOffsetCachingEnabled());
1133 return m_previousPositionFromPaintInvalidationBacking; 1133 return m_previousPositionFromPaintInvalidationBacking;
1134 } 1134 }
1135 void setPreviousPositionFromPaintInvalidationBacking(const LayoutPoint& posi tionFromPaintInvalidationBacking) 1135 void setPreviousPositionFromPaintInvalidationBacking(const LayoutPoint& posi tionFromPaintInvalidationBacking)
1136 { 1136 {
1137 ASSERT(!RuntimeEnabledFeatures::slimmingPaintV2Enabled()); 1137 ASSERT(!RuntimeEnabledFeatures::slimmingPaintOffsetCachingEnabled());
1138 m_previousPositionFromPaintInvalidationBacking = positionFromPaintInvali dationBacking; 1138 m_previousPositionFromPaintInvalidationBacking = positionFromPaintInvali dationBacking;
1139 } 1139 }
1140 1140
1141 PaintInvalidationReason fullPaintInvalidationReason() const { return m_bitfi elds.fullPaintInvalidationReason(); } 1141 PaintInvalidationReason fullPaintInvalidationReason() const { return m_bitfi elds.fullPaintInvalidationReason(); }
1142 bool shouldDoFullPaintInvalidation() const { return m_bitfields.fullPaintInv alidationReason() != PaintInvalidationNone; } 1142 bool shouldDoFullPaintInvalidation() const { return m_bitfields.fullPaintInv alidationReason() != PaintInvalidationNone; }
1143 void setShouldDoFullPaintInvalidation(PaintInvalidationReason = PaintInvalid ationFull); 1143 void setShouldDoFullPaintInvalidation(PaintInvalidationReason = PaintInvalid ationFull);
1144 void clearShouldDoFullPaintInvalidation() { m_bitfields.setFullPaintInvalida tionReason(PaintInvalidationNone); } 1144 void clearShouldDoFullPaintInvalidation() { m_bitfields.setFullPaintInvalida tionReason(PaintInvalidationNone); }
1145 1145
1146 bool shouldInvalidateOverflowForPaint() const { return m_bitfields.shouldInv alidateOverflowForPaint(); } 1146 bool shouldInvalidateOverflowForPaint() const { return m_bitfields.shouldInv alidateOverflowForPaint(); }
1147 1147
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
1873 void showTree(const blink::LayoutObject*); 1873 void showTree(const blink::LayoutObject*);
1874 void showLineTree(const blink::LayoutObject*); 1874 void showLineTree(const blink::LayoutObject*);
1875 void showLayoutTree(const blink::LayoutObject* object1); 1875 void showLayoutTree(const blink::LayoutObject* object1);
1876 // We don't make object2 an optional parameter so that showLayoutTree 1876 // We don't make object2 an optional parameter so that showLayoutTree
1877 // can be called from gdb easily. 1877 // can be called from gdb easily.
1878 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 1878 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
1879 1879
1880 #endif 1880 #endif
1881 1881
1882 #endif // LayoutObject_h 1882 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « LayoutTests/paint/invalidation/percentage-transform-paint-offset-expected.html ('k') | Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698