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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 rectToInvalidate.moveBy(-viewRectangle.location()); | 467 rectToInvalidate.moveBy(-viewRectangle.location()); |
468 | 468 |
469 // Adjust for frame border. | 469 // Adjust for frame border. |
470 rectToInvalidate.moveBy(obj->contentBoxRect().location()); | 470 rectToInvalidate.moveBy(obj->contentBoxRect().location()); |
471 obj->invalidatePaintRectangle(rectToInvalidate); | 471 obj->invalidatePaintRectangle(rectToInvalidate); |
472 } | 472 } |
473 } | 473 } |
474 | 474 |
475 void RenderView::invalidatePaintForViewAndCompositedLayers() | 475 void RenderView::invalidatePaintForViewAndCompositedLayers() |
476 { | 476 { |
477 paintInvalidationForWholeRenderer(); | 477 setShouldDoFullPaintInvalidation(true); |
478 | 478 |
479 // The only way we know how to hit these ASSERTS below this point is via the
Chromium OS login screen. | 479 // The only way we know how to hit these ASSERTS below this point is via the
Chromium OS login screen. |
480 DisableCompositingQueryAsserts disabler; | 480 DisableCompositingQueryAsserts disabler; |
481 | 481 |
482 if (compositor()->inCompositingMode()) | 482 if (compositor()->inCompositingMode()) |
483 compositor()->fullyInvalidatePaint(); | 483 compositor()->fullyInvalidatePaint(); |
484 } | 484 } |
485 | 485 |
486 void RenderView::mapRectToPaintInvalidationBacking(const RenderLayerModelObject*
paintInvalidationContainer, LayoutRect& rect, bool fixed, const PaintInvalidati
onState* paintInvalidationState) const | 486 void RenderView::mapRectToPaintInvalidationBacking(const RenderLayerModelObject*
paintInvalidationContainer, LayoutRect& rect, bool fixed, const PaintInvalidati
onState* paintInvalidationState) const |
487 { | 487 { |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 return viewWidth(IncludeScrollbars) / scale; | 981 return viewWidth(IncludeScrollbars) / scale; |
982 } | 982 } |
983 | 983 |
984 double RenderView::layoutViewportHeight() const | 984 double RenderView::layoutViewportHeight() const |
985 { | 985 { |
986 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; | 986 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; |
987 return viewHeight(IncludeScrollbars) / scale; | 987 return viewHeight(IncludeScrollbars) / scale; |
988 } | 988 } |
989 | 989 |
990 } // namespace blink | 990 } // namespace blink |
OLD | NEW |