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

Issue 180933002: combine script extractor and import inliner (Closed)

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

Description

[polymer] combine script extractor and import inliner The goal is to ensure we aren't processing HTML files that aren't reachable from the entry point(s). R=sigmund@google.com Committed: https://code.google.com/p/dart/source/detail?r=33145

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 1

Patch Set 3 : refactor #

Total comments: 14

Patch Set 4 : #

Patch Set 5 : #

Total comments: 3

Patch Set 6 : fix multiple linked scripts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+503 lines, -308 lines) Patch
D pkg/polymer/lib/src/build/code_extractor.dart View 1 1 chunk +0 lines, -83 lines 0 comments Download
M pkg/polymer/lib/src/build/common.dart View 1 3 chunks +36 lines, -16 lines 0 comments Download
M pkg/polymer/lib/src/build/import_inliner.dart View 1 2 3 4 5 12 chunks +161 lines, -61 lines 0 comments Download
M pkg/polymer/lib/src/build/script_compactor.dart View 1 4 chunks +3 lines, -21 lines 0 comments Download
M pkg/polymer/lib/transformer.dart View 1 2 chunks +4 lines, -3 lines 0 comments Download
M pkg/polymer/test/build/all_phases_test.dart View 1 2 3 4 5 6 chunks +21 lines, -7 lines 0 comments Download
A pkg/polymer/test/build/code_extractor.dart View 1 2 3 4 5 1 chunk +230 lines, -0 lines 0 comments Download
D pkg/polymer/test/build/code_extractor_test.dart View 1 chunk +0 lines, -112 lines 0 comments Download
M pkg/polymer/test/build/common.dart View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/polymer/test/build/import_inliner_test.dart View 1 2 3 4 5 4 chunks +45 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Jennifer Messerly
This is mainly to avoid ~300 HTML files being processed unnecessarily. (we may also want ...
6 years, 10 months ago (2014-02-26 02:38:55 UTC) #1
Jennifer Messerly
https://codereview.chromium.org/180933002/diff/20001/pkg/polymer/lib/src/build/import_inliner.dart File pkg/polymer/lib/src/build/import_inliner.dart (right): https://codereview.chromium.org/180933002/diff/20001/pkg/polymer/lib/src/build/import_inliner.dart#newcode157 pkg/polymer/lib/src/build/import_inliner.dart:157: bool _extractScripts(Document document, {bool htmlImport: false}) { Meshing together ...
6 years, 10 months ago (2014-02-26 02:43:01 UTC) #2
Jennifer Messerly
Okay, done changing. Read for you take a look :) https://codereview.chromium.org/180933002/diff/40001/pkg/polymer/lib/src/build/import_inliner.dart File pkg/polymer/lib/src/build/import_inliner.dart (right): https://codereview.chromium.org/180933002/diff/40001/pkg/polymer/lib/src/build/import_inliner.dart#newcode173 ...
6 years, 10 months ago (2014-02-26 03:04:45 UTC) #3
Siggi Cherem (dart-lang)
very nice. Minor comments below... https://codereview.chromium.org/180933002/diff/40001/pkg/polymer/lib/src/build/import_inliner.dart File pkg/polymer/lib/src/build/import_inliner.dart (right): https://codereview.chromium.org/180933002/diff/40001/pkg/polymer/lib/src/build/import_inliner.dart#newcode163 pkg/polymer/lib/src/build/import_inliner.dart:163: // others are already ...
6 years, 9 months ago (2014-02-26 22:27:09 UTC) #4
Jennifer Messerly
PTAL https://codereview.chromium.org/180933002/diff/40001/pkg/polymer/lib/src/build/import_inliner.dart File pkg/polymer/lib/src/build/import_inliner.dart (right): https://codereview.chromium.org/180933002/diff/40001/pkg/polymer/lib/src/build/import_inliner.dart#newcode163 pkg/polymer/lib/src/build/import_inliner.dart:163: // others are already removed by _extractInlineScripts On ...
6 years, 9 months ago (2014-02-27 22:31:40 UTC) #5
Jennifer Messerly
https://codereview.chromium.org/180933002/diff/80001/pkg/polymer/lib/src/build/import_inliner.dart File pkg/polymer/lib/src/build/import_inliner.dart (right): https://codereview.chromium.org/180933002/diff/80001/pkg/polymer/lib/src/build/import_inliner.dart#newcode309 pkg/polymer/lib/src/build/import_inliner.dart:309: var primaryId = transform.primaryInput.id; fyi -- this was the ...
6 years, 9 months ago (2014-02-27 22:32:19 UTC) #6
Siggi Cherem (dart-lang)
https://codereview.chromium.org/180933002/diff/40001/pkg/polymer/lib/src/build/import_inliner.dart File pkg/polymer/lib/src/build/import_inliner.dart (right): https://codereview.chromium.org/180933002/diff/40001/pkg/polymer/lib/src/build/import_inliner.dart#newcode201 pkg/polymer/lib/src/build/import_inliner.dart:201: script.attributes['src'] = src = '$filename.$count.dart'; On 2014/02/27 22:31:40, John ...
6 years, 9 months ago (2014-02-28 01:26:45 UTC) #7
Jennifer Messerly
PTYAL (Please Take Yet Another Look) https://codereview.chromium.org/180933002/diff/40001/pkg/polymer/lib/src/build/import_inliner.dart File pkg/polymer/lib/src/build/import_inliner.dart (right): https://codereview.chromium.org/180933002/diff/40001/pkg/polymer/lib/src/build/import_inliner.dart#newcode201 pkg/polymer/lib/src/build/import_inliner.dart:201: script.attributes['src'] = src ...
6 years, 9 months ago (2014-02-28 02:21:49 UTC) #8
Siggi Cherem (dart-lang)
L GGG TTT M M L G T MM MM L G G T M ...
6 years, 9 months ago (2014-02-28 02:33:25 UTC) #9
Siggi Cherem (dart-lang)
(lgtm so rietveld can show the nice green color band too)
6 years, 9 months ago (2014-02-28 02:33:57 UTC) #10
Jennifer Messerly
6 years, 9 months ago (2014-02-28 02:50:10 UTC) #11
Message was sent while issue was closed.
Committed patchset #6 manually as r33145 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698