tree: b6cefdea4e2fee18fe9ef5405c495d07d184b165 [path history] [tgz]
  1. events/
  2. ng/
  3. trustedtypes/
  4. AccessibleNode.cpp
  5. AccessibleNode.h
  6. AccessibleNode.idl
  7. AccessibleNodeList.cpp
  8. AccessibleNodeList.h
  9. AccessibleNodeList.idl
  10. AnimationWorkletProxyClient.cpp
  11. AnimationWorkletProxyClient.h
  12. Attr.cpp
  13. Attr.h
  14. Attr.idl
  15. Attribute.h
  16. AttributeCollection.h
  17. AttrTest.cpp
  18. AXObjectCache.cpp
  19. AXObjectCache.h
  20. AXObjectCacheBase.cpp
  21. AXObjectCacheBase.h
  22. BUILD.gn
  23. CDATASection.cpp
  24. CDATASection.h
  25. CDATASection.idl
  26. CharacterData.cpp
  27. CharacterData.h
  28. CharacterData.idl
  29. ChildFrameDisconnector.cpp
  30. ChildFrameDisconnector.h
  31. ChildListMutationScope.cpp
  32. ChildListMutationScope.h
  33. ChildNode.h
  34. ChildNode.idl
  35. ChildNodeList.cpp
  36. ChildNodeList.h
  37. ClassCollection.cpp
  38. ClassCollection.h
  39. CollectionIndexCache.h
  40. Comment.cpp
  41. Comment.h
  42. Comment.idl
  43. CommonDefinitions.idl
  44. ComputedAccessibleNode.cpp
  45. ComputedAccessibleNode.h
  46. ComputedAccessibleNode.idl
  47. ContainerNode.cpp
  48. ContainerNode.h
  49. ContextFeatures.cpp
  50. ContextFeatures.h
  51. ContextFeaturesClientImpl.cpp
  52. ContextFeaturesClientImpl.h
  53. ContextLifecycleNotifier.cpp
  54. ContextLifecycleNotifier.h
  55. ContextLifecycleObserver.cpp
  56. ContextLifecycleObserver.h
  57. CreateElementFlags.h
  58. DatasetDOMStringMap.cpp
  59. DatasetDOMStringMap.h
  60. DecodedDataDocumentParser.cpp
  61. DecodedDataDocumentParser.h
  62. DistributedNodes.cpp
  63. DistributedNodes.h
  64. Document.cpp
  65. Document.h
  66. Document.idl
  67. DocumentEncodingData.cpp
  68. DocumentEncodingData.h
  69. DocumentFragment.cpp
  70. DocumentFragment.h
  71. DocumentFragment.idl
  72. DocumentInit.cpp
  73. DocumentInit.h
  74. DocumentLifecycle.cpp
  75. DocumentLifecycle.h
  76. DocumentOrShadowRoot.h
  77. DocumentOrShadowRoot.idl
  78. DocumentParser.cpp
  79. DocumentParser.h
  80. DocumentParserClient.h
  81. DocumentParserTiming.cpp
  82. DocumentParserTiming.h
  83. DocumentShutdownNotifier.cpp
  84. DocumentShutdownNotifier.h
  85. DocumentShutdownObserver.cpp
  86. DocumentShutdownObserver.h
  87. DocumentStatisticsCollector.cpp
  88. DocumentStatisticsCollector.h
  89. DocumentStatisticsCollectorTest.cpp
  90. DocumentTest.cpp
  91. DocumentTiming.cpp
  92. DocumentTiming.h
  93. DocumentType.cpp
  94. DocumentType.h
  95. DocumentType.idl
  96. DOMException.cpp
  97. DOMException.h
  98. DOMException.idl
  99. DOMHighResTimeStamp.h
  100. DOMImplementation.cpp
  101. DOMImplementation.h
  102. DOMImplementation.idl
  103. DOMImplementationTest.cpp
  104. DOMNodeIds.cpp
  105. DOMNodeIds.h
  106. DOMStringList.cpp
  107. DOMStringList.h
  108. DOMStringList.idl
  109. DOMStringMap.cpp
  110. DOMStringMap.h
  111. DOMStringMap.idl
  112. DOMTimeStamp.h
  113. DOMTokenList.cpp
  114. DOMTokenList.h
  115. DOMTokenList.idl
  116. Element.cpp
  117. Element.h
  118. Element.idl
  119. ElementCreationOptions.idl
  120. ElementData.cpp
  121. ElementData.h
  122. ElementDataCache.cpp
  123. ElementDataCache.h
  124. ElementDefinitionOptions.idl
  125. ElementRareData.cpp
  126. ElementRareData.h
  127. ElementRegistrationOptions.idl
  128. ElementShadow.cpp
  129. ElementShadow.h
  130. ElementShadowV0.cpp
  131. ElementShadowV0.h
  132. ElementTest.cpp
  133. ElementTraversal.h
  134. ElementVisibilityObserver.cpp
  135. ElementVisibilityObserver.h
  136. ElementVisibilityObserverTest.cpp
  137. EmptyNodeList.cpp
  138. EmptyNodeList.h
  139. ExceptionCode.h
  140. ExecutionContext.cpp
  141. ExecutionContext.h
  142. FirstLetterPseudoElement.cpp
  143. FirstLetterPseudoElement.h
  144. FirstLetterPseudoElementTest.cpp
  145. FlatTreeTraversal.cpp
  146. FlatTreeTraversal.h
  147. FlatTreeTraversalTest.cpp
  148. FrameRequestCallback.idl
  149. FrameRequestCallbackCollection.cpp
  150. FrameRequestCallbackCollection.h
  151. FunctionStringCallback.idl
  152. GetRootNodeOptions.idl
  153. GlobalEventHandlers.h
  154. GlobalEventHandlers.idl
  155. IconURL.cpp
  156. IconURL.h
  157. IdleDeadline.cpp
  158. IdleDeadline.h
  159. IdleDeadline.idl
  160. IdleDeadlineTest.cpp
  161. IdleRequestCallback.idl
  162. IdleRequestOptions.idl
  163. IdTargetObserver.cpp
  164. IdTargetObserver.h
  165. IdTargetObserverRegistry.cpp
  166. IdTargetObserverRegistry.h
  167. IncrementLoadEventDelayCount.cpp
  168. IncrementLoadEventDelayCount.h
  169. Iterator.h
  170. Iterator.idl
  171. LayoutTreeBuilder.cpp
  172. LayoutTreeBuilder.h
  173. LayoutTreeBuilderTraversal.cpp
  174. LayoutTreeBuilderTraversal.h
  175. LayoutTreeBuilderTraversalTest.cpp
  176. LiveNodeList.cpp
  177. LiveNodeList.h
  178. LiveNodeListBase.cpp
  179. LiveNodeListBase.h
  180. LiveNodeListRegistry.cpp
  181. LiveNodeListRegistry.h
  182. LiveNodeListRegistryTest.cpp
  183. MutationObserver.cpp
  184. MutationObserver.h
  185. MutationObserver.idl
  186. MutationObserverInit.idl
  187. MutationObserverInterestGroup.cpp
  188. MutationObserverInterestGroup.h
  189. MutationObserverRegistration.cpp
  190. MutationObserverRegistration.h
  191. MutationObserverTest.cpp
  192. MutationRecord.cpp
  193. MutationRecord.h
  194. MutationRecord.idl
  195. NamedNodeMap.cpp
  196. NamedNodeMap.h
  197. NamedNodeMap.idl
  198. NameNodeList.cpp
  199. NameNodeList.h
  200. Node.cpp
  201. Node.h
  202. Node.idl
  203. NodeChildRemovalTracker.cpp
  204. NodeChildRemovalTracker.h
  205. NodeComputedStyle.h
  206. NodeFilter.h
  207. NodeFilter.idl
  208. NodeIterator.cpp
  209. NodeIterator.h
  210. NodeIterator.idl
  211. NodeIteratorBase.cpp
  212. NodeIteratorBase.h
  213. NodeList.h
  214. NodeList.idl
  215. NodeListsNodeData.cpp
  216. NodeListsNodeData.h
  217. NodeRareData.cpp
  218. NodeRareData.h
  219. NodeTest.cpp
  220. NodeTraversal.cpp
  221. NodeTraversal.h
  222. NodeTraversalStrategy.h
  223. NodeWithIndex.h
  224. NoncedElement.idl
  225. NonDocumentTypeChildNode.h
  226. NonDocumentTypeChildNode.idl
  227. NonElementParentNode.h
  228. NonElementParentNode.idl
  229. NthIndexCache.cpp
  230. NthIndexCache.h
  231. NthIndexCacheTest.cpp
  232. OWNERS
  233. ParentNode.h
  234. ParentNode.idl
  235. ParserContentPolicy.h
  236. PausableObject.cpp
  237. PausableObject.h
  238. PausableObjectTest.cpp
  239. PresentationAttributeStyle.cpp
  240. PresentationAttributeStyle.h
  241. ProcessingInstruction.cpp
  242. ProcessingInstruction.h
  243. ProcessingInstruction.idl
  244. PseudoElement.cpp
  245. PseudoElement.h
  246. PseudoElementData.h
  247. QualifiedName.cpp
  248. QualifiedName.h
  249. Range.cpp
  250. Range.h
  251. Range.idl
  252. RangeBoundaryPoint.h
  253. RangeTest.cpp
  254. RawDataDocumentParser.h
  255. README.md
  256. RemoteSecurityContext.cpp
  257. RemoteSecurityContext.h
  258. SandboxFlags.cpp
  259. SandboxFlags.h
  260. ScopedWindowFocusAllowedIndicator.h
  261. ScriptableDocumentParser.cpp
  262. ScriptableDocumentParser.h
  263. ScriptedAnimationController.cpp
  264. ScriptedAnimationController.h
  265. ScriptedAnimationControllerTest.cpp
  266. ScriptedIdleTaskController.cpp
  267. ScriptedIdleTaskController.h
  268. ScriptedIdleTaskControllerTest.cpp
  269. SecurityContext.cpp
  270. SecurityContext.h
  271. ShadowDOMV0Test.cpp
  272. ShadowRoot.cpp
  273. ShadowRoot.h
  274. ShadowRoot.idl
  275. ShadowRootInit.idl
  276. ShadowRootRareDataV0.h
  277. SinkDocument.cpp
  278. SinkDocument.h
  279. SlotAssignment.cpp
  280. SlotAssignment.h
  281. SpaceSplitString.cpp
  282. SpaceSplitString.h
  283. SpaceSplitStringTest.cpp
  284. StaticNodeList.h
  285. StaticRange.cpp
  286. StaticRange.h
  287. StaticRange.idl
  288. StaticRangeTest.cpp
  289. SynchronousMutationNotifier.cpp
  290. SynchronousMutationNotifier.h
  291. SynchronousMutationObserver.cpp
  292. SynchronousMutationObserver.h
  293. SyncReattachContext.cpp
  294. SyncReattachContext.h
  295. TagCollection.cpp
  296. TagCollection.h
  297. TaskTypeTraits.h
  298. TemplateContentDocumentFragment.h
  299. Text.cpp
  300. Text.h
  301. Text.idl
  302. TextLinkColors.cpp
  303. TextLinkColors.h
  304. TextTest.cpp
  305. ThrowOnDynamicMarkupInsertionCountIncrementer.h
  306. TransformSource.h
  307. TransformSourceLibxslt.cpp
  308. TreeOrderedList.cpp
  309. TreeOrderedList.h
  310. TreeOrderedMap.cpp
  311. TreeOrderedMap.h
  312. TreeScope.cpp
  313. TreeScope.h
  314. TreeScopeAdopter.cpp
  315. TreeScopeAdopter.h
  316. TreeScopeAdopterTest.cpp
  317. TreeScopeTest.cpp
  318. TreeWalker.cpp
  319. TreeWalker.h
  320. TreeWalker.idl
  321. UserActionElementSet.cpp
  322. UserActionElementSet.h
  323. UserGestureIndicator.cpp
  324. UserGestureIndicator.h
  325. UserGestureIndicatorTest.cpp
  326. V0InsertionPoint.cpp
  327. V0InsertionPoint.h
  328. ViewportDescription.cpp
  329. ViewportDescription.h
  330. VisitedLinkState.cpp
  331. VisitedLinkState.h
  332. VoidFunction.idl
  333. WeakIdentifierMap.h
  334. WhitespaceAttacher.cpp
  335. WhitespaceAttacher.h
  336. WhitespaceAttacherTest.cpp
  337. WhitespaceLayoutObjects.md
  338. XMLDocument.cpp
  339. XMLDocument.h
  340. XMLDocument.idl
