| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ight reserved. | 3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ight reserved. |
| 4 * Copyright (C) 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1871 it.increment(); | 1871 it.increment(); |
| 1872 | 1872 |
| 1873 return !it.atEnd(); | 1873 return !it.atEnd(); |
| 1874 } | 1874 } |
| 1875 | 1875 |
| 1876 | 1876 |
| 1877 void LayoutBlockFlow::addOverflowFromInlineChildren() | 1877 void LayoutBlockFlow::addOverflowFromInlineChildren() |
| 1878 { | 1878 { |
| 1879 LayoutUnit endPadding = hasOverflowClip() ? paddingEnd() : LayoutUnit(); | 1879 LayoutUnit endPadding = hasOverflowClip() ? paddingEnd() : LayoutUnit(); |
| 1880 // FIXME: Need to find another way to do this, since scrollbars could show w
hen we don't want them to. | 1880 // FIXME: Need to find another way to do this, since scrollbars could show w
hen we don't want them to. |
| 1881 if (hasOverflowClip() && !endPadding && node() && node()->isRootEditableElem
ent() && style()->isLeftToRightDirection()) | 1881 if (hasOverflowClip() && !endPadding && node() && isRootEditableElement(*nod
e()) && style()->isLeftToRightDirection()) |
| 1882 endPadding = LayoutUnit(1); | 1882 endPadding = LayoutUnit(1); |
| 1883 for (RootInlineBox* curr = firstRootBox(); curr; curr = curr->nextRootBox())
{ | 1883 for (RootInlineBox* curr = firstRootBox(); curr; curr = curr->nextRootBox())
{ |
| 1884 addLayoutOverflow(curr->paddedLayoutOverflowRect(endPadding)); | 1884 addLayoutOverflow(curr->paddedLayoutOverflowRect(endPadding)); |
| 1885 LayoutRect visualOverflow = curr->visualOverflowRect(curr->lineTop(), cu
rr->lineBottom()); | 1885 LayoutRect visualOverflow = curr->visualOverflowRect(curr->lineTop(), cu
rr->lineBottom()); |
| 1886 addContentsVisualOverflow(visualOverflow); | 1886 addContentsVisualOverflow(visualOverflow); |
| 1887 } | 1887 } |
| 1888 | 1888 |
| 1889 if (!containsInlineWithOutlineAndContinuation()) | 1889 if (!containsInlineWithOutlineAndContinuation()) |
| 1890 return; | 1890 return; |
| 1891 | 1891 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2073 if (!line || !line->isFirstLineStyle()) | 2073 if (!line || !line->isFirstLineStyle()) |
| 2074 return reason; | 2074 return reason; |
| 2075 // It's the RootInlineBox that paints the ::first-line background. Note that
since it may be | 2075 // It's the RootInlineBox that paints the ::first-line background. Note that
since it may be |
| 2076 // expensive to figure out if the first line is affected by any ::first-line
selectors at all, | 2076 // expensive to figure out if the first line is affected by any ::first-line
selectors at all, |
| 2077 // we just invalidate it unconditionally, since that's typically cheaper. | 2077 // we just invalidate it unconditionally, since that's typically cheaper. |
| 2078 invalidateDisplayItemClient(*line, reason); | 2078 invalidateDisplayItemClient(*line, reason); |
| 2079 return reason; | 2079 return reason; |
| 2080 } | 2080 } |
| 2081 | 2081 |
| 2082 } // namespace blink | 2082 } // namespace blink |
| OLD | NEW |