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

Issue 158083002: introduce web_components pkg for consolidated polyfills (Closed)

Created:
6 years, 10 months ago by Jennifer Messerly
Modified:
6 years, 10 months ago
CC:
reviews_dartlang.org, blois, sethladd
Visibility:
Public.

Description

introduce web_components pkg to replace shadow_dom, html_import, custom_element. This new package is 100% compatible with the polyfills used by http://www.polymer-project.org/ Deletes: pkg/shadow_dom pkg/custom_element (except web_ui stuff) pkg/html_import Adds: pkg/web_components, with README.md and build instructions Changes: pkg/html5lib -- deprecate queryAll/query in favor of *Selector pkg/polymer -- test fixes & a few small changes to work with new polyfills, mostly in build tests/html/custom -- can't load the CE polyfill at runtime, must now be injected statically via an HTML page, similar to the style @blois used for some custom element tests. R=blois@google.com, sigmund@google.com Committed: https://code.google.com/p/dart/source/detail?r=32533

Patch Set 1 #

Total comments: 27

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17510 lines, -10936 lines) Patch
D pkg/custom_element/REVISION View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
D pkg/custom_element/lib/custom-elements.debug.js View 1 2 3 1 chunk +0 lines, -1521 lines 0 comments Download
D pkg/custom_element/lib/custom-elements.min.js View 1 2 3 1 chunk +0 lines, -28 lines 0 comments Download
D pkg/custom_element/lib/polyfill.dart View 1 2 3 1 chunk +0 lines, -63 lines 0 comments Download
M pkg/custom_element/pubspec.yaml View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download
M pkg/docgen/bin/dartdoc.py View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
D pkg/html_import/LICENSE View 1 2 3 1 chunk +0 lines, -26 lines 0 comments Download
D pkg/html_import/README.md View 1 2 3 1 chunk +0 lines, -43 lines 0 comments Download
D pkg/html_import/lib/html_import.debug.js View 1 2 3 1 chunk +0 lines, -36 lines 0 comments Download
D pkg/html_import/lib/html_import.min.js View 1 2 3 1 chunk +0 lines, -28 lines 0 comments Download
D pkg/html_import/lib/src/HTMLImports.js View 1 2 3 1 chunk +0 lines, -423 lines 0 comments Download
D pkg/html_import/lib/src/Parser.js View 1 2 3 1 chunk +0 lines, -107 lines 0 comments Download
D pkg/html_import/lib/src/boot.js View 1 2 3 1 chunk +0 lines, -37 lines 0 comments Download
D pkg/html_import/lib/tools/loader/loader.js View 1 2 3 1 chunk +0 lines, -101 lines 0 comments Download
D pkg/html_import/pubspec.yaml View 1 2 3 1 chunk +0 lines, -11 lines 0 comments Download
M pkg/pkg.status View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M pkg/polymer/CHANGELOG.md View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M pkg/polymer/lib/builder.dart View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M pkg/polymer/lib/deploy.dart View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M pkg/polymer/lib/polymer.dart View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M pkg/polymer/lib/src/boot.dart View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M pkg/polymer/lib/src/build/linter.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/polymer/lib/src/build/polyfill_injector.dart View 1 2 3 4 chunks +15 lines, -23 lines 0 comments Download
M pkg/polymer/lib/src/build/runner.dart View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/polymer/lib/src/declaration.dart View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download
M pkg/polymer/pubspec.yaml View 1 2 3 1 chunk +5 lines, -7 lines 0 comments Download
M pkg/polymer/test/bind_mdv_test.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A + pkg/polymer/test/bind_mdv_test.html View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M pkg/polymer/test/build/all_phases_test.dart View 1 2 3 4 chunks +4 lines, -8 lines 0 comments Download
M pkg/polymer/test/build/common.dart View 1 2 3 1 chunk +3 lines, -6 lines 0 comments Download
M pkg/polymer/test/build/polyfill_injector_test.dart View 1 2 3 3 chunks +3 lines, -5 lines 0 comments Download
M pkg/polymer/test/noscript_test.dart View 1 2 3 2 chunks +19 lines, -5 lines 0 comments Download
M pkg/polymer_expressions/pubspec.yaml View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
D pkg/shadow_dom/AUTHORS View 1 2 3 1 chunk +0 lines, -9 lines 0 comments Download
D pkg/shadow_dom/LICENSE View 1 2 3 1 chunk +0 lines, -27 lines 0 comments Download
D pkg/shadow_dom/PATENTS View 1 2 3 1 chunk +0 lines, -23 lines 0 comments Download
D pkg/shadow_dom/README.md View 1 2 3 1 chunk +0 lines, -100 lines 0 comments Download
D pkg/shadow_dom/REVISIONS View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
D pkg/shadow_dom/lib/shadow_dom.debug.js View 1 2 3 1 chunk +0 lines, -7551 lines 0 comments Download
D pkg/shadow_dom/lib/shadow_dom.min.js View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
D pkg/shadow_dom/lib/src/platform/patches-shadowdom-polyfill.js View 1 2 3 1 chunk +0 lines, -73 lines 0 comments Download
D pkg/shadow_dom/lib/src/platform/patches-shadowdom-polyfill-before.js View 1 2 3 1 chunk +0 lines, -13 lines 0 comments Download
D pkg/shadow_dom/lib/src/platform/platform-init.js View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
D pkg/shadow_dom/pubspec.yaml View 1 2 3 1 chunk +0 lines, -12 lines 0 comments Download
D pkg/shadow_dom/test/runner.html View 1 2 3 1 chunk +0 lines, -17 lines 0 comments Download
D pkg/shadow_dom/test/runner.min.html View 1 2 3 1 chunk +0 lines, -18 lines 0 comments Download
D pkg/shadow_dom/tool/README.md View 1 2 3 1 chunk +0 lines, -52 lines 0 comments Download
D pkg/shadow_dom/tool/build.json View 1 2 3 1 chunk +0 lines, -9 lines 0 comments Download
D pkg/shadow_dom/tool/build.sh View 1 2 3 1 chunk +0 lines, -45 lines 0 comments Download
D pkg/shadow_dom/tool/build/else.js View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
D pkg/shadow_dom/tool/build/end-if.js View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
D pkg/shadow_dom/tool/build/if-poly.js View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
D pkg/shadow_dom/tool/conf/karma.conf.js View 1 2 3 1 chunk +0 lines, -89 lines 0 comments Download
D pkg/shadow_dom/tool/conf/mocha.conf.js View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
D pkg/shadow_dom/tool/gruntfile.js View 1 2 3 1 chunk +0 lines, -114 lines 0 comments Download
D pkg/shadow_dom/tool/package.json View 1 2 3 1 chunk +0 lines, -16 lines 0 comments Download
D pkg/shadow_dom/tool/play.html View 1 2 3 1 chunk +0 lines, -39 lines 0 comments Download
D pkg/shadow_dom/tool/shadowdom.js View 1 2 3 1 chunk +0 lines, -44 lines 0 comments Download
M pkg/template_binding/test/custom_element_bindings_test.dart View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
A + pkg/template_binding/test/custom_element_bindings_test.html View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
A pkg/third_party/html5lib/CHANGELOG.md View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M pkg/third_party/html5lib/lib/dom.dart View 1 2 3 3 chunks +15 lines, -5 lines 0 comments Download
M pkg/third_party/html5lib/pubspec.yaml View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/third_party/html5lib/test/dom_test.dart View 1 2 3 1 chunk +6 lines, -6 lines 0 comments Download
M pkg/third_party/html5lib/test/parser_feature_test.dart View 1 2 3 8 chunks +10 lines, -10 lines 0 comments Download
M pkg/unittest/lib/test_controller.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + pkg/web_components/AUTHORS View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + pkg/web_components/LICENSE View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + pkg/web_components/PATENTS View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A pkg/web_components/README.md View 1 2 3 1 chunk +94 lines, -0 lines 0 comments Download
A pkg/web_components/lib/build.log View 1 2 3 1 chunk +48 lines, -0 lines 0 comments Download
A + pkg/web_components/lib/dart_support.js View 1 2 3 3 chunks +12 lines, -30 lines 0 comments Download
A pkg/web_components/lib/platform.js View 1 2 3 1 chunk +35 lines, -0 lines 0 comments Download
A pkg/web_components/lib/platform.concat.js View 1 2 3 1 chunk +16914 lines, -0 lines 0 comments Download
A pkg/web_components/lib/platform.concat.js.map View 1 2 3 1 chunk +192 lines, -0 lines 0 comments Download
A pkg/web_components/lib/platform.js.map View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A + pkg/web_components/lib/polyfill.dart View 1 2 3 3 chunks +13 lines, -14 lines 0 comments Download
A pkg/web_components/pubspec.yaml View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M samples/third_party/todomvc/test/mainpage_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M samples/third_party/todomvc/web/app/app.css View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M tests/html/custom/attribute_changed_callback_test.dart View 1 2 3 1 chunk +7 lines, -9 lines 0 comments Download
A + tests/html/custom/attribute_changed_callback_test.html View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M tests/html/custom/constructor_calls_created_synchronously_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + tests/html/custom/constructor_calls_created_synchronously_test.html View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M tests/html/custom/created_callback_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + tests/html/custom/created_callback_test.html View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M tests/html/custom/document_register_basic_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + tests/html/custom/document_register_basic_test.html View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M tests/html/custom/document_register_type_extensions_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + tests/html/custom/document_register_type_extensions_test.html View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M tests/html/custom/entered_left_view_test.dart View 1 2 3 2 chunks +5 lines, -16 lines 0 comments Download
M tests/html/custom/entered_left_view_test.html View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M tests/html/custom/js_custom_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + tests/html/custom/js_custom_test.html View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M tests/html/custom/mirrors_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + tests/html/custom/mirrors_test.html View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M tests/html/custom/template_wrappers_test.dart View 1 2 3 1 chunk +1 line, -8 lines 0 comments Download
M tests/html/custom/template_wrappers_test.html View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M tests/html/custom_elements_test.dart View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A + tests/html/custom_elements_test.html View 1 2 3 1 chunk +5 lines, -5 lines 0 comments Download
M tests/html/utils.dart View 1 2 3 2 chunks +1 line, -14 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Jennifer Messerly
Note: this change does not fix interop with <polymer-element> yet. That is for another CL ...
6 years, 10 months ago (2014-02-08 01:13:28 UTC) #1
blois
Changes lgtm https://codereview.chromium.org/158083002/diff/1/pkg/web_components/lib/polyfill.dart File pkg/web_components/lib/polyfill.dart (right): https://codereview.chromium.org/158083002/diff/1/pkg/web_components/lib/polyfill.dart#newcode52 pkg/web_components/lib/polyfill.dart:52: void customElementsTakeRecords() { This should only really ...
6 years, 10 months ago (2014-02-08 01:37:01 UTC) #2
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/158083002/diff/1/pkg/polymer/CHANGELOG.md File pkg/polymer/CHANGELOG.md (right): https://codereview.chromium.org/158083002/diff/1/pkg/polymer/CHANGELOG.md#newcode8 pkg/polymer/CHANGELOG.md:8: #### Pub version 0.10.0-dev maybe mention the fix ...
6 years, 10 months ago (2014-02-10 20:49:22 UTC) #3
Jennifer Messerly
PTAL! https://codereview.chromium.org/158083002/diff/1/pkg/polymer/CHANGELOG.md File pkg/polymer/CHANGELOG.md (right): https://codereview.chromium.org/158083002/diff/1/pkg/polymer/CHANGELOG.md#newcode8 pkg/polymer/CHANGELOG.md:8: #### Pub version 0.10.0-dev On 2014/02/10 20:49:23, Siggi ...
6 years, 10 months ago (2014-02-10 22:17:10 UTC) #4
Siggi Cherem (dart-lang)
lgtm! https://codereview.chromium.org/158083002/diff/1/pkg/web_components/README.md File pkg/web_components/README.md (right): https://codereview.chromium.org/158083002/diff/1/pkg/web_components/README.md#newcode68 pkg/web_components/README.md:68: [a patched version of CustomElements](https://github.com/dart-lang/CustomElements/tree/blink_tests). On 2014/02/10 22:17:11, ...
6 years, 10 months ago (2014-02-10 22:35:35 UTC) #5
Jennifer Messerly
6 years, 10 months ago (2014-02-11 01:15:39 UTC) #6
Message was sent while issue was closed.
Committed patchset #4 manually as r32533 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698