third_party/WebKit/Source/core/dom/README.md

DOM

Rendered

Author: hayato@chromium.org

The Source/core/dom directory contains the implementation of DOM.

Basically, this directory should contain only a file which is related to DOM Standard. However, for historical reasons, Source/core/dom directory has been used as if it were misc directory. As a result, unfortunately, this directory contains a lot of files which are not directly related to DOM.

Please don‘t add unrelated files to this directory any more. We are trying to organize the files so that developers wouldn’t get confused at seeing this directory.

  • See the spreadsheet, as a rough plan to organize Source/core/dom files.

    The classification in the spreadsheet might be wrong. Please update the spreadsheet, and move files if you can, if you know more appropriate places for each file.

  • See crbug.com/738794 for tracking our efforts.

Node and Node Tree

In this README, we draw a tree in left-to-right direction. A is the root of the tree.

A
├───B
├───C
   ├───D
   └───E
└───F

Node is a base class of all kinds of nodes in a node tree. Each Node has following 3 pointers (but not limited to):

  • parent_or_shadow_host_node_: Points to the parent (or the shadow host if it is a shadow root; explained later)
  • previous_: Points to the previous sibling
  • next_: Points to the next sibling

ContainerNode, from which Element extends, has additional pointers for its child:

  • first_child_: The meaning is obvious.
  • last_child_: Nit.

