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