| 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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 void LayoutView::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffse
t) | 318 void LayoutView::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffse
t) |
| 319 { | 319 { |
| 320 ViewPainter(*this).paint(paintInfo, paintOffset); | 320 ViewPainter(*this).paint(paintInfo, paintOffset); |
| 321 } | 321 } |
| 322 | 322 |
| 323 void LayoutView::paintBoxDecorationBackground(const PaintInfo& paintInfo, const
LayoutPoint&) | 323 void LayoutView::paintBoxDecorationBackground(const PaintInfo& paintInfo, const
LayoutPoint&) |
| 324 { | 324 { |
| 325 ViewPainter(*this).paintBoxDecorationBackground(paintInfo); | 325 ViewPainter(*this).paintBoxDecorationBackground(paintInfo); |
| 326 } | 326 } |
| 327 | 327 |
| 328 void LayoutView::invalidateTreeIfNeeded(const PaintInvalidationState& paintInval
idationState) | 328 void LayoutView::invalidateTreeIfNeeded(PaintInvalidationState& paintInvalidatio
nState) |
| 329 { | 329 { |
| 330 ASSERT(!needsLayout()); | 330 ASSERT(!needsLayout()); |
| 331 | 331 |
| 332 // We specifically need to issue paint invalidations for the viewRect since
other renderers | 332 // We specifically need to issue paint invalidations for the viewRect since
other renderers |
| 333 // short-circuit on full-paint invalidation. | 333 // short-circuit on full-paint invalidation. |
| 334 LayoutRect dirtyRect = viewRect(); | 334 LayoutRect dirtyRect = viewRect(); |
| 335 if (doingFullPaintInvalidation() && !dirtyRect.isEmpty()) { | 335 if (doingFullPaintInvalidation() && !dirtyRect.isEmpty()) { |
| 336 const LayoutBoxModelObject* paintInvalidationContainer = &paintInvalidat
ionState.paintInvalidationContainer(); | 336 const LayoutBoxModelObject* paintInvalidationContainer = &paintInvalidat
ionState.paintInvalidationContainer(); |
| 337 DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(this, paintInval
idationContainer, dirtyRect, &paintInvalidationState); | 337 DeprecatedPaintLayer::mapRectToPaintInvalidationBacking(this, paintInval
idationContainer, dirtyRect, &paintInvalidationState); |
| 338 invalidatePaintUsingContainer(paintInvalidationContainer, dirtyRect, Pai
ntInvalidationFull); | 338 invalidatePaintUsingContainer(paintInvalidationContainer, dirtyRect, Pai
ntInvalidationFull); |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 957 return viewHeight(IncludeScrollbars) / scale; | 957 return viewHeight(IncludeScrollbars) / scale; |
| 958 } | 958 } |
| 959 | 959 |
| 960 void LayoutView::willBeDestroyed() | 960 void LayoutView::willBeDestroyed() |
| 961 { | 961 { |
| 962 LayoutBlockFlow::willBeDestroyed(); | 962 LayoutBlockFlow::willBeDestroyed(); |
| 963 m_compositor.clear(); | 963 m_compositor.clear(); |
| 964 } | 964 } |
| 965 | 965 |
| 966 } // namespace blink | 966 } // namespace blink |
| OLD | NEW |