Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. |
| 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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 376 if (doingFullPaintInvalidation() && !dirtyRect.isEmpty()) { | 376 if (doingFullPaintInvalidation() && !dirtyRect.isEmpty()) { |
| 377 const LayoutBoxModelObject& paintInvalidationContainer = paintInvalidati onState.paintInvalidationContainer(); | 377 const LayoutBoxModelObject& paintInvalidationContainer = paintInvalidati onState.paintInvalidationContainer(); |
| 378 DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(this, &paintInva lidationContainer, dirtyRect, &paintInvalidationState); | 378 DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(this, &paintInva lidationContainer, dirtyRect, &paintInvalidationState); |
| 379 invalidatePaintUsingContainer(paintInvalidationContainer, dirtyRect, Pai ntInvalidationFull); | 379 invalidatePaintUsingContainer(paintInvalidationContainer, dirtyRect, Pai ntInvalidationFull); |
| 380 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) | 380 if (RuntimeEnabledFeatures::slimmingPaintEnabled()) |
| 381 invalidateDisplayItemClients(paintInvalidationContainer); | 381 invalidateDisplayItemClients(paintInvalidationContainer); |
| 382 } | 382 } |
| 383 LayoutBlock::invalidateTreeIfNeeded(paintInvalidationState); | 383 LayoutBlock::invalidateTreeIfNeeded(paintInvalidationState); |
| 384 } | 384 } |
| 385 | 385 |
| 386 | |
| 387 | |
|
Xianzhu
2015/06/25 18:50:05
Nit: Too many empty lines.
chrishtr
2015/06/25 18:55:24
Fixed
| |
| 388 static void setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(Lay outObject* object) | |
| 389 { | |
| 390 object->setShouldDoFullPaintInvalidation(); | |
| 391 for (LayoutObject* child = object->slowFirstChild(); child; child = child->n extSibling()) { | |
| 392 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(child); | |
| 393 } | |
| 394 } | |
| 395 | |
| 396 void LayoutView::setShouldDoFullPaintInvalidationForViewAndAllDescendants() | |
| 397 { | |
| 398 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(this); | |
| 399 | |
|
Xianzhu
2015/06/25 18:50:05
Nit: Remove extra empty line.
chrishtr
2015/06/25 18:55:24
Fixed.
| |
| 400 } | |
| 401 | |
| 386 void LayoutView::invalidatePaintForRectangle(const LayoutRect& paintInvalidation Rect, PaintInvalidationReason invalidationReason) const | 402 void LayoutView::invalidatePaintForRectangle(const LayoutRect& paintInvalidation Rect, PaintInvalidationReason invalidationReason) const |
| 387 { | 403 { |
| 388 ASSERT(!paintInvalidationRect.isEmpty()); | 404 ASSERT(!paintInvalidationRect.isEmpty()); |
| 389 | 405 |
| 390 if (document().printing() || !m_frameView) | 406 if (document().printing() || !m_frameView) |
| 391 return; | 407 return; |
| 392 | 408 |
| 393 ASSERT(layer()->compositingState() == PaintsIntoOwnBacking || !frame()->owne rLayoutObject()); | 409 ASSERT(layer()->compositingState() == PaintsIntoOwnBacking || !frame()->owne rLayoutObject()); |
| 394 | 410 |
| 395 if (layer()->compositingState() == PaintsIntoOwnBacking) { | 411 if (layer()->compositingState() == PaintsIntoOwnBacking) { |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 972 return viewHeight(IncludeScrollbars) / scale; | 988 return viewHeight(IncludeScrollbars) / scale; |
| 973 } | 989 } |
| 974 | 990 |
| 975 void LayoutView::willBeDestroyed() | 991 void LayoutView::willBeDestroyed() |
| 976 { | 992 { |
| 977 LayoutBlockFlow::willBeDestroyed(); | 993 LayoutBlockFlow::willBeDestroyed(); |
| 978 m_compositor.clear(); | 994 m_compositor.clear(); |
| 979 } | 995 } |
| 980 | 996 |
| 981 } // namespace blink | 997 } // namespace blink |
| OLD | NEW |