Changes between Version 2 and Version 3 of TraversingShadowDOMTree


Ignore:
Timestamp:
May 8, 2012 9:43:15 PM (8 years ago)
Author:
hayato@chromium.org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TraversingShadowDOMTree

    v2 v3  
    22= Traversing Shadow DOM Tree =
    33
    4 This page explains how to use [https://trac.webkit.org/browser/trunk/Source/WebCore/dom/ComposedShadowTreeWalker.cpp ComposedShadowTreeWalker] class, which enables you to traverse nodes in composed shadow tree order.
     4This page explains how to use [https://trac.webkit.org/browser/trunk/Source/WebCore/dom/ComposedShadowTreeWalker.cpp?rev=112845 ComposedShadowTreeWalker] class, which enables you to traverse nodes in composed shadow tree order.
     5
     6Disclaimer: All information is based on the status on May 9 2012. Although I'll try to sync this document with actual code, this page might be out-of-date.
    57
    68= Background =
     
    128130== Focus Controller ==
    129131
    130 [https://trac.webkit.org/browser/trunk/Source/WebCore/page/FocusController.cpp FocusController] started to use ComposedShadowTreeWalker to traverse composed shadow DOM tree. That’s good example about how to use APIs. That also uses DoNotCrossUpperBoundary policy since Focus navigation should be scoped in each Shadow DOM subtree according to the current Shadow DOM spec. Although FocusNavigation is complex since it should consider each shadow DOM subteee as a ‘scope’, the APIs made implementations much easier since much complex works are done within APIs.
     132[https://trac.webkit.org/browser/trunk/Source/WebCore/page/FocusController.cpp?rev=112511 FocusController] started to use ComposedShadowTreeWalker to traverse composed shadow DOM tree. That’s good example about how to use APIs. That also uses DoNotCrossUpperBoundary policy since Focus navigation should be scoped in each Shadow DOM subtree according to the current Shadow DOM spec. Although FocusNavigation is complex since it should consider each shadow DOM subtree as a ‘scope’, the APIs made implementations much easier since much complex works are done within APIs.
    131133
    132134== Event Dispatcher ==