Changeset 74145 in webkit
- Timestamp:
- Dec 15, 2010 3:06:43 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r74140 r74145 1 2010-12-15 Yong Li <yoli@rim.com> 2 3 Reviewed by Darin Adler. 4 5 Reproduce stack overflow when there are too many sibling inline boxes. 6 https://bugs.webkit.org/show_bug.cgi?id=48255 7 8 * fast/overflow/lots-of-sibling-inline-boxes.html: Added. 9 1 10 2010-12-15 Jian Li <jianli@chromium.org> 2 11 -
trunk/WebCore/ChangeLog
r74139 r74145 1 2010-12-15 Yong Li <yoli@rim.com> 2 3 Reviewed by Darin Adler. 4 5 Fix stack overflow when there are too many sibling inline boxes by using 6 a loop to traverse children instead of calling each sibling from the first child. 7 https://bugs.webkit.org/show_bug.cgi?id=48255 8 9 Test: fast/overflow/lots-of-sibling-inline-boxes.html 10 11 * rendering/InlineBox.h: 12 (WebCore::InlineBox::setConstructed): 13 (WebCore::InlineBox::next): 14 * rendering/InlineFlowBox.h: 15 (WebCore::InlineFlowBox::setConstructed): 16 1 17 2010-12-15 Sam Weinig <sam@webkit.org> 2 18 -
trunk/WebCore/rendering/InlineBox.h
r73385 r74145 132 132 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, int x, int y, int tx, int ty); 133 133 134 InlineBox* next() const { return m_next; } 135 134 136 // Overloaded new operator. 135 137 void* operator new(size_t, RenderArena*) throw(); … … 177 179 178 180 bool isConstructed() { return m_constructed; } 179 virtual void setConstructed() 180 { 181 m_constructed = true; 182 if (m_next) 183 m_next->setConstructed(); 184 } 181 virtual void setConstructed() { m_constructed = true; } 185 182 186 183 void setExtracted(bool b = true) { m_extracted = b; } -
trunk/WebCore/rendering/InlineFlowBox.h
r73385 r74145 77 77 { 78 78 InlineBox::setConstructed(); 79 if (firstChild())80 firstChild()->setConstructed();79 for (InlineBox* child = firstChild(); child; child = child->next()) 80 child->setConstructed(); 81 81 } 82 82
Note: See TracChangeset
for help on using the changeset viewer.