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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 compositor()->fullyInvalidatePaint(); | 479 compositor()->fullyInvalidatePaint(); |
480 } | 480 } |
481 | 481 |
482 bool LayoutView::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ance
stor, LayoutRect& rect, VisualRectFlags visualRectFlags) const | 482 bool LayoutView::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ance
stor, LayoutRect& rect, VisualRectFlags visualRectFlags) const |
483 { | 483 { |
484 return mapToVisualRectInAncestorSpace(ancestor, rect, 0, visualRectFlags); | 484 return mapToVisualRectInAncestorSpace(ancestor, rect, 0, visualRectFlags); |
485 } | 485 } |
486 | 486 |
487 bool LayoutView::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ance
stor, LayoutRect& rect, MapCoordinatesFlags mode, VisualRectFlags visualRectFlag
s) const | 487 bool LayoutView::mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ance
stor, LayoutRect& rect, MapCoordinatesFlags mode, VisualRectFlags visualRectFlag
s) const |
488 { | 488 { |
489 if (document().printing()) | |
490 return true; | |
491 | |
492 // Convert the rect into the physical coordinates space of this LayoutView. | 489 // Convert the rect into the physical coordinates space of this LayoutView. |
493 flipForWritingMode(rect); | 490 flipForWritingMode(rect); |
494 | 491 |
495 if (mode & IsFixed) | 492 if (mode & IsFixed) |
496 adjustOffsetForFixedPosition(rect); | 493 adjustOffsetForFixedPosition(rect); |
497 | 494 |
498 // Apply our transform if we have one (because of full page zooming). | 495 // Apply our transform if we have one (because of full page zooming). |
499 if (!ancestor && layer() && layer()->transform()) | 496 if (!ancestor && layer() && layer()->transform()) |
500 rect = layer()->transform()->mapRect(rect); | 497 rect = layer()->transform()->mapRect(rect); |
501 | 498 |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1038 // ASSERT(!frame()->isMainFrame()) here. All main frame scrolling should | 1035 // ASSERT(!frame()->isMainFrame()) here. All main frame scrolling should |
1039 // be handled by the ViewportScrollCallback. | 1036 // be handled by the ViewportScrollCallback. |
1040 | 1037 |
1041 if (!frameView()) | 1038 if (!frameView()) |
1042 return ScrollResult(false, false, delta.width(), delta.height()); | 1039 return ScrollResult(false, false, delta.width(), delta.height()); |
1043 | 1040 |
1044 return frameView()->getScrollableArea()->userScroll(granularity, delta); | 1041 return frameView()->getScrollableArea()->userScroll(granularity, delta); |
1045 } | 1042 } |
1046 | 1043 |
1047 } // namespace blink | 1044 } // namespace blink |
OLD | NEW |