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

Issue 1672073003: Shunt string-dumping functions from WebFrame to a side class. (Closed)

Created:
4 years, 10 months ago by dglazkov
Modified:
4 years, 10 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dcheng, dglazkov+blink, jam, jochen+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-blink_chromium.org, mlamouri+watch-test-runner_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Shunt string-dumping functions from WebFrame to a side class. Functions like contentAsText, contentAsMarkup, and layoutTreeAsText did not seem like they belong on the WebFrame (especially in the OOPIF world), so I moved them over to a special utility class, called WebFrameContentDumper. This allowed to remove a few virtual stubs from a WebFrame subclasses and made it more clear that these methods are mostly suitable for testing. Also caught http://crbug.com/584798 in the process. Ideally, no production code should be using WebFrameContentDumper. But that's another story for another day. Also removed markerTextForListItem, which doesn't seem to be used by anything. R=jochen@chromium.org,nasko BUG= Committed: https://crrev.com/032234908562551b3d774c99a4e4498b3ec6d44d Cr-Commit-Position: refs/heads/master@{#374201}

Patch Set 1 #

Patch Set 2 : Fix compile. #

Patch Set 3 : Whoops, exports. #

Total comments: 2

Patch Set 4 : Added/updated TODOs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -213 lines) Patch
M chrome/renderer/chrome_render_frame_observer.cc View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M components/test_runner/layout_dump.cc View 3 chunks +15 lines, -9 lines 0 comments Download
M content/renderer/render_view_browsertest.cc View 1 10 chunks +23 lines, -14 lines 0 comments Download
M content/renderer/render_view_browsertest_mac.mm View 1 5 chunks +11 lines, -4 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 3 chunks +14 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/web/WebFrameContentDumper.cpp View 1 1 chunk +112 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 chunks +0 lines, -96 lines 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.h View 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp View 1 chunk +0 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 18 chunks +23 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/web.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/blink_headers.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrame.h View 2 chunks +0 lines, -29 lines 0 comments Download
A third_party/WebKit/public/web/WebFrameContentDumper.h View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672073003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672073003/1
4 years, 10 months ago (2016-02-06 01:14:49 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/155339) linux_chromium_rel_ng on ...
4 years, 10 months ago (2016-02-06 01:28:57 UTC) #4
dglazkov
Fix compile.
4 years, 10 months ago (2016-02-06 05:25:43 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672073003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672073003/20001
4 years, 10 months ago (2016-02-06 05:25:55 UTC) #7
dglazkov
Whoops, exports.
4 years, 10 months ago (2016-02-06 05:45:51 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672073003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672073003/40001
4 years, 10 months ago (2016-02-06 05:46:36 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-06 06:49:18 UTC) #12
dglazkov
PTAL.
4 years, 10 months ago (2016-02-06 18:00:23 UTC) #13
jam
lgtm https://codereview.chromium.org/1672073003/diff/40001/third_party/WebKit/public/web/WebFrameContentDumper.h File third_party/WebKit/public/web/WebFrameContentDumper.h (right): https://codereview.chromium.org/1672073003/diff/40001/third_party/WebKit/public/web/WebFrameContentDumper.h#newcode16 third_party/WebKit/public/web/WebFrameContentDumper.h:16: // testing purposes. having this comment not match ...
4 years, 10 months ago (2016-02-08 18:09:54 UTC) #17
dglazkov
https://codereview.chromium.org/1672073003/diff/40001/third_party/WebKit/public/web/WebFrameContentDumper.h File third_party/WebKit/public/web/WebFrameContentDumper.h (right): https://codereview.chromium.org/1672073003/diff/40001/third_party/WebKit/public/web/WebFrameContentDumper.h#newcode16 third_party/WebKit/public/web/WebFrameContentDumper.h:16: // testing purposes. On 2016/02/08 at 18:09:54, jam wrote: ...
4 years, 10 months ago (2016-02-08 18:14:52 UTC) #18
dglazkov
Added/updated TODOs.
4 years, 10 months ago (2016-02-08 18:55:17 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672073003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672073003/60001
4 years, 10 months ago (2016-02-08 18:56:26 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-08 21:46:59 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1672073003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1672073003/60001
4 years, 10 months ago (2016-02-08 21:58:15 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-02-08 22:16:11 UTC) #27
commit-bot: I haz the power
4 years, 10 months ago (2016-02-08 22:18:15 UTC) #29
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/032234908562551b3d774c99a4e4498b3ec6d44d
Cr-Commit-Position: refs/heads/master@{#374201}

Powered by Google App Engine
This is Rietveld 408576698