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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 void RenderView::mapRectToPaintInvalidationBacking(const RenderLayerModelObject*
paintInvalidationContainer, LayoutRect& rect, const PaintInvalidationState* inv
alidationState) const | 366 void RenderView::mapRectToPaintInvalidationBacking(const RenderLayerModelObject*
paintInvalidationContainer, LayoutRect& rect, const PaintInvalidationState* inv
alidationState) const |
367 { | 367 { |
368 mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, IsNotFix
edPosition, invalidationState); | 368 mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, IsNotFix
edPosition, invalidationState); |
369 } | 369 } |
370 | 370 |
371 void RenderView::mapRectToPaintInvalidationBacking(const RenderLayerModelObject*
paintInvalidationContainer, LayoutRect& rect, ViewportConstrainedPosition viewp
ortConstraint, const PaintInvalidationState* state) const | 371 void RenderView::mapRectToPaintInvalidationBacking(const RenderLayerModelObject*
paintInvalidationContainer, LayoutRect& rect, ViewportConstrainedPosition viewp
ortConstraint, const PaintInvalidationState* state) const |
372 { | 372 { |
373 if (document().printing()) | 373 if (document().printing()) |
374 return; | 374 return; |
375 | 375 |
376 if (style()->isFlippedBlocksWritingMode()) { | 376 if (style()->slowIsFlippedBlocksWritingMode()) { |
377 // We have to flip by hand since the view's logical height has not been
determined. We | 377 // We have to flip by hand since the view's logical height has not been
determined. We |
378 // can use the viewport width and height. | 378 // can use the viewport width and height. |
379 if (style()->isHorizontalWritingMode()) | 379 if (style()->isHorizontalWritingMode()) |
380 rect.setY(viewHeight() - rect.maxY()); | 380 rect.setY(viewHeight() - rect.maxY()); |
381 else | 381 else |
382 rect.setX(viewWidth() - rect.maxX()); | 382 rect.setX(viewWidth() - rect.maxX()); |
383 } | 383 } |
384 | 384 |
385 if (viewportConstraint == IsFixedPosition && m_frameView) { | 385 if (viewportConstraint == IsFixedPosition && m_frameView) { |
386 rect.move(m_frameView->scrollOffsetForFixedPosition()); | 386 rect.move(m_frameView->scrollOffsetForFixedPosition()); |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
872 return viewWidth(IncludeScrollbars) / scale; | 872 return viewWidth(IncludeScrollbars) / scale; |
873 } | 873 } |
874 | 874 |
875 double RenderView::layoutViewportHeight() const | 875 double RenderView::layoutViewportHeight() const |
876 { | 876 { |
877 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; | 877 float scale = m_frameView ? m_frameView->frame().pageZoomFactor() : 1; |
878 return viewHeight(IncludeScrollbars) / scale; | 878 return viewHeight(IncludeScrollbars) / scale; |
879 } | 879 } |
880 | 880 |
881 } // namespace blink | 881 } // namespace blink |
OLD | NEW |