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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 { | 468 { |
469 repaint(); | 469 repaint(); |
470 | 470 |
471 // The only way we know how to hit these ASSERTS below this point is via the
Chromium OS login screen. | 471 // The only way we know how to hit these ASSERTS below this point is via the
Chromium OS login screen. |
472 DisableCompositingQueryAsserts disabler; | 472 DisableCompositingQueryAsserts disabler; |
473 | 473 |
474 if (compositor()->inCompositingMode()) | 474 if (compositor()->inCompositingMode()) |
475 compositor()->repaintCompositedLayers(); | 475 compositor()->repaintCompositedLayers(); |
476 } | 476 } |
477 | 477 |
478 void RenderView::computeRectForRepaint(const RenderLayerModelObject* repaintCont
ainer, LayoutRect& rect, bool fixed) const | 478 void RenderView::mapRectToRepaintBacking(const RenderLayerModelObject* repaintCo
ntainer, LayoutRect& rect, bool fixed) const |
479 { | 479 { |
480 // If a container was specified, and was not 0 or the RenderView, | 480 // If a container was specified, and was not 0 or the RenderView, |
481 // then we should have found it by now. | 481 // then we should have found it by now. |
482 ASSERT_ARG(repaintContainer, !repaintContainer || repaintContainer == this); | 482 ASSERT_ARG(repaintContainer, !repaintContainer || repaintContainer == this); |
483 | 483 |
484 if (document().printing()) | 484 if (document().printing()) |
485 return; | 485 return; |
486 | 486 |
487 if (style()->isFlippedBlocksWritingMode()) { | 487 if (style()->isFlippedBlocksWritingMode()) { |
488 // We have to flip by hand since the view's logical height has not been
determined. We | 488 // We have to flip by hand since the view's logical height has not been
determined. We |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
993 return viewWidth(IncludeScrollbars) / scale; | 993 return viewWidth(IncludeScrollbars) / scale; |
994 } | 994 } |
995 | 995 |
996 double RenderView::layoutViewportHeight() const | 996 double RenderView::layoutViewportHeight() const |
997 { | 997 { |
998 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; | 998 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; |
999 return viewHeight(IncludeScrollbars) / scale; | 999 return viewHeight(IncludeScrollbars) / scale; |
1000 } | 1000 } |
1001 | 1001 |
1002 } // namespace WebCore | 1002 } // namespace WebCore |
OLD | NEW |