Changeset 70718 in webkit


Ignore:
Timestamp:
Oct 27, 2010 2:57:24 PM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-10-27 Adam Barth <abarth@webkit.org>

Reviewed by Ojan Vafai.

REGRESSION(66511): CORDYS Process Factory doesn't work
https://bugs.webkit.org/show_bug.cgi?id=48453

Test some appendChild cases that didn't have coverage before.

  • fast/dom/allowed-children-expected.txt: Added.
  • fast/dom/allowed-children.html: Added.

2010-10-27 Adam Barth <abarth@webkit.org>

Reviewed by Ojan Vafai.

REGRESSION(66511): CORDYS Process Factory doesn't work
https://bugs.webkit.org/show_bug.cgi?id=48453

When Ojan refactored this function in 66511, he missed an "else",
which causes us to generated HIERARCHY_REQUEST_ERR in some cases where
we're not supposed to. This patch restores the "else" behavior (using
an early return) and adds a test for the cases that caused problems in
the field.

Test: fast/dom/allowed-children.html

  • dom/Node.cpp: (WebCore::isChildTypeAllowed):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r70715 r70718  
     12010-10-27  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Ojan Vafai.
     4
     5        REGRESSION(66511): CORDYS Process Factory doesn't work
     6        https://bugs.webkit.org/show_bug.cgi?id=48453
     7
     8        Test some appendChild cases that didn't have coverage before.
     9
     10        * fast/dom/allowed-children-expected.txt: Added.
     11        * fast/dom/allowed-children.html: Added.
     12
    1132010-10-27  Adam Roben  <aroben@apple.com>
    214
  • trunk/WebCore/ChangeLog

    r70716 r70718  
     12010-10-27  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Ojan Vafai.
     4
     5        REGRESSION(66511): CORDYS Process Factory doesn't work
     6        https://bugs.webkit.org/show_bug.cgi?id=48453
     7
     8        When Ojan refactored this function in 66511, he missed an "else",
     9        which causes us to generated HIERARCHY_REQUEST_ERR in some cases where
     10        we're not supposed to.  This patch restores the "else" behavior (using
     11        an early return) and adds a test for the cases that caused problems in
     12        the field.
     13
     14        Test: fast/dom/allowed-children.html
     15
     16        * dom/Node.cpp:
     17        (WebCore::isChildTypeAllowed):
     18
    1192010-10-27  Beth Dakin  <bdakin@apple.com>
    220
  • trunk/WebCore/dom/Node.cpp

    r70473 r70718  
    10811081        if (!newParent->childTypeAllowed(child->nodeType()))
    10821082            return false;
     1083        return true;
    10831084    }
    10841085   
     
    10871088            return false;
    10881089    }
    1089 
    10901090    return true;
    10911091}
Note: See TracChangeset for help on using the changeset viewer.