| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 { | 933 { |
| 934 // If we know we have no overflow, we can just bail. | 934 // If we know we have no overflow, we can just bail. |
| 935 if (knownToHaveNoOverflow()) { | 935 if (knownToHaveNoOverflow()) { |
| 936 ASSERT(!m_overflow); | 936 ASSERT(!m_overflow); |
| 937 return; | 937 return; |
| 938 } | 938 } |
| 939 | 939 |
| 940 if (m_overflow) | 940 if (m_overflow) |
| 941 m_overflow.clear(); | 941 m_overflow.clear(); |
| 942 | 942 |
| 943 // Visual overflow just includes overflow for stuff we need to repaint ourse
lves. Self-painting layers are ignored. | 943 // Visual overflow just includes overflow for stuff we need to issues paint
invalidations for ourselves. Self-painting layers are ignored. |
| 944 // Layout overflow is used to determine scrolling extent, so it still includ
es child layers and also factors in | 944 // Layout overflow is used to determine scrolling extent, so it still includ
es child layers and also factors in |
| 945 // transforms, relative positioning, etc. | 945 // transforms, relative positioning, etc. |
| 946 LayoutRect logicalLayoutOverflow(enclosingLayoutRect(logicalFrameRectIncludi
ngLineHeight(lineTop, lineBottom))); | 946 LayoutRect logicalLayoutOverflow(enclosingLayoutRect(logicalFrameRectIncludi
ngLineHeight(lineTop, lineBottom))); |
| 947 LayoutRect logicalVisualOverflow(logicalLayoutOverflow); | 947 LayoutRect logicalVisualOverflow(logicalLayoutOverflow); |
| 948 | 948 |
| 949 addBoxShadowVisualOverflow(logicalVisualOverflow); | 949 addBoxShadowVisualOverflow(logicalVisualOverflow); |
| 950 addBorderOutsetVisualOverflow(logicalVisualOverflow); | 950 addBorderOutsetVisualOverflow(logicalVisualOverflow); |
| 951 addOutlineVisualOverflow(logicalVisualOverflow); | 951 addOutlineVisualOverflow(logicalVisualOverflow); |
| 952 | 952 |
| 953 for (InlineBox* curr = firstChild(); curr; curr = curr->nextOnLine()) { | 953 for (InlineBox* curr = firstChild(); curr; curr = curr->nextOnLine()) { |
| (...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1665 ASSERT(child->prevOnLine() == prev); | 1665 ASSERT(child->prevOnLine() == prev); |
| 1666 prev = child; | 1666 prev = child; |
| 1667 } | 1667 } |
| 1668 ASSERT(prev == m_lastChild); | 1668 ASSERT(prev == m_lastChild); |
| 1669 #endif | 1669 #endif |
| 1670 } | 1670 } |
| 1671 | 1671 |
| 1672 #endif | 1672 #endif |
| 1673 | 1673 |
| 1674 } // namespace blink | 1674 } // namespace blink |
| OLD | NEW |