Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(882)

Unified Diff: sky/specs/pointer.md

Issue 940593003: Specs: clean up the last remaining mentions of documents (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/specs/parsing.md ('k') | sky/specs/style.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/pointer.md
diff --git a/sky/specs/pointer.md b/sky/specs/pointer.md
index d3a18c222baabe020ccb4d1c87c5bea061f81432..77adcff6c2664538bb71f701a504612a6bdec8c7 100644
--- a/sky/specs/pointer.md
+++ b/sky/specs/pointer.md
@@ -60,13 +60,15 @@ New touches and pointers can appear and disappear over time.
Each pointer has a list of current targets.
When a new one enters the system, a non-bubbling ``PointerAddedEvent``
-event is fired at the application's document, and the pointer's
-current targets list is initialised to just that Document object.
+event is fired at the application's element tree's root node, and the
+pointer's current targets list is initialised to just that Root
+object.
When it is removed, a non-bubbling ``PointerRemovedEvent`` event is
-fired at the application's document and at any other objects in the
-pointer's current targets list. Currently, at the time of a
-``PointerRemoved``, the list will always consist of only the document.
+fired at the application's element tree's root node and at any other
+objects in the pointer's current targets list. Currently, at the time
+of a ``PointerRemoved``, the list will always consist of only the
+application's element tree's root node.
A pointer can be "up" or "down". Initially all pointers are "up".
@@ -93,7 +95,7 @@ is run:
5. If result2 is not an array of EventTarget objects, set it to the
empty array and (if this is debug mode) report the issue.
6. Let result be the concatenation of result1's contents, result2's
- contents, and the application document.
+ contents, and the application's element tree's root node.
7. Let 'result' be this pointer's current targets.
When an object is one of the current targets of a pointer and no other
@@ -122,8 +124,9 @@ When a pointer switches from "down" to "up", a non-bubbling
targets in turn (maintaining the order they had in the
``PointerDownEvent`` event, if there's more than one), and then the
pointer's current target list is emptied except for the application's
-document. The buttons exposed on the ``PointerUpEvent`` event are
-those that were down immediately prior to the buttons being released.
+element tree's root node. The buttons exposed on the
+``PointerUpEvent`` event are those that were down immediately prior to
+the buttons being released.
At the time of a ``PointerUpEvent`` event, for each object that is a
current target of the pointer, and for which the pointer is considered
@@ -140,7 +143,7 @@ When a pointer is canceled, if it is "down", pretend that the pointer
moved to "up", sending ``PointerUpEvent`` as described above, and
entirely empty its current targets list. AFter the pointer actually
switches from "down" to "up", replace the current targets list with an
-object that only contains the application's document.
+object that only contains the application's element tree's root node.
Nothing special happens when a pointer's current target moves in the
DOM.
@@ -437,8 +440,8 @@ Wheel events
------------
When a wheel input device is turned, a ``WheelEvent`` event that
-doesn't bubble is fired at the application's document, with the
-following fields:
+doesn't bubble is fired at the application's element tree's root node,
+with the following fields:
wheel: an integer assigned to this wheel by the system. The
same wheel on the same system must always be given
« no previous file with comments | « sky/specs/parsing.md ('k') | sky/specs/style.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698