Changeset 63812 in webkit
- Timestamp:
- Jul 21, 2010 5:05:33 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r63810 r63812 1 2010-07-21 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 Fix fast/css/last-child-style-sharing.html 6 https://bugs.webkit.org/show_bug.cgi?id=42731 7 8 Prior to this patch, we weren't calling finishParsingChildren on the 9 body element. We need a more systematic way of catching these bugs. 10 11 * html/HTMLElementStack.cpp: 12 (WebCore::HTMLElementStack::popAll): 13 * html/HTMLElementStack.h: 14 * html/HTMLTreeBuilder.cpp: 15 (WebCore::HTMLTreeBuilder::processEndOfFile): 16 1 17 2010-07-21 Hans Wennborg <hans@chromium.org> 2 18 -
trunk/WebCore/html/HTMLElementStack.cpp
r63264 r63812 138 138 } 139 139 140 void HTMLElementStack::popAll() 141 { 142 m_htmlElement = 0; 143 m_headElement = 0; 144 m_bodyElement = 0; 145 while (m_top) { 146 top()->finishParsingChildren(); 147 m_top = m_top->releaseNext(); 148 } 149 } 150 140 151 void HTMLElementStack::pop() 141 152 { -
trunk/WebCore/html/HTMLElementStack.h
r63264 r63812 93 93 void popHTMLHeadElement(); 94 94 void popHTMLBodyElement(); 95 void popAll(); 95 96 96 97 void remove(Element*); -
trunk/WebCore/html/HTMLTreeBuilder.cpp
r63762 r63812 2616 2616 ASSERT(insertionMode() == InHeadNoscriptMode); 2617 2617 defaultForInHeadNoscript(); 2618 process Token(token);2619 break;2618 processEndOfFile(token); 2619 return; 2620 2620 case AfterFramesetMode: 2621 2621 case AfterAfterFramesetMode: … … 2641 2641 } 2642 2642 processEndOfFile(token); 2643 break;2643 return; 2644 2644 case InForeignContentMode: 2645 2645 parseError(token); … … 2649 2649 setInsertionMode(m_secondaryInsertionMode); 2650 2650 processEndOfFile(token); 2651 break;2651 return; 2652 2652 case InTableTextMode: 2653 2653 defaultForInTableText(); 2654 2654 processEndOfFile(token); 2655 break;2655 return; 2656 2656 case TextMode: 2657 2657 case InCaptionMode: … … 2660 2660 break; 2661 2661 } 2662 ASSERT(m_tree.openElements()->top()); 2663 m_tree.openElements()->popAll(); 2662 2664 } 2663 2665
Note: See TracChangeset
for help on using the changeset viewer.