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

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

Issue 1391753005: (WIP) Invalidation during painting (for synchronized painting) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 void removeLayoutCounter() { ASSERT(m_layoutCounterCount > 0); m_layoutCount erCount--; } 181 void removeLayoutCounter() { ASSERT(m_layoutCounterCount > 0); m_layoutCount erCount--; }
182 bool hasLayoutCounters() { return m_layoutCounterCount; } 182 bool hasLayoutCounters() { return m_layoutCounterCount; }
183 183
184 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const ov erride; 184 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const ov erride;
185 185
186 // Returns the viewport size in (CSS pixels) that vh and vw units are calcul ated from. 186 // Returns the viewport size in (CSS pixels) that vh and vw units are calcul ated from.
187 FloatSize viewportSizeForViewportUnits() const; 187 FloatSize viewportSizeForViewportUnits() const;
188 188
189 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat e; } 189 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat e; }
190 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState ->next(); } 190 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState ->next(); }
191 void invalidateTreeIfNeeded(PaintInvalidationState&) final; 191 PaintInvalidationReason invalidatePaintIfNeeded(PaintInvalidationState&, con st LayoutBoxModelObject&) final;
192 192
193 LayoutRect visualOverflowRect() const override; 193 LayoutRect visualOverflowRect() const override;
194 194
195 // Invalidates paint for the entire view, including composited descendants, but not including child frames. 195 // Invalidates paint for the entire view, including composited descendants, but not including child frames.
196 // It is very likely you do not want to call this method. 196 // It is very likely you do not want to call this method.
197 void setShouldDoFullPaintInvalidationForViewAndAllDescendants(); 197 void setShouldDoFullPaintInvalidationForViewAndAllDescendants();
198 198
199 // The document scrollbar is always on the right, even in RTL. This is to pr event it from moving around on navigations. 199 // The document scrollbar is always on the right, even in RTL. This is to pr event it from moving around on navigations.
200 // TODO(skobes): This is not quite the ideal behavior, see http://crbug.com/ 250514 and http://crbug.com/249860. 200 // TODO(skobes): This is not quite the ideal behavior, see http://crbug.com/ 250514 and http://crbug.com/249860.
201 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const override { retu rn false; } 201 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const override { retu rn false; }
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 m_paintInvalidationState->m_cachedOffsetsEnabled = true; 300 m_paintInvalidationState->m_cachedOffsetsEnabled = true;
301 } 301 }
302 private: 302 private:
303 const PaintInvalidationState* m_paintInvalidationState; 303 const PaintInvalidationState* m_paintInvalidationState;
304 bool m_didDisable; 304 bool m_didDisable;
305 }; 305 };
306 306
307 } // namespace blink 307 } // namespace blink
308 308
309 #endif // LayoutView_h 309 #endif // LayoutView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698