Changeset 31358

Show
Ignore:
Timestamp:
03/26/08 21:13:47 (2 years ago)
Author:
mitz@apple.com
Message:

Reviewed by Dave Hyatt.

  • html/HTMLParser.cpp: (WebCore::HTMLParser::insertNode): Added call to beginParsingChildren() on the new node. (WebCore::HTMLParser::handleError): Ditto. (WebCore::HTMLParser::reopenResidualStyleTags): Ditto. (WebCore::HTMLParser::pushBlock): Removed incorrect call to beginParsingChildren() on the current node.
  • manual-tests/applet-finish-parsing-children.html: Added.
  • manual-tests/resources/DrawMessage.class: Added.
Location:
trunk/WebCore
Files:
2 added
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r31357 r31358  
     12008-03-26  Dan Bernstein  <mitz@apple.com> 
     2 
     3        Reviewed by Dave Hyatt. 
     4 
     5        - fix <rdar://problem/5816522> REGRESSION (r30111-30112): Tahoe web cam website has some text in Chinese or japanese 
     6 
     7        * html/HTMLParser.cpp: 
     8        (WebCore::HTMLParser::insertNode): Added call to beginParsingChildren() 
     9        on the new node. 
     10        (WebCore::HTMLParser::handleError): Ditto. 
     11        (WebCore::HTMLParser::reopenResidualStyleTags): Ditto. 
     12        (WebCore::HTMLParser::pushBlock): Removed incorrect call to 
     13        beginParsingChildren() on the current node. 
     14        * manual-tests/applet-finish-parsing-children.html: Added. 
     15        * manual-tests/resources/DrawMessage.class: Added. 
     16 
    1172008-03-26  Brady Eidson  <beidson@apple.com> 
    218 
  • trunk/WebCore/html/HTMLParser.cpp

    r30443 r31358  
    330330            // assumes that newNode is neither 0 nor a pointer to the document. 
    331331            pushBlock(localName, tagPriority); 
     332            newNode->beginParsingChildren(); 
    332333            ASSERT(!didRefCurrent); 
    333334            newNode->ref();  
     
    418419                 
    419420                pushBlock(localName, tagPriority); 
     421                newNode->beginParsingChildren(); 
    420422                setCurrent(newNode); 
    421423                if (!n->attached() && !m_isParsingFragment) 
     
    561563                        { 
    562564                            pushBlock(localName, tagPriority); 
     565                            n->beginParsingChildren(); 
    563566                            setCurrent(n); 
    564567                            inStrayTableContent++; 
     
    12041207        // Now push a new stack element for this node we just created. 
    12051208        pushBlock(elem->tagName, elem->level); 
     1209        newNode->beginParsingChildren(); 
    12061210 
    12071211        // Set our strayTableContent boolean if needed, so that the reopened tag also knows 
     
    12271231void HTMLParser::pushBlock(const AtomicString& tagName, int level) 
    12281232{ 
    1229     current->beginParsingChildren(); 
    12301233    blockStack = new HTMLStackElem(tagName, level, current, didRefCurrent, blockStack); 
    12311234    didRefCurrent = false;