| 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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 void RenderView::invalidatePaintForRectangle(const LayoutRect& paintInvalidation
Rect) const | 447 void RenderView::invalidatePaintForRectangle(const LayoutRect& paintInvalidation
Rect) const |
| 448 { | 448 { |
| 449 ASSERT(!paintInvalidationRect.isEmpty()); | 449 ASSERT(!paintInvalidationRect.isEmpty()); |
| 450 | 450 |
| 451 if (document().printing() || !m_frameView) | 451 if (document().printing() || !m_frameView) |
| 452 return; | 452 return; |
| 453 | 453 |
| 454 ASSERT(layer()->compositingState() == PaintsIntoOwnBacking || !frame()->owne
rRenderer()); | 454 ASSERT(layer()->compositingState() == PaintsIntoOwnBacking || !frame()->owne
rRenderer()); |
| 455 | 455 |
| 456 if (layer()->compositingState() == PaintsIntoOwnBacking) { | 456 if (layer()->compositingState() == PaintsIntoOwnBacking) { |
| 457 layer()->repainter().setBackingNeedsRepaintInRect(paintInvalidationRect)
; | 457 layer()->paintInvalidator().setBackingNeedsRepaintInRect(paintInvalidati
onRect); |
| 458 } else { | 458 } else { |
| 459 m_frameView->contentRectangleForPaintInvalidation(pixelSnappedIntRect(pa
intInvalidationRect)); | 459 m_frameView->contentRectangleForPaintInvalidation(pixelSnappedIntRect(pa
intInvalidationRect)); |
| 460 } | 460 } |
| 461 } | 461 } |
| 462 | 462 |
| 463 void RenderView::invalidatePaintForViewAndCompositedLayers() | 463 void RenderView::invalidatePaintForViewAndCompositedLayers() |
| 464 { | 464 { |
| 465 paintInvalidationForWholeRenderer(); | 465 paintInvalidationForWholeRenderer(); |
| 466 | 466 |
| 467 // The only way we know how to hit these ASSERTS below this point is via the
Chromium OS login screen. | 467 // The only way we know how to hit these ASSERTS below this point is via the
Chromium OS login screen. |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 986 return viewWidth(IncludeScrollbars) / scale; | 986 return viewWidth(IncludeScrollbars) / scale; |
| 987 } | 987 } |
| 988 | 988 |
| 989 double RenderView::layoutViewportHeight() const | 989 double RenderView::layoutViewportHeight() const |
| 990 { | 990 { |
| 991 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; | 991 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; |
| 992 return viewHeight(IncludeScrollbars) / scale; | 992 return viewHeight(IncludeScrollbars) / scale; |
| 993 } | 993 } |
| 994 | 994 |
| 995 } // namespace blink | 995 } // namespace blink |
| OLD | NEW |