93 Commits

Author SHA1 Message Date
Hixie
4690f10d33 Specs: Yet Another Gesture Model (mark IV). This one handles
double-tap gestures, gestures being negotiated between different
levels of the ancestor chain, and gestures starting half-way through a
drag (but still not while hovered). Also, hopefully slightly more
usable API.

Review URL: https://codereview.chromium.org/880963005
2015-01-27 13:39:45 -08:00
Hixie
5f4d591690 Specs: Change event model to support default return values. Change
pointer event model to use registration of interested parties per
pointer rather than a capture model.

Review URL: https://codereview.chromium.org/873803003
2015-01-23 16:41:11 -08:00
Hixie
85322f13b3 Specs: Gestures Mark III -- handle how to have a gesture claim that it
is the real gesture, even if another is still a candidate; enumerate a
bunch of gestures; allow for event coallescing; allow for events that
get sent before picking a gesture

Review URL: https://codereview.chromium.org/872523002
2015-01-22 16:52:39 -08:00
Hixie
a9da8e9e9d Specs: Gestures API Mark II - on the path to supporting gestures that fire events after they're finished
Review URL: https://codereview.chromium.org/858353003
2015-01-21 16:43:13 -08:00
Hixie
a2dca047eb Specs: specced TapGesture, added some TODOs around events, and put in a placeholder for ScrollGesture.
Review URL: https://codereview.chromium.org/861013002
2015-01-20 17:25:11 -08:00
Hixie
7faaa34433 Specs: Gesture API framework
Review URL: https://codereview.chromium.org/819223005
2015-01-20 14:46:54 -08:00
Hixie
36c0a428a3 Specs: Text nodes can also be distributed, so getDestinationInsertionPoints() needs to be on Node, not Element.
Review URL: https://codereview.chromium.org/836433003
2015-01-14 16:16:42 -08:00
Hixie
9e6f594a73 Examples: move markAsLaidOut() to just before the return, so the asserts work
Specs: introduce layoutDescendants() to avoid work when a layout
manager is unaffected by its childrens' intrinsic dimensions
Examples: update for layoutDescendants() change
Specs: add "lifetime" to resolver settings so that a transition can
avoid having to dirty every consumer of the property every frame when
it only needs to update the objects that are changing that frame
Specs: expose the parents on AbstractStyleDeclarationList subclasses
Specs: fix documentation around autoreap
Specs: fix definition of setProperty()
Specs: clean up the dimension-related logic of layout managers

Review URL: https://codereview.chromium.org/850593003
2015-01-13 11:25:24 -08:00
Hixie
4589b77ef0 Specs and Docs: minor updates to fix mistakes I found when proof-reading
Review URL: https://codereview.chromium.org/845053002
2015-01-09 13:46:58 -08:00
Hixie
bb8b004928 Specs: try to import elements from module.exports as well as module.exports.*
Review URL: https://codereview.chromium.org/846523003
2015-01-08 11:34:17 -08:00
Hixie
4f7122c970 Specs: custom element constructor argument shouldn't clash with the module-global 'module' identifier
Review URL: https://codereview.chromium.org/829133003
2015-01-07 14:39:58 -08:00
Hixie
318dcf3b04 Specs: handle (in the parser) the case of an element constructor being
turned into something that doesn't inherit from Element, since JS lets
you do that kind of thing after registration

Review URL: https://codereview.chromium.org/829113003
2015-01-07 11:31:52 -08:00
Hixie
b050360f58 Specs: registerElement(registerElement(...)) failed to work as expected
Review URL: https://codereview.chromium.org/836153005
2015-01-06 13:23:04 -08:00
Hixie
521dca631a Specs: Move default layout manager stuff from default styles to getLayoutManager()
Specs: Make the StyleValueResolverSettings have a safer API for use in
chains of StyleValues.
Other sundry minor changes.

