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 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
991 // normalized ScrollManager-like scrolling path and we should get rid of | 991 // normalized ScrollManager-like scrolling path and we should get rid of |
992 // of this override. All frame scrolling should be handled by | 992 // of this override. All frame scrolling should be handled by |
993 // ViewportScrollCallback. | 993 // ViewportScrollCallback. |
994 | 994 |
995 if (!frameView()) | 995 if (!frameView()) |
996 return ScrollResult(false, false, delta.width(), delta.height()); | 996 return ScrollResult(false, false, delta.width(), delta.height()); |
997 | 997 |
998 return frameView()->getScrollableArea()->userScroll(granularity, delta); | 998 return frameView()->getScrollableArea()->userScroll(granularity, delta); |
999 } | 999 } |
1000 | 1000 |
| 1001 LayoutRect LayoutView::debugRect() const |
| 1002 { |
| 1003 LayoutRect rect; |
| 1004 LayoutBlock* block = containingBlock(); |
| 1005 if (block) |
| 1006 block->adjustChildDebugRect(rect); |
| 1007 |
| 1008 rect.setWidth(LayoutUnit(viewWidth(IncludeScrollbars))); |
| 1009 rect.setHeight(LayoutUnit(viewHeight(IncludeScrollbars))); |
| 1010 |
| 1011 return rect; |
| 1012 } |
| 1013 |
1001 } // namespace blink | 1014 } // namespace blink |
OLD | NEW |