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

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

Issue 1971843002: Fix paint invalidation rect of LayoutView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const ov erride; 178 bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const ov erride;
179 179
180 // Returns the viewport size in (CSS pixels) that vh and vw units are calcul ated from. 180 // Returns the viewport size in (CSS pixels) that vh and vw units are calcul ated from.
181 FloatSize viewportSizeForViewportUnits() const; 181 FloatSize viewportSizeForViewportUnits() const;
182 182
183 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat e; } 183 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat e; }
184 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState ->next(); } 184 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState ->next(); }
185 void invalidateTreeIfNeeded(const PaintInvalidationState&) final; 185 void invalidateTreeIfNeeded(const PaintInvalidationState&) final;
186 186
187 LayoutRect visualOverflowRect() const override; 187 LayoutRect visualOverflowRect() const override;
188 LayoutRect localOverflowRectForPaintInvalidation() const override;
188 189
189 // Invalidates paint for the entire view, including composited descendants, but not including child frames. 190 // Invalidates paint for the entire view, including composited descendants, but not including child frames.
190 // It is very likely you do not want to call this method. 191 // It is very likely you do not want to call this method.
191 void setShouldDoFullPaintInvalidationForViewAndAllDescendants(); 192 void setShouldDoFullPaintInvalidationForViewAndAllDescendants();
192 193
193 // The document scrollbar is always on the right, even in RTL. This is to pr event it from moving around on navigations. 194 // The document scrollbar is always on the right, even in RTL. This is to pr event it from moving around on navigations.
194 // TODO(skobes): This is not quite the ideal behavior, see http://crbug.com/ 250514 and http://crbug.com/249860. 195 // TODO(skobes): This is not quite the ideal behavior, see http://crbug.com/ 250514 and http://crbug.com/249860.
195 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const override { retu rn false; } 196 bool shouldPlaceBlockDirectionScrollbarOnLogicalLeft() const override { retu rn false; }
196 197
197 // Some LayoutMedias want to know about their viewport visibility for 198 // Some LayoutMedias want to know about their viewport visibility for
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 Persistent<HitTestCache> m_hitTestCache; 274 Persistent<HitTestCache> m_hitTestCache;
274 275
275 Vector<LayoutMedia*> m_mediaForPositionNotification; 276 Vector<LayoutMedia*> m_mediaForPositionNotification;
276 }; 277 };
277 278
278 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView()); 279 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView());
279 280
280 } // namespace blink 281 } // namespace blink
281 282
282 #endif // LayoutView_h 283 #endif // LayoutView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698