Review URL: https://codereview.chromium.org/836193002
2015-01-06 10:57:26 -08:00
Hixie
e499d36a13 Specs: Move the LayoutManager and RenderNode logic from Element to
Node since it is used by text nodes and document nodes as well.
Specs: Make it possible for an element to set what layout manager
class it uses.
Specs: Expose the root layout manager as mutable state.
Specs: Update the runloop to have more detail.
Specs: Add support for transitions, by making the resolver for a value
know when it has been called for the first time, and giving it access
to the previous cached value, and letting it store state on the render
node.
Other sundry changes.

Review URL: https://codereview.chromium.org/835973003
2015-01-05 14:33:42 -08:00
Hixie
baec01edaf Specs: Split apis.md into dom.md, events.md, idl.md, and move the remainder into README.md and modules.md
Specs: Add runloop.md stub.
Specs: Add animation.md stub.

Review URL: https://codereview.chromium.org/824773002
2014-12-22 11:27:47 -08:00
Hixie
a2b4ed2f1a Specs: Make isNew only get set if it's not added in the same frame as the owner layout manager
Review URL: https://codereview.chromium.org/817353003
2014-12-22 10:37:34 -08:00
Hixie
66d38c32d1 Specs: Allow for anonymous properties
Review URL: https://codereview.chromium.org/805293004
2014-12-19 15:47:09 -08:00
Hixie
a055bbfa6d Specs: Change from the every-frame-walk for animations on dead nodes to just relying on actual animation values and insert/remove notifications.
Review URL: https://codereview.chromium.org/810003003
2014-12-19 14:55:26 -08:00
Hixie
d26d27280b Specs: More cleanup around the proposed style model to make things more consistent.
Review URL: https://codereview.chromium.org/805083008
2014-12-18 16:12:03 -08:00
Hixie
a2b4ecd817 Specs: Revamp how styling works to make it possible
- for layout manager to animate things,
 - for elements to continue to live in the render tree after they've left the DOM,
 - to define custom units like 'em' for 'vh',
 - to define custom properties like 'font-size'...