That means:

  • Siblings are stored as a linked list. It takes O(N) to access a parent's n-th child.
  • Parent can't tell how many children it has in O(1).

Further info:

  • Node, ContainerNode

C++11 range-based for loops for traversing a tree

You can traverse a tree manually:

// In C++

// Traverse a children.
for (Node* child = parent.firstChild(); child; child = child->nextSibling()) {
  ...
}

// ...

// Traverse nodes in tree order, depth-first traversal.
void foo(const Node& node) {
  ...
  for (Node* child = node.firstChild(); child; child = child->nextSibling()) {
    foo(*child);  // Recursively
  }
}

However, traversing a tree in this way might be error-prone. Instead, you can use NodeTraversal and ElementTraversal. They provides a C++11's range-based for loops, such as:

// In C++
for (Node& child : NodeTraversal::childrenOf(parent) {
  ...
}

e.g. Given a parent A, this traverses B, C, and F in this order.

// In C++
for (Node& node : NodeTraversal::startsAt(root)) {
  ...
}

e.g. Given the root A, this traverses A, B, C, D, E, and F in this order.

There are several other useful range-based for loops for each purpose. The cost of using range-based for loops is zero because everything can be inlined.

Further info:

  • NodeTraversal and ElementTraversal (more type-safe version)
  • The CL, which introduced these range-based for loops.

Shadow Tree

A shadow tree is a node tree whose root is a ShadowRoot. From web developer's perspective, a shadow root can be created by calling element.attachShadow{ ... } API. The element here is called a shadow host, or just a host if the context is clear.

  • A shadow root is always attached to another node tree through its host. A shadow tree is therefore never alone.
  • The node tree of a shadow root’s host is sometimes referred to as the light tree.

For example, given the example node tree:

A
├───B
├───C
   ├───D
   └───E
└───F

Web developers can create a shadow root, and manipulate the shadow tree in the following way:

// In JavaScript
const b = document.querySelector('#B');
const shadowRoot = b.attachShadow({ mode: 'open'} )
const sb = document.createElement('div');
shadowRoot.appendChild(sb);

The resulting shadow tree would be:

shadowRoot
└── sb

The shadowRoot has one child, sb. This shadow tree is being attached to B:

A
└── B
    ├──/shadowRoot
       └── sb
    ├── C
       ├── D
       └── E
    └── F

In this README, a notation (──/) is used to represent a shadowhost-shadowroot relationship, in a composed tree. A composed tree will be explained later. A shadowhost-shadowroot is 1:1 relationship.

Though a shadow root has always a corresponding shadow host element, a light tree and a shadow tree should be considered separately, from a node tree's perspective. (──/) is NOT a parent-child relationship in a node tree.

For example, even though B hosts the shadow tree, shadowRoot is not considered as a child of B. The means the following traversal:

// In C++
for (Node& node : NodeTraversal::startsAt(A)) {
  ...
}

traverses only A, B, C, D, E and F nodes. It never visits shadowRoot nor sb. NodeTraversal never cross a shadow boundary, ──/.

Further info:

  • ShadowRoot
  • Element#attachShadow

TreeScope

Document and ShadowRoot are always the root of a node tree. BothDocument and ShadowRoot implements TreeScope.

TreeScope maintains a lot of information about the underlying tree for efficiency. For example, TreeScope has a id-to-element mapping, as TreeOrderedMap, so that querySelector('#foo') can find an element whose id attribute is “foo” in O(1). In other words, root.querySelector('#foo') can be slow if that is used in a node tree whose root is not TreeScope.

Each Node has tree_scope_ pointer, which points to:

  • The root node: if the node's root is either Document or ShadowRoot.
  • owner document, otherwise.

The means tree_scope_ pointer is always non-null (except for while in a DOM mutation), but it doesn‘t always point to the node’s root.

Since each node doesn't have a pointer which always points to the root, Node::getRootNode(...) may take O(N) if the node is neither in a document tree nor in a shadow tree. If the node is in TreeScope (Node#IsInTreeScope() can tell it), we can get the root in O(1).

Each node has flags, which is updated in DOM mutation, so that we can tell whether the node is in a document tree, in a shadow tree, or in none of them, by using Node::IsInDocumentTree() and/or Node::IsInShadowTree().

If you want to add new features to Document, Document might be a wrong place to add. Instead, please consider to add functionality to TreeScope. We want to treat a document tree and a shadow tree equally as much as possible.

Example

document
└── a1
    ├──/shadowRoot1
       └── s1
    └── a2
        └── a3

document-fragment
└── b1
    ├──/shadowRoot2
       └── t2
    └── b2
        └── b3
  • Here, there are 4 node trees; The root node of each tree is document, shadowRoot1, document-fragment, and shadowRoot2.
  • Suppose that each node is created by document.createElement(...) (except for Document and ShadowRoot). That means each node's owner document is document.
nodenode's rootnode's _tree_scope points to:
documentdocument (self)document (self)
a1documentdocument
a2documentdocument
a3documentdocument
shadowRoot1shadowRoot1 (self)shadowRoot1 (self)
s1shadowRoot1shadowRoot1
document-fragmentdocument-fragment (self)document
b1document-fragmentdocument
b2document-fragmentdocument
b3document-fragmentdocument
shadowRoot2shadowRoot2 (self)shadowRoot2 (self)
t1shadowRoot2shadowRoot2

Further Info:

Composed Tree (a tree of node trees)

In the previous picture, you might think that more than one node trees, a document tree and a shadow tree, were connected to each other. That is true in some sense. The following is a more complex example:

document
├── a1 (host)
   ├──/shadowRoot1
      └── b1
   └── a2 (host)
       ├──/shadowRoot2
          ├── c1
             ├── c2
             └── c3
          └── c4
       ├── a3
       └── a4
└── a5
    └── a6 (host)
        └──/shadowRoot3
            └── d1
                ├── d2
                ├── d3 (host)
                   └──/shadowRoot4
                       ├── e1
                       └── e2
                └── d4 (host)
                    └──/shadowRoot5
                        ├── f1
                        └── f2

If you see this carefully, you can notice that this composed tree is composed of 6 node trees; 1 document tree and 5 shadow trees:

  • document tree

    document
    ├── a1 (host)
       └── a2 (host)
           ├── a3
           └── a4
    └── a5
        └── a6 (host)
    
  • shadow tree 1

    shadowRoot1
    └── b1
    
  • shadow tree 2

    shadowRoot2
    ├── c1
       ├── c2
       └── c3
    └── c4
    
  • shadow tree 3

    shadowRoot3
    └── d1
        ├── d2
        ├── d3 (host)
        └── d4 (host)
    
  • shadow tree 4

    shadowRoot4
    ├── e1
    └── e2
    
  • shadow tree 5

    shadowRoot5
    ├── f1
    └── f2
    

If we consider each node tree as node of a super-tree, we can draw a super-tree as such:

document
├── shadowRoot1
├── shadowRoot2
└── shadowRoot3
    ├── shadowRoot4
    └── shadowRoot5

Here, a root node is used as a representative of each node tree; A root node and a node tree itself can be sometimes exchangeable in explanations.

We call this kind of a super-tree (a tree of node trees) a composed tree. The concept of a composed tree is very useful to understand how Shadow DOM's encapsulation works.

DOM Standard defines the following terminologies:

For example,

  • d1's shadow-including ancestor nodes are shadowRoot3, a6, a5, and document
  • d1's shadow-including descendant nodes are d2, d3, shadowRoot4, e1, e2, d4, shadowRoot5, f1, and f2.

To honor Shadow DOM's encapsulation, we have a concept of visibility relationship between two nodes.

In the following table, “-” means that “node A is visible from node B”.

A \ Bdocumenta1a2b1c1d1d2e1f1
document---------
a1---------
a2---------
b1hiddenhiddenhidden-hiddenhiddenhiddenhiddenhidden
c1hiddenhiddenhiddenhidden-hiddenhiddenhiddenhidden
d1hiddenhiddenhiddenhiddenhidden----
d2hiddenhiddenhiddenhiddenhidden----
e1hiddenhiddenhiddenhiddenhiddenhiddenhidden-hidden
f1hiddenhiddenhiddenhiddenhiddenhiddenhiddenhidden-

For example, document is visible from any nodes.

To understand visibility relationship easily, here is a rule of thumb:

  • If node B can reach node A by traversing an edge (in the first picture of this section), recursively, A is visible from B.
  • However, an edge of (──/) ( shadowhost-shadowroot relationship) is one-directional:
    • From a shadow root to the shadow host -> Okay
    • From a shadow host to the shadow root -> Forbidden

In other words, a node in an inner tree can see a node in an outer tree in a composed tree, but the opposite is not true.

We have designed (or re-designed) a bunch of Web-facing APIs to honor this basic principle. If you add a new API to the web platform and Blink, please consider this rule and don't leak a node which should be hidden to web developers.

Warning: Unfortunately, a composed tree had a different meaning in the past; it was used to specify a flat tree (which will be explained later). If you find a wrong usage of a composed tree in Blink, please fix it.

Further Info:

  • TreeScope::ParentTreeScope()
  • Node::IsConnected()
  • DOM Standard: connected
  • DOM Standard: retarget

Flat tree

A composed tree itself can‘t be rendered as is. From the rendering’s perspective, Blink has to construct a layout tree, which would be used as an input to the paint phase. A layout tree is a tree whose node is LayoutObject, which points to Node in a node tree, plus additional calculated layout information.

Before the Web Platform got Shadow DOM, the structure of a layout tree is almost similar to the structure of a document tree; where only one node tree, document tree, is being involved there.

Since the Web Platform got Shadow DOM, we now have a composed tree which is composed of multiple node trees, instead of a single node tree. That means We have to flatten the composed tree to the one node tree, called a flat tree, from which a layout tree is constructed.

For example, given the following composed tree,

document
├── a1 (host)
   ├──/shadowRoot1
      └── b1
   └── a2 (host)
       ├──/shadowRoot2
          ├── c1
             ├── c2
             └── c3
          └── c4
       ├── a3
       └── a4
└── a5
    └── a6 (host)
        └──/shadowRoot3
            └── d1
                ├── d2
                ├── d3 (host)
                   └──/shadowRoot4
                       ├── e1
                       └── e2
                └── d4 (host)
                    └──/shadowRoot5
                        ├── f1
                        └── f2

This composed tree would be flattened into the following flat tree (assuming there are not <slot> elements there):

document
├── a1 (host)
   └── b1
└── a5
    └── a6 (host)
        └── d1
            ├── d2
            ├── d3 (host)
               ├── e1
               └── e2
            └── d4 (host)
                ├── f1
                └── f2

We can't explain the exact algorithm how to flatten a composed tree into a flat tree until I explain the concept of slots and node distribution If we are ignoring the effect of <slot>, we can have the following simple definition. A flat tree can be defined as:

  • A root of a flat tree: document
  • Given node A which is in a flat tree, its children are defined, recursively, as follows:
    • If A is a shadow host, its shadow root's children
    • Otherwise, A's children

Distribution and slots

TODO(hayato): Explain.

In the meantime, please see Incremental Shadow DOM.

FlatTreeTraversal

TODO(hayato): Explain.

DOM mutations

TODO(hayato): Explain.

Related flags

TODO(hayato): Explain.

Event path and Event Retargeting

TODO(hayato): Explain.