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

Issue 1894343002: DevTools: pretty-print HTML (Closed)

Created:
4 years, 8 months ago by lushnikov
Modified:
4 years, 8 months ago
Reviewers:
dgozman, pfeldman
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, pfeldman, sergeyv+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: pretty-print HTML The patch implements beautiful HTML pretty-printing. Apart from HTML pretty-printing, the patch starts applying JavaScript pretty-printer to the elements with appropriate JavaScript mime types. DISCLAIMER: due to the nature of HTML documents, a pretty-printed HTML document could be evaluated differently comparing to the original HTML. However, the point of pretty-printing here is to make code more readable and analyzible. BUG=none R=dgozman, pfeldman Committed: https://crrev.com/3106649df0f8298c9d2baa9823b171c6428897c5 Cr-Commit-Position: refs/heads/master@{#388382}

Patch Set 1 #

Total comments: 18

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+899 lines, -105 lines) Patch
M third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/linkifier.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/linkifier-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/script-formatter-breakpoints-1-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/script-formatter-breakpoints-4.html View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector-enabled/sources/debugger/script-formatter-console-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/pretty-print-css-expected.txt View 1 1 chunk +26 lines, -20 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/sources/pretty-print-html-1.html View 1 1 chunk +53 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/sources/pretty-print-html-1-expected.txt View 1 1 chunk +75 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/sources/pretty-print-html-2.html View 1 1 chunk +53 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/sources/pretty-print-html-2-expected.txt View 1 1 chunk +90 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/sources/pretty-print-html-3.html View 1 1 chunk +59 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/inspector/sources/pretty-print-html-3-expected.txt View 1 1 chunk +89 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/pretty-print-javascript-6-expected.txt View 1 1 chunk +16 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/formatter_worker/FormattedContentBuilder.js View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/formatter_worker/FormatterWorker.js View 2 chunks +2 lines, -33 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/formatter_worker/HTMLFormatter.js View 1 1 chunk +427 lines, -36 lines 0 comments Download

Messages

Total messages: 15 (6 generated)
lushnikov
ptal
4 years, 8 months ago (2016-04-18 23:50:38 UTC) #2
dgozman
lgtm https://codereview.chromium.org/1894343002/diff/1/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-html-1-expected.txt File third_party/WebKit/LayoutTests/inspector/sources/pretty-print-html-1-expected.txt (right): https://codereview.chromium.org/1894343002/diff/1/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-html-1-expected.txt#newcode52 third_party/WebKit/LayoutTests/inspector/sources/pretty-print-html-1-expected.txt:52: <canvas width=100 height=100></canvas> myattr="</canvas>" https://codereview.chromium.org/1894343002/diff/1/third_party/WebKit/LayoutTests/inspector/sources/pretty-print-html-2-expected.txt File third_party/WebKit/LayoutTests/inspector/sources/pretty-print-html-2-expected.txt (right): ...
4 years, 8 months ago (2016-04-19 01:55:03 UTC) #3
lushnikov
Thanks! The patch also fixed an issue (and added a test) with DOMModel building - ...
4 years, 8 months ago (2016-04-19 23:11:41 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1894343002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1894343002/20001
4 years, 8 months ago (2016-04-19 23:12:26 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-20 00:43:27 UTC) #9
ziyunfei
lushnikov: http://a1.alicdn.com/oss/uploads/2016/04/20/e199a420-06c7-11e6-a197-81ec8fbf21b9.html line 311 has a wrong indentation after pretty-printing http://img.alicdn.com/tfscom/TB19_XFMFXXXXaiXXXXwu0bFXXX.png
4 years, 8 months ago (2016-04-20 07:26:27 UTC) #10
lushnikov
On 2016/04/20 07:26:27, ziyunfei wrote: > lushnikov: > > http://a1.alicdn.com/oss/uploads/2016/04/20/e199a420-06c7-11e6-a197-81ec8fbf21b9.html > > line 311 has ...
4 years, 8 months ago (2016-04-20 08:15:33 UTC) #11
ziyunfei
On 2016/04/20 08:15:33, lushnikov wrote: > On 2016/04/20 07:26:27, ziyunfei wrote: > > lushnikov: > ...
4 years, 8 months ago (2016-04-20 10:53:40 UTC) #12
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:19:08 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3106649df0f8298c9d2baa9823b171c6428897c5
Cr-Commit-Position: refs/heads/master@{#388382}

Powered by Google App Engine
This is Rietveld 408576698