| 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 static void setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(Lay
outObject* object) |
| 387 { |
| 388 object->setShouldDoFullPaintInvalidation(); |
| 389 for (LayoutObject* child = object->slowFirstChild(); child; child = child->n
extSibling()) { |
| 390 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(child); |
| 391 } |
| 392 } |
| 393 |
| 394 void LayoutView::setShouldDoFullPaintInvalidationForViewAndAllDescendants() |
| 395 { |
| 396 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(this); |
| 397 } |
| 398 |
| 386 void LayoutView::invalidatePaintForRectangle(const LayoutRect& paintInvalidation
Rect, PaintInvalidationReason invalidationReason) const | 399 void LayoutView::invalidatePaintForRectangle(const LayoutRect& paintInvalidation
Rect, PaintInvalidationReason invalidationReason) const |
| 387 { | 400 { |
| 388 ASSERT(!paintInvalidationRect.isEmpty()); | 401 ASSERT(!paintInvalidationRect.isEmpty()); |
| 389 | 402 |
| 390 if (document().printing() || !m_frameView) | 403 if (document().printing() || !m_frameView) |
| 391 return; | 404 return; |
| 392 | 405 |
| 393 ASSERT(layer()->compositingState() == PaintsIntoOwnBacking || !frame()->owne
rLayoutObject()); | 406 ASSERT(layer()->compositingState() == PaintsIntoOwnBacking || !frame()->owne
rLayoutObject()); |
| 394 | 407 |
| 395 if (layer()->compositingState() == PaintsIntoOwnBacking) { | 408 if (layer()->compositingState() == PaintsIntoOwnBacking) { |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 972 return viewHeight(IncludeScrollbars) / scale; | 985 return viewHeight(IncludeScrollbars) / scale; |
| 973 } | 986 } |
| 974 | 987 |
| 975 void LayoutView::willBeDestroyed() | 988 void LayoutView::willBeDestroyed() |
| 976 { | 989 { |
| 977 LayoutBlockFlow::willBeDestroyed(); | 990 LayoutBlockFlow::willBeDestroyed(); |
| 978 m_compositor.clear(); | 991 m_compositor.clear(); |
| 979 } | 992 } |
| 980 | 993 |
| 981 } // namespace blink | 994 } // namespace blink |
| OLD | NEW |