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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutView.h

Issue 2084723002: Remove LayoutView::doingFullPaintInvalidation() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More NeedsRebaselines Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 IntRect selectionBounds(); 123 IntRect selectionBounds();
124 void selectionStartEnd(int& startPos, int& endPos); 124 void selectionStartEnd(int& startPos, int& endPos);
125 void invalidatePaintForSelection(); 125 void invalidatePaintForSelection();
126 126
127 void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedOffset) c onst override; 127 void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedOffset) c onst override;
128 void absoluteQuads(Vector<FloatQuad>&) const override; 128 void absoluteQuads(Vector<FloatQuad>&) const override;
129 129
130 LayoutRect viewRect() const override; 130 LayoutRect viewRect() const override;
131 LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScrollbarCli pBehavior = IgnoreOverlayScrollbarSize) const override; 131 LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScrollbarCli pBehavior = IgnoreOverlayScrollbarSize) const override;
132 132
133 bool shouldDoFullPaintInvalidationForNextLayout() const;
134 bool doingFullPaintInvalidation() const;
135
136 LayoutState* layoutState() const { return m_layoutState; } 133 LayoutState* layoutState() const { return m_layoutState; }
137 134
138 void updateHitTestResult(HitTestResult&, const LayoutPoint&) override; 135 void updateHitTestResult(HitTestResult&, const LayoutPoint&) override;
139 136
140 ViewFragmentationContext* fragmentationContext() const { return m_fragmentat ionContext.get(); } 137 ViewFragmentationContext* fragmentationContext() const { return m_fragmentat ionContext.get(); }
141 138
142 LayoutUnit pageLogicalHeight() const { return m_pageLogicalHeight; } 139 LayoutUnit pageLogicalHeight() const { return m_pageLogicalHeight; }
143 void setPageLogicalHeight(LayoutUnit height) 140 void setPageLogicalHeight(LayoutUnit height)
144 { 141 {
145 if (m_pageLogicalHeight != height) { 142 if (m_pageLogicalHeight != height) {
(...skipping 29 matching lines...) Expand all
175 void removeLayoutCounter() { ASSERT(m_layoutCounterCount > 0); m_layoutCount erCount--; } 172 void removeLayoutCounter() { ASSERT(m_layoutCounterCount > 0); m_layoutCount erCount--; }
176 bool hasLayoutCounters() { return m_layoutCounterCount; } 173 bool hasLayoutCounters() { return m_layoutCounterCount; }
177 174
178 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const ov erride; 175 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const ov erride;
179 176
180 // Returns the viewport size in (CSS pixels) that vh and vw units are calcul ated from. 177 // Returns the viewport size in (CSS pixels) that vh and vw units are calcul ated from.
181 FloatSize viewportSizeForViewportUnits() const; 178 FloatSize viewportSizeForViewportUnits() const;
182 179
183 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat e; } 180 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat e; }
184 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState ->next(); } 181 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState ->next(); }
185 void invalidateTreeIfNeeded(const PaintInvalidationState&) final;
186 182
187 LayoutRect visualOverflowRect() const override; 183 LayoutRect visualOverflowRect() const override;
188 LayoutRect localOverflowRectForPaintInvalidation() const override; 184 LayoutRect localOverflowRectForPaintInvalidation() const override;
189 185
190 // Invalidates paint for the entire view, including composited descendants, but not including child frames. 186 // Invalidates paint for the entire view, including composited descendants, but not including child frames.
191 // It is very likely you do not want to call this method. 187 // It is very likely you do not want to call this method.
192 void setShouldDoFullPaintInvalidationForViewAndAllDescendants(); 188 void setShouldDoFullPaintInvalidationForViewAndAllDescendants();
193 189
194 // The document scrollbar is always on the right, even in RTL. This is to pr event it from moving around on navigations. 190 // The document scrollbar is always on the right, even in RTL. This is to pr event it from moving around on navigations.
195 // TODO(skobes): This is not quite the ideal behavior, see http://crbug.com/ 250514 and http://crbug.com/249860. 191 // TODO(skobes): This is not quite the ideal behavior, see http://crbug.com/ 250514 and http://crbug.com/249860.
(...skipping 18 matching lines...) Expand all
214 210
215 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances torToStopAt, LayoutGeometryMap&) const override; 211 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances torToStopAt, LayoutGeometryMap&) const override;
216 void mapAncestorToLocal(const LayoutBoxModelObject*, TransformState&, MapCoo rdinatesFlags) const override; 212 void mapAncestorToLocal(const LayoutBoxModelObject*, TransformState&, MapCoo rdinatesFlags) const override;
217 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf fset) const override; 213 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf fset) const override;
218 214
219 void layoutContent(); 215 void layoutContent();
220 #if ENABLE(ASSERT) 216 #if ENABLE(ASSERT)
221 void checkLayoutState(); 217 void checkLayoutState();
222 #endif 218 #endif
223 219
220 void setShouldDoFullPaintInvalidationOnResizeIfNeeded();
221
224 void updateFromStyle() override; 222 void updateFromStyle() override;
225 bool allowsOverflowClip() const override; 223 bool allowsOverflowClip() const override;
226 224
227 bool shouldUsePrintingLayout() const; 225 bool shouldUsePrintingLayout() const;
228 226
229 int viewLogicalWidthForBoxSizing() const; 227 int viewLogicalWidthForBoxSizing() const;
230 int viewLogicalHeightForBoxSizing() const; 228 int viewLogicalHeightForBoxSizing() const;
231 229
232 UntracedMember<FrameView> m_frameView; 230 UntracedMember<FrameView> m_frameView;
233 231
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 Persistent<HitTestCache> m_hitTestCache; 272 Persistent<HitTestCache> m_hitTestCache;
275 273
276 Vector<LayoutMedia*> m_mediaForPositionNotification; 274 Vector<LayoutMedia*> m_mediaForPositionNotification;
277 }; 275 };
278 276
279 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView()); 277 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView());
280 278
281 } // namespace blink 279 } // namespace blink
282 280
283 #endif // LayoutView_h 281 #endif // LayoutView_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698