Changeset 117534 in webkit


Ignore:
Timestamp:
May 17, 2012 8:24:44 PM (12 years ago)
Author:
hayato@chromium.org
Message:

[Shadow DOM] Add an assertion to make sure a visited node is not an active insertion point.
https://bugs.webkit.org/show_bug.cgi?id=86708

Reviewed by Eric Seidel.

Since InsertionPoint now has isActive() member function,
we can add an assertion to ComposedShadowTreeWalker::assertPrecondition()
using that function.

No new tests, no change in behavior.

  • dom/ComposedShadowTreeWalker.h:

(WebCore::ComposedShadowTreeWalker::assertPrecondition):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r117529 r117534  
     12012-05-17  Hayato Ito  <hayato@chromium.org>
     2
     3        [Shadow DOM] Add an assertion to make sure a visited node is not an active insertion point.
     4        https://bugs.webkit.org/show_bug.cgi?id=86708
     5
     6        Reviewed by Eric Seidel.
     7
     8        Since InsertionPoint now has isActive() member function,
     9        we can add an assertion to ComposedShadowTreeWalker::assertPrecondition()
     10        using that function.
     11
     12        No new tests, no change in behavior.
     13
     14        * dom/ComposedShadowTreeWalker.h:
     15        (WebCore::ComposedShadowTreeWalker::assertPrecondition):
     16
    1172012-05-17  Ami Fischman  <fischman@chromium.org>
    218
  • trunk/Source/WebCore/dom/ComposedShadowTreeWalker.h

    r117394 r117534  
    2828#define ComposedShadowTreeWalker_h
    2929
     30#include "InsertionPoint.h"
    3031#include "ShadowRoot.h"
    3132
     
    8182        else
    8283            ASSERT(!m_node->isShadowRoot() || toShadowRoot(m_node)->isYoungest());
    83         // FIXME: Add an assertion once InsertionPoint have isActive() function.
    84         // https://bugs.webkit.org/show_bug.cgi?id=82010
    85         // ASSERT(!isInsertionPoint(m_node) || !toInsertionPoint(node)->isActive());
     84        ASSERT(!isInsertionPoint(m_node) || !toInsertionPoint(m_node)->isActive());
    8685#endif
    8786    }
Note: See TracChangeset for help on using the changeset viewer.