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

Issue 2848823005: Clear the PrintContext in WebLocalFrameImpl::Close(). (Closed)

Created:
3 years, 7 months ago by Lei Zhang
Modified:
3 years, 7 months ago
Reviewers:
haraken
CC:
chromium-reviews, blink-reviews, kinuko+watch, dcheng
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Clear the PrintContext in WebLocalFrameImpl::Close(). Also explicitly call PrintContext::EndPrintMode(), rather than calling it in the destructor. Add a ScopedPrintMode helper class to do that conveniently. BUG=716474 Review-Url: https://codereview.chromium.org/2848823005 Cr-Commit-Position: refs/heads/master@{#468882} Committed: https://chromium.googlesource.com/chromium/src/+/85b7d7b31f25da2481ab2fa569c7b37a42abdeb6

Patch Set 1 #

Patch Set 2 : Explicitly call EndPrintMode #

Patch Set 3 : Fix tests #

Patch Set 4 : ScopedPrintMode #

Total comments: 2

Patch Set 5 : ScopedPrintContext #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -52 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp View 1 2 1 chunk +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/page/PrintContext.h View 1 2 3 4 5 chunks +19 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/page/PrintContext.cpp View 1 2 3 4 9 chunks +49 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/core/page/PrintContextTest.cpp View 1 6 chunks +8 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 36 (25 generated)
Lei Zhang
3 years, 7 months ago (2017-04-29 16:34:53 UTC) #6
haraken
This CL looks good, but to make it clearer that EndPrintMode() is never called for ...
3 years, 7 months ago (2017-04-29 16:38:46 UTC) #7
dcheng
On 2017/04/29 16:38:46, haraken wrote: > This CL looks good, but to make it clearer ...
3 years, 7 months ago (2017-04-30 22:44:42 UTC) #16
Lei Zhang
On 2017/04/30 22:44:42, dcheng (OOO through May 2) wrote: > On 2017/04/29 16:38:46, haraken wrote: ...
3 years, 7 months ago (2017-04-30 23:32:18 UTC) #19
haraken
https://codereview.chromium.org/2848823005/diff/80001/third_party/WebKit/Source/core/page/PrintContext.cpp File third_party/WebKit/Source/core/page/PrintContext.cpp (right): https://codereview.chromium.org/2848823005/diff/80001/third_party/WebKit/Source/core/page/PrintContext.cpp#newcode217 third_party/WebKit/Source/core/page/PrintContext.cpp:217: ScopedPrintMode(&print_context, page_rect.Width(), page_rect.Height()); Would it be simpler to create ...
3 years, 7 months ago (2017-05-01 00:21:17 UTC) #21
Lei Zhang
https://codereview.chromium.org/2848823005/diff/80001/third_party/WebKit/Source/core/page/PrintContext.cpp File third_party/WebKit/Source/core/page/PrintContext.cpp (right): https://codereview.chromium.org/2848823005/diff/80001/third_party/WebKit/Source/core/page/PrintContext.cpp#newcode217 third_party/WebKit/Source/core/page/PrintContext.cpp:217: ScopedPrintMode(&print_context, page_rect.Width(), page_rect.Height()); On 2017/05/01 00:21:16, haraken wrote: > ...
3 years, 7 months ago (2017-05-01 03:18:27 UTC) #26
haraken
On 2017/05/01 03:18:27, Lei Zhang (OOO May Day) wrote: > https://codereview.chromium.org/2848823005/diff/80001/third_party/WebKit/Source/core/page/PrintContext.cpp > File third_party/WebKit/Source/core/page/PrintContext.cpp (right): ...
3 years, 7 months ago (2017-05-01 08:11:29 UTC) #29
Lei Zhang
On 2017/05/01 08:11:29, haraken wrote: > What error are you hitting? PS5 seems passing all ...
3 years, 7 months ago (2017-05-02 18:33:42 UTC) #30
haraken
LGTM
3 years, 7 months ago (2017-05-03 00:59:54 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2848823005/100001
3 years, 7 months ago (2017-05-03 01:28:34 UTC) #33
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 03:08:24 UTC) #36
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/85b7d7b31f25da2481ab2fa569c7...

Powered by Google App Engine
This is Rietveld 408576698