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

Issue 2802903002: Move PrintBrowser from SPV2 to SPV1 (Closed)

Created:
3 years, 8 months ago by nainar
Modified:
3 years, 8 months ago
Reviewers:
pdr.
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, kinuko+watch, Lei Zhang
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move PrintBrowser from SPV2 to SPV1 This patch removed the dependancy of PrintBrowser on SPV2 and moves it over to stable SPV1. CL for SPV2 here: https://codereview.chromium.org/2672983003 Design Doc here: https://docs.google.com/document/d/1G2RoH7yiwh_vosEHsHTwqETBvt2ij8p9ov0D3kIz4ww/edit BUG=699518 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2802903002 Cr-Commit-Position: refs/heads/master@{#464875} Committed: https://chromium.googlesource.com/chromium/src/+/aca9ff5295e91d1bba92e50285bf1ee2893de5e4

Patch Set 1 #

Patch Set 2 : Only call PrintContext::end() if we are exiting Print mode not PrintBrowser mode #

Total comments: 2

Patch Set 3 : In the case of PrintBrowser PrintContext::end should not relayout. It should retain layout as is. #

Total comments: 4

Patch Set 4 : Clear the PrintContext when disposing of the FrameView #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -2 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/TextPainter.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/RuntimeEnabledFeatures.json5 View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 32 (19 generated)
nainar
pdr, Could you PTAL?
3 years, 8 months ago (2017-04-06 19:42:56 UTC) #9
pdr.
On 2017/04/06 at 19:42:56, nainar wrote: > pdr, > > Could you PTAL? LGTM
3 years, 8 months ago (2017-04-10 00:20:09 UTC) #14
pdr.
https://codereview.chromium.org/2802903002/diff/20001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (left): https://codereview.chromium.org/2802903002/diff/20001/third_party/WebKit/Source/core/frame/FrameView.cpp#oldcode2969 third_party/WebKit/Source/core/frame/FrameView.cpp:2969: m_printContext->end(); Did you mean to remove this? I think ...
3 years, 8 months ago (2017-04-10 00:24:34 UTC) #15
nainar
Hi pdr, Taking a look at the LocalFrame::SetPrinting() code we shouldn't be "relayouting" the code ...
3 years, 8 months ago (2017-04-14 21:23:58 UTC) #16
pdr.
https://codereview.chromium.org/2802903002/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp File third_party/WebKit/Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/2802903002/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp#newcode603 third_party/WebKit/Source/core/frame/LocalFrame.cpp:603: } else if (!RuntimeEnabledFeatures::printBrowserEnabled()) { I see what you ...
3 years, 8 months ago (2017-04-14 23:28:04 UTC) #17
nainar
https://codereview.chromium.org/2802903002/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp File third_party/WebKit/Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/2802903002/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp#newcode603 third_party/WebKit/Source/core/frame/LocalFrame.cpp:603: } else if (!RuntimeEnabledFeatures::printBrowserEnabled()) { On 2017/04/14 at 23:28:04, ...
3 years, 8 months ago (2017-04-14 23:43:33 UTC) #18
pdr.
https://codereview.chromium.org/2802903002/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp File third_party/WebKit/Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/2802903002/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp#newcode603 third_party/WebKit/Source/core/frame/LocalFrame.cpp:603: } else if (!RuntimeEnabledFeatures::printBrowserEnabled()) { On 2017/04/14 at 23:43:33, ...
3 years, 8 months ago (2017-04-14 23:54:00 UTC) #19
nainar
https://codereview.chromium.org/2802903002/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp File third_party/WebKit/Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/2802903002/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp#newcode603 third_party/WebKit/Source/core/frame/LocalFrame.cpp:603: } else if (!RuntimeEnabledFeatures::printBrowserEnabled()) { On 2017/04/14 at 23:54:00, ...
3 years, 8 months ago (2017-04-15 00:13:45 UTC) #20
pdr.
I think this is a lifetime bug--we're destroying the FrameView that owns the print context, ...
3 years, 8 months ago (2017-04-15 01:28:36 UTC) #21
nainar
On 2017/04/15 at 01:28:36, pdr wrote: > I think this is a lifetime bug--we're destroying ...
3 years, 8 months ago (2017-04-15 04:06:55 UTC) #24
pdr.
LGTM
3 years, 8 months ago (2017-04-15 22:39:50 UTC) #27
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/2802903002/60001
3 years, 8 months ago (2017-04-15 23:32:55 UTC) #29
commit-bot: I haz the power
3 years, 8 months ago (2017-04-16 00:40:48 UTC) #32
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/aca9ff5295e91d1bba92e50285bf...

Powered by Google App Engine
This is Rietveld 408576698