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

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

Issue 1209033002: SP: Invalidate paint for the entire layout tree when ending printing. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/LocalFrame.cpp ('k') | Source/core/layout/LayoutView.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) 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 double layoutViewportWidth() const; 177 double layoutViewportWidth() const;
178 double layoutViewportHeight() const; 178 double layoutViewportHeight() const;
179 179
180 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat e; } 180 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat e; }
181 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState ->next(); } 181 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState ->next(); }
182 virtual void invalidateTreeIfNeeded(PaintInvalidationState&) override final; 182 virtual void invalidateTreeIfNeeded(PaintInvalidationState&) override final;
183 183
184 virtual LayoutRect visualOverflowRect() const override; 184 virtual LayoutRect visualOverflowRect() const override;
185 185
186 // Invalidates paint for the entire view, including composited descendants, but not including child frames.
187 // It is very likely you do not want to call this method.
188 void setShouldDoFullPaintInvalidationForViewAndAllDescendants();
189
186 private: 190 private:
187 virtual void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidati onContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wa sFixed = nullptr, const PaintInvalidationState* = nullptr) const override; 191 virtual void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidati onContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wa sFixed = nullptr, const PaintInvalidationState* = nullptr) const override;
188 192
189 template <typename Strategy> 193 template <typename Strategy>
190 void commitPendingSelectionAlgorithm(); 194 void commitPendingSelectionAlgorithm();
191 195
192 virtual const LayoutObject* pushMappingToContainer(const LayoutBoxModelObjec t* ancestorToStopAt, LayoutGeometryMap&) const override; 196 virtual const LayoutObject* pushMappingToContainer(const LayoutBoxModelObjec t* ancestorToStopAt, LayoutGeometryMap&) const override;
193 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override; 197 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst override;
194 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const override; 198 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const override;
195 199
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 257 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
254 } 258 }
255 private: 259 private:
256 const PaintInvalidationState* m_paintInvalidationState; 260 const PaintInvalidationState* m_paintInvalidationState;
257 bool m_didDisable; 261 bool m_didDisable;
258 }; 262 };
259 263
260 } // namespace blink 264 } // namespace blink
261 265
262 #endif // LayoutView_h 266 #endif // LayoutView_h
OLDNEW
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/layout/LayoutView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698