(Examples haven't yet been updated.)

Review URL: https://codereview.chromium.org/810173002
2014-12-17 13:31:26 -08:00
Hixie
67697d635d Specs: Tentative approach for enabling removing/adding/moving children
to be animated in the old and new positions after the DOM is updated
(The "animation" part of this is still not figured out.)

Review URL: https://codereview.chromium.org/792993002
2014-12-10 11:15:54 -08:00
Hixie
b6e7ba2dfc Specs: Make pointer events go up the LayoutManager chain too; improve how you make custom event targets
Review URL: https://codereview.chromium.org/787603005
2014-12-09 11:12:06 -08:00
Hixie
a5652ef30c Specs: first draft at a more plausible StyleDeclarationList
Specs: add an accessor on Element to get the StyleNode so you can find
out information about it during event processing

Review URL: https://codereview.chromium.org/757843004
2014-12-04 16:16:38 -08:00
Hixie
260c29f783 Specs: revamp how 'primary' touches are handled, to support multiple simultaneous scroll surfaces being scrolled
Review URL: https://codereview.chromium.org/775403002
2014-12-04 11:39:39 -08:00
Hixie
29674cc510 Specs: some slight updates for styluses
Review URL: https://codereview.chromium.org/771603004
2014-12-04 10:51:29 -08:00
Ian Hickson
2c5ae40253 Specs: Maybe markdown wants four spaces? (I thought it was two.) 2014-12-01 17:14:21 -08:00
Hixie
fc7ee72b84 Specs: markdown cleanup harder
Review URL: https://codereview.chromium.org/730693007
2014-12-01 17:12:35 -08:00
Hixie
6ce21d7023 Specs: markdown cleanup
Review URL: https://codereview.chromium.org/772713002
2014-12-01 17:10:48 -08:00
Hixie
45e8700125 Specs: flesh out the UI events (touches, mice, stylus...)
Review URL: https://codereview.chromium.org/771853002
2014-12-01 17:08:11 -08:00
Hixie
d50ab23f05 Specs: missing frames in debug mode
Review URL: https://codereview.chromium.org/773683002
2014-12-01 17:06:32 -08:00
Hixie
cfd7bb0e9a Specs: clean up event listeners a bit. Drop the pointless
'preventDefault()', since that doesn't really do anything now. Clean
up how dispatchEvent() works. Add a 'handled' boolean that listeners
can check to see if they should ignore the event.

Review URL: https://codereview.chromium.org/752093003
2014-11-24 13:55:39 -08:00
Hixie
a6613e7ef2 Specs: Simplify the paint model. Now you are not responsible for
actually telling your child to paint, you just say where it would
paint. The platform then takes care of making sure all the dirty nodes
have their paint() methods called.

Review URL: https://codereview.chromium.org/744843003
2014-11-20 15:30:30 -08:00
Hixie
bf85d3516b Specs: the paint model where each node is responsible for its children
(I'm just updating this here so that I can revert to it if we decide
the hybrid model isn't better after all)

Review URL: https://codereview.chromium.org/743873003
2014-11-20 15:03:15 -08:00
Hixie
940276ed6f Specs: update the layout and paint schemes to match discussions better
Review URL: https://codereview.chromium.org/745863002
2014-11-20 13:58:53 -08:00
Hixie
39fb57b20b Specs: Make </> not pop the document itself off the stack, that would be crazy town
Review URL: https://codereview.chromium.org/723223003
2014-11-18 13:47:52 -08:00
Hixie
a580bd2a5c Specs: Make </> automatically close the last open tag, so you don't have to repeat yourself all the time
Review URL: https://codereview.chromium.org/733313003
2014-11-18 13:32:48 -08:00
Hixie
b759e21e94 Specs: Provide a debug-mode-only API to expose the Module objects imported by a Module, for use by the inspector
Review URL: https://codereview.chromium.org/743503002
2014-11-18 12:25:59 -08:00
Hixie
26f6f9d03b Specs: Define when needsLayout is reset (also, some unrelated markdown fixes)
Review URL: https://codereview.chromium.org/732243002
2014-11-17 15:43:31 -08:00
Hixie
1aed5c4006 Specs: Fix even more markdown errors
Review URL: https://codereview.chromium.org/731863006
2014-11-17 15:00:25 -08:00
Hixie
27346abb2c Specs: Fix more markdown errors
Review URL: https://codereview.chromium.org/730293002
2014-11-17 14:55:54 -08:00
Hixie
3d82c09a50 Specs: Fix markdown errors
Review URL: https://codereview.chromium.org/730273002
2014-11-17 14:54:01 -08:00
Hixie
17bad45153 Specs: lay groundwork for scrolling widget
BUG=

Review URL: https://codereview.chromium.org/734763002
2014-11-17 14:29:10 -08:00
Hixie
04ce86298f Specs: make sure all layout/paint/hitTest APIs are relative to the right coordinate space
Review URL: https://codereview.chromium.org/725203007
2014-11-17 13:55:45 -08:00
Hixie
93cca4aed1 Specs: default exports to {} rather than document, since it makes writing modules saner
Review URL: https://codereview.chromium.org/730223002
2014-11-17 13:08:09 -08:00
Hixie
2a1e17eeb3 Specs: hit testing (and some cleanup)
Review URL: https://codereview.chromium.org/727993002
2014-11-14 14:35:55 -08:00
Hixie
d91f4a7231 Specs: note one of the big problems with the current style system: that rule order isn't maintained
Review URL: https://codereview.chromium.org/730603003
2014-11-14 10:22:41 -08:00
Hixie
620087ab17 Specs: add a way to give layout managers alternative sets of properties so that they can make configurable layout-time decisions
Review URL: https://codereview.chromium.org/727873002
2014-11-14 10:20:00 -08:00
Hixie
5d20dd7eab Specs: Start documenting debug mode
Review URL: https://codereview.chromium.org/720333003
2014-11-13 14:10:16 -08:00
Hixie
096a10336d Specs: Make even the application scripts get 'module' as their local object, rather than 'application'
BUG=https://github.com/domokit/mojo/issues/23

Review URL: https://codereview.chromium.org/724093003
2014-11-13 14:08:06 -08:00