| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. | 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv
ed. |
| 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) | 5 * Copyright (C) 2006 Andrew Wellington (proton@wiretapped.net) |
| 6 * Copyright (C) 2010 Daniel Bates (dbates@intudata.com) | 6 * Copyright (C) 2010 Daniel Bates (dbates@intudata.com) |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1831 { | 1831 { |
| 1832 ASSERT(!needsLayout()); | 1832 ASSERT(!needsLayout()); |
| 1833 | 1833 |
| 1834 if (selectionState() == SelectionNone || !inlineBoxWrapper()) | 1834 if (selectionState() == SelectionNone || !inlineBoxWrapper()) |
| 1835 return LayoutRect(); | 1835 return LayoutRect(); |
| 1836 | 1836 |
| 1837 RootInlineBox& root = inlineBoxWrapper()->root(); | 1837 RootInlineBox& root = inlineBoxWrapper()->root(); |
| 1838 LayoutRect rect(0, root.selectionTop() - y(), width(), root.selectionHeight(
)); | 1838 LayoutRect rect(0, root.selectionTop() - y(), width(), root.selectionHeight(
)); |
| 1839 | 1839 |
| 1840 if (clipToVisibleContent) | 1840 if (clipToVisibleContent) |
| 1841 computeRectForRepaint(repaintContainer, rect); | 1841 mapRectToRepaintBacking(repaintContainer, rect); |
| 1842 else | 1842 else |
| 1843 rect = localToContainerQuad(FloatRect(rect), repaintContainer).enclosing
BoundingBox(); | 1843 rect = localToContainerQuad(FloatRect(rect), repaintContainer).enclosing
BoundingBox(); |
| 1844 | 1844 |
| 1845 return rect; | 1845 return rect; |
| 1846 } | 1846 } |
| 1847 | 1847 |
| 1848 } // namespace WebCore | 1848 } // namespace WebCore |
| OLD | NEW |