Changeset 61990 in webkit


Ignore:
Timestamp:
Jun 28, 2010 2:56:30 AM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-06-28 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Don't dump contents of <script> elements in LayoutTests
https://bugs.webkit.org/show_bug.cgi?id=41277

Apparently we need to tell each element when we start and stop parsing
its children. If we don't do this, we see the contents of every script
and style element in dumpAsText LayoutTests. (This patch is *well*
covered by LayoutTests.)

  • html/HTMLTreeBuilder.h: (WebCore::HTMLTreeBuilder::ElementStack::pop): (WebCore::HTMLTreeBuilder::ElementStack::push):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r61989 r61990  
     12010-06-28  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Don't dump contents of <script> elements in LayoutTests
     6        https://bugs.webkit.org/show_bug.cgi?id=41277
     7
     8        Apparently we need to tell each element when we start and stop parsing
     9        its children.  If we don't do this, we see the contents of every script
     10        and style element in dumpAsText LayoutTests.  (This patch is *well*
     11        covered by LayoutTests.)
     12
     13        * html/HTMLTreeBuilder.h:
     14        (WebCore::HTMLTreeBuilder::ElementStack::pop):
     15        (WebCore::HTMLTreeBuilder::ElementStack::push):
     16
    1172010-06-28  Eric Seidel  <eric@webkit.org>
    218
  • trunk/WebCore/html/HTMLTreeBuilder.h

    r61988 r61990  
    2727#define HTMLTreeBuilder_h
    2828
     29#include "Element.h"
    2930#include "FragmentScriptingPermission.h"
    3031#include "HTMLTokenizer.h"
     
    4142class Document;
    4243class DocumentFragment;
    43 class Element;
    4444class Frame;
    4545class HTMLToken;
     
    123123        void pop()
    124124        {
     125            top()->finishParsingChildren();
    125126            m_top = m_top->releaseNext();
    126127        }
     
    129130        {
    130131            m_top.set(new ElementRecord(element, m_top.release()));
     132            top()->beginParsingChildren();
    131133        }
    132134
Note: See TracChangeset for help on using the changeset viewer.