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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 { | 384 { |
385 ASSERT(!needsLayout()); | 385 ASSERT(!needsLayout()); |
386 | 386 |
387 // We specifically need to issue paint invalidations for the viewRect since
other layoutObjects | 387 // We specifically need to issue paint invalidations for the viewRect since
other layoutObjects |
388 // short-circuit on full-paint invalidation. | 388 // short-circuit on full-paint invalidation. |
389 LayoutRect dirtyRect = viewRect(); | 389 LayoutRect dirtyRect = viewRect(); |
390 if (doingFullPaintInvalidation() && !dirtyRect.isEmpty()) { | 390 if (doingFullPaintInvalidation() && !dirtyRect.isEmpty()) { |
391 const LayoutBoxModelObject& paintInvalidationContainer = paintInvalidati
onState.paintInvalidationContainer(); | 391 const LayoutBoxModelObject& paintInvalidationContainer = paintInvalidati
onState.paintInvalidationContainer(); |
392 PaintLayer::mapRectToPaintInvalidationBacking(this, &paintInvalidationCo
ntainer, dirtyRect, &paintInvalidationState); | 392 PaintLayer::mapRectToPaintInvalidationBacking(this, &paintInvalidationCo
ntainer, dirtyRect, &paintInvalidationState); |
393 invalidatePaintUsingContainer(paintInvalidationContainer, dirtyRect, Pai
ntInvalidationFull); | 393 invalidatePaintUsingContainer(paintInvalidationContainer, dirtyRect, Pai
ntInvalidationFull); |
394 invalidateDisplayItemClients(paintInvalidationContainer, PaintInvalidati
onFull, dirtyRect, dirtyRect); | 394 invalidateDisplayItemClients(paintInvalidationContainer, PaintInvalidati
onFull, &dirtyRect); |
395 } | 395 } |
396 LayoutBlock::invalidateTreeIfNeeded(paintInvalidationState); | 396 LayoutBlock::invalidateTreeIfNeeded(paintInvalidationState); |
397 } | 397 } |
398 | 398 |
399 static void setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(Lay
outObject* object) | 399 static void setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(Lay
outObject* object) |
400 { | 400 { |
401 object->setShouldDoFullPaintInvalidation(); | 401 object->setShouldDoFullPaintInvalidation(); |
402 for (LayoutObject* child = object->slowFirstChild(); child; child = child->n
extSibling()) { | 402 for (LayoutObject* child = object->slowFirstChild(); child; child = child->n
extSibling()) { |
403 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(child); | 403 setShouldDoFullPaintInvalidationForViewAndAllDescendantsInternal(child); |
404 } | 404 } |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 return viewHeight(IncludeScrollbars) / scale; | 939 return viewHeight(IncludeScrollbars) / scale; |
940 } | 940 } |
941 | 941 |
942 void LayoutView::willBeDestroyed() | 942 void LayoutView::willBeDestroyed() |
943 { | 943 { |
944 LayoutBlockFlow::willBeDestroyed(); | 944 LayoutBlockFlow::willBeDestroyed(); |
945 m_compositor.clear(); | 945 m_compositor.clear(); |
946 } | 946 } |
947 | 947 |
948 } // namespace blink | 948 } // namespace blink |
OLD | NEW |