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

Issue 2804983003: [blink] Use early returns in baseBackgroundColor(Override) setters. (Closed)

Created:
3 years, 8 months ago by Eric Seckler
Modified:
3 years, 8 months ago
Reviewers:
chrishtr
CC:
blink-reviews, blink-reviews-frames_chromium.org, chromium-reviews, dcheng, kinuko+watch, mlamouri+watch-blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[blink] Use early returns in baseBackgroundColor(Override) setters. The patch adds early outs for set/clearBaseBackgroundColorOverride and FrameView::setBaseBackgroundColor to avoid unnecessary updates. It also adds a missing lifecycle update to the setters in WebFrameWidgetImpl, which may otherwise lead to crashes in isAllowedToQueryCompositingState(). BUG=689349 Review-Url: https://codereview.chromium.org/2804983003 Cr-Commit-Position: refs/heads/master@{#463127} Committed: https://chromium.googlesource.com/chromium/src/+/d374c7111b60395ad0a715f5e1c0ddbb41c802af

Patch Set 1 #

Total comments: 5

Patch Set 2 : Revert compositing update fix, keep other changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -0 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp View 1 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (15 generated)
Eric Seckler
Chris, PTAL. I believe we don't need any of the previous compositedLayerMapping updates if we ...
3 years, 8 months ago (2017-04-06 11:03:46 UTC) #5
chrishtr
https://codereview.chromium.org/2804983003/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (left): https://codereview.chromium.org/2804983003/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp#oldcode2353 third_party/WebKit/Source/core/frame/FrameView.cpp:2353: compositedLayerMapping->mainGraphicsLayer()->setNeedsDisplay(); You still need setNeedsDisplay in order to force ...
3 years, 8 months ago (2017-04-06 17:33:46 UTC) #8
chrishtr
Also - this needs a test.
3 years, 8 months ago (2017-04-06 17:34:04 UTC) #9
Eric Seckler
On 2017/04/06 17:34:04, chrishtr wrote: > Also - this needs a test. Do you have ...
3 years, 8 months ago (2017-04-06 17:40:29 UTC) #10
chrishtr
On 2017/04/06 at 17:40:29, eseckler wrote: > On 2017/04/06 17:34:04, chrishtr wrote: > > Also ...
3 years, 8 months ago (2017-04-06 17:42:38 UTC) #11
chrishtr
https://codereview.chromium.org/2804983003/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2804983003/diff/1/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode163 third_party/WebKit/Source/core/frame/FrameView.cpp:163: static void setNeedsCompositingUpdate(LayoutViewItem layoutViewItem, On 2017/04/06 at 17:40:29, Eric ...
3 years, 8 months ago (2017-04-06 17:42:53 UTC) #12
Eric Seckler
Removed the call to setNeedsCompositingUpdate again and repurposed the patch -- PTAL :)
3 years, 8 months ago (2017-04-07 17:07:07 UTC) #16
chrishtr
lgtm
3 years, 8 months ago (2017-04-07 17:10:26 UTC) #18
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/2804983003/20001
3 years, 8 months ago (2017-04-08 06:59:09 UTC) #22
commit-bot: I haz the power
3 years, 8 months ago (2017-04-08 07:06:41 UTC) #25
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/d374c7111b60395ad0a715f5e1c0...

Powered by Google App Engine
This is Rietveld 408576698