Changeset 64890 in webkit


Ignore:
Timestamp:
Aug 6, 2010 6:56:07 PM (14 years ago)
Author:
abarth@webkit.org
Message:

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

Reviewed by Eric Seidel.

REGRESSION (r64712): YouTube video pages have contents of <noembed> elements overlapping the video description
https://bugs.webkit.org/show_bug.cgi?id=43605

Show test progression. We missed this regression when analyzing the
expectation diffs because the DOM was correct and was a progression.

  • fast/dom/no-elements-expected.txt:
  • platform/mac/fast/parser/nofoo-tags-inside-paragraph-expected.txt:

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

Reviewed by Eric Seidel.

REGRESSION (r64712): YouTube video pages have contents of <noembed> elements overlapping the video description
https://bugs.webkit.org/show_bug.cgi?id=43605

The old parser used to drop <noembed> on the floor. We're supposed to
add it to the DOM, but we don't want to create a renderer for it.

  • html/HTMLElement.cpp: (WebCore::HTMLElement::rendererIsNeeded):
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r64887 r64890  
     12010-08-06  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        REGRESSION (r64712): YouTube video pages have contents of <noembed> elements overlapping the video description
     6        https://bugs.webkit.org/show_bug.cgi?id=43605
     7
     8        Show test progression.  We missed this regression when analyzing the
     9        expectation diffs because the DOM was correct and was a progression.
     10
     11        * fast/dom/no-elements-expected.txt:
     12        * platform/mac/fast/parser/nofoo-tags-inside-paragraph-expected.txt:
     13
    1142010-08-06  Dimitri Glazkov  <dglazkov@chromium.org>
    215
  • trunk/LayoutTests/fast/dom/no-elements-expected.txt

    r64712 r64890  
    11This tests that the elements noframes, nolayer, noscript and noembed are created as elements and put in the DOM tree. The elements other than <nolayer> should not contain any children. If the test is successful, the four messages below will list 0, 0, 0, and 1 child.
    22
    3 This is noembed. This is nolayer.
     3This is nolayer.
    44noframes has 1 children.
    55noscript has 1 children.
  • trunk/LayoutTests/platform/mac/fast/parser/nofoo-tags-inside-paragraph-expected.txt

    r64712 r64890  
    3131        RenderText {#text} at (0,0) size 329x18
    3232          text run at (0,0) width 329: "This sentence contains noembed tags and should be "
    33         RenderInline {NOEMBED} at (0,0) size 0x0
    3433        RenderText {#text} at (329,0) size 74x18
    3534          text run at (329,0) width 74: "on one line."
  • trunk/WebCore/ChangeLog

    r64889 r64890  
     12010-08-06  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        REGRESSION (r64712): YouTube video pages have contents of <noembed> elements overlapping the video description
     6        https://bugs.webkit.org/show_bug.cgi?id=43605
     7
     8        The old parser used to drop <noembed> on the floor.  We're supposed to
     9        add it to the DOM, but we don't want to create a renderer for it.
     10
     11        * html/HTMLElement.cpp:
     12        (WebCore::HTMLElement::rendererIsNeeded):
     13
    1142010-08-06  Tony Gentilcore  <tonyg@chromium.org>
    215
  • trunk/WebCore/html/HTMLElement.cpp

    r64018 r64890  
    987987    return inEitherTagList(newChild);
    988988}
    989    
     989
    990990bool HTMLElement::rendererIsNeeded(RenderStyle *style)
    991991{
     
    995995        if (frame && frame->script()->canExecuteScripts(NotAboutToExecuteScript))
    996996            return false;
    997     }
     997    } else
    998998#endif
     999    if (hasLocalName(noembedTag)) {
     1000        Frame* frame = document()->frame();
     1001        if (frame && frame->loader()->subframeLoader()->allowPlugins(NotAboutToInstantiatePlugin))
     1002            return false;
     1003    }
    9991004    return StyledElement::rendererIsNeeded(style);
    10001005}
    1001    
     1006
    10021007RenderObject* HTMLElement::createRenderer(RenderArena* arena, RenderStyle* style)
    10031008{
Note: See TracChangeset for help on using the changeset viewer.