Chromium Code Reviews| Index: Source/core/layout/LayoutView.cpp |
| diff --git a/Source/core/layout/LayoutView.cpp b/Source/core/layout/LayoutView.cpp |
| index 02bd0e871c1e4eca0e1724e31eb3e5b0f5764760..6eea7c81985ba13a0d263eed313ec75616f54a9a 100644 |
| --- a/Source/core/layout/LayoutView.cpp |
| +++ b/Source/core/layout/LayoutView.cpp |
| @@ -383,6 +383,22 @@ void LayoutView::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalidatio |
| LayoutBlock::invalidateTreeIfNeeded(paintInvalidationState); |
| } |
| + |
| + |
|
Xianzhu
2015/06/25 18:50:05
Nit: Too many empty lines.
chrishtr
2015/06/25 18:55:24
Fixed
|
| +static void setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(LayoutObject* object) |
| +{ |
| + object->setShouldDoFullPaintInvalidation(); |
| + for (LayoutObject* child = object->slowFirstChild(); child; child = child->nextSibling()) { |
| + setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(child); |
| + } |
| +} |
| + |
| +void LayoutView::setShouldDoFullPaintInvalidationForViewAndAllDescendants() |
| +{ |
| + setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(this); |
| + |
|
Xianzhu
2015/06/25 18:50:05
Nit: Remove extra empty line.
chrishtr
2015/06/25 18:55:24
Fixed.
|
| +} |
| + |
| void LayoutView::invalidatePaintForRectangle(const LayoutRect& paintInvalidationRect, PaintInvalidationReason invalidationReason) const |
| { |
| ASSERT(!paintInvalidationRect.isEmpty()); |