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

Issue 12754013: Adding an inheriting data model to Node (Closed)

Created:
7 years, 9 months ago by blois
Modified:
7 years, 9 months ago
CC:
reviews_dartlang.org, sra1
Visibility:
Public.

Description

Adding a model property to Node which is inherited through the tree. This only works for trees which are in the document, but when a tree is added to the document everything should just 'start working'. This should work on all browsers (tested on Chrome, FF and IE9). Not sure about performance impact on large trees and lots of bindings (balance between optimizing for lots of bindings or lots of elements, few bindings), but it should not impact anything if models are not used. BUG= Committed: https://code.google.com/p/dart/source/detail?r=20104

Patch Set 1 : #

Total comments: 18

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+709 lines, -0 lines) Patch
M sdk/lib/html/dart2js/html_dart2js.dart View 2 chunks +179 lines, -0 lines 1 comment Download
M sdk/lib/html/dartium/html_dartium.dart View 2 chunks +179 lines, -0 lines 0 comments Download
A tests/html/node_model_test.dart View 1 2 1 chunk +169 lines, -0 lines 0 comments Download
A tools/dom/src/ModelTreeObserver.dart View 1 2 1 chunk +100 lines, -0 lines 0 comments Download
M tools/dom/templates/html/dart2js/html_dart2js.darttemplate View 1 chunk +1 line, -0 lines 0 comments Download
M tools/dom/templates/html/dartium/html_dartium.darttemplate View 1 chunk +1 line, -0 lines 0 comments Download
M tools/dom/templates/html/impl/impl_Node.darttemplate View 1 2 1 chunk +80 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
blois
7 years, 9 months ago (2013-03-14 22:05:54 UTC) #1
Jennifer Messerly
This is looking great. Sooooo cool to see the start of real MDV for Dart ...
7 years, 9 months ago (2013-03-15 03:20:46 UTC) #2
blois
https://codereview.chromium.org/12754013/diff/4001/tools/dom/src/ModelTreeObserver.dart File tools/dom/src/ModelTreeObserver.dart (right): https://codereview.chromium.org/12754013/diff/4001/tools/dom/src/ModelTreeObserver.dart#newcode72 tools/dom/src/ModelTreeObserver.dart:72: if (node._hasLocalModel != true && node._model != model && ...
7 years, 9 months ago (2013-03-15 18:26:05 UTC) #3
Jennifer Messerly
LGTM! Agree we can keep interesting in follow ups. Would be awesome to get this ...
7 years, 9 months ago (2013-03-15 18:49:21 UTC) #4
Jacob
https://codereview.chromium.org/12754013/diff/4001/tools/dom/src/ModelTreeObserver.dart File tools/dom/src/ModelTreeObserver.dart (right): https://codereview.chromium.org/12754013/diff/4001/tools/dom/src/ModelTreeObserver.dart#newcode17 tools/dom/src/ModelTreeObserver.dart:17: What about when there are true shadow DOMs on ...
7 years, 9 months ago (2013-03-15 18:50:19 UTC) #5
blois
https://codereview.chromium.org/12754013/diff/4001/tools/dom/src/ModelTreeObserver.dart File tools/dom/src/ModelTreeObserver.dart (right): https://codereview.chromium.org/12754013/diff/4001/tools/dom/src/ModelTreeObserver.dart#newcode17 tools/dom/src/ModelTreeObserver.dart:17: On 2013/03/15 18:50:19, Jacob wrote: > What about when ...
7 years, 9 months ago (2013-03-15 20:14:10 UTC) #6
blois
Committed patchset #3 manually as r20104 (presubmit successful).
7 years, 9 months ago (2013-03-15 20:23:37 UTC) #7
ngeoffray
7 years, 9 months ago (2013-03-15 21:09:49 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/12754013/diff/26001/sdk/lib/html/dart2js/html...
File sdk/lib/html/dart2js/html_dart2js.dart (right):

https://codereview.chromium.org/12754013/diff/26001/sdk/lib/html/dart2js/html...
sdk/lib/html/dart2js/html_dart2js.dart:17747: +  var _model;
FYI: dart2js is not happy with a field typed as var, as it now thinks anything
can be instantiated.

Powered by Google App Engine
This is Rietveld 408576698