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

Issue 1513573013: Don't call LayoutPart::widgetPositionsUpdated unnecessarily. (Closed)

Created:
5 years ago by chrishtr
Modified:
5 years ago
Reviewers:
wkorman
CC:
blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't call LayoutPart::widgetPositionsUpdated unnecessarily. This reduces unnecessary geometry recomputation in WebPluginContainerImpl by a factor of two. BUG=555201 Committed: https://crrev.com/a86973e6a92be4540c7d1229e7b3be0148bafd2f Cr-Commit-Position: refs/heads/master@{#365340}

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -41 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.h View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 chunks +12 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutPart.h View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutPart.cpp View 1 2 3 3 chunks +5 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/Widget.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebPluginContainerImpl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebPluginContainerImpl.cpp View 1 2 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
chrishtr
When loading http://chrome.blogspot.com/2009/04/11-short-films-about-browser.html with this patch, the plugin geometry is recomputed 5 times instead of ...
5 years ago (2015-12-12 05:08:26 UTC) #3
chrishtr
https://codereview.chromium.org/1513573013/diff/20001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/1513573013/diff/20001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode1162 third_party/WebKit/Source/core/frame/FrameView.cpp:1162: if (wasUpdated[i]) This is the money line in this ...
5 years ago (2015-12-12 05:08:54 UTC) #4
wkorman
lgtm https://codereview.chromium.org/1513573013/diff/20001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/1513573013/diff/20001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode1156 third_party/WebKit/Source/core/frame/FrameView.cpp:1156: wasUpdated.resize(parts.size()); Can we initialize it with the right ...
5 years ago (2015-12-12 06:54:55 UTC) #5
chrishtr
The previous version of the CL was wrong. Even though the position of a widget ...
5 years ago (2015-12-14 22:58:34 UTC) #7
chrishtr
PTAL.
5 years ago (2015-12-14 22:58:47 UTC) #8
wkorman
lgtm https://codereview.chromium.org/1513573013/diff/80001/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp File third_party/WebKit/Source/web/WebPluginContainerImpl.cpp (left): https://codereview.chromium.org/1513573013/diff/80001/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp#oldcode108 third_party/WebKit/Source/web/WebPluginContainerImpl.cpp:108: reportGeometry(); So this was just spurious over-reporting, and ...
5 years ago (2015-12-14 23:22:10 UTC) #9
chrishtr
On 2015/12/14 at 23:22:10, wkorman wrote: > lgtm > > https://codereview.chromium.org/1513573013/diff/80001/third_party/WebKit/Source/web/WebPluginContainerImpl.cpp > File third_party/WebKit/Source/web/WebPluginContainerImpl.cpp (left): ...
5 years ago (2015-12-14 23:41:18 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1513573013/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1513573013/100001
5 years ago (2015-12-14 23:43:01 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/43320)
5 years ago (2015-12-15 00:02:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1513573013/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1513573013/120001
5 years ago (2015-12-15 19:22:54 UTC) #19
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years ago (2015-12-15 21:44:04 UTC) #20
commit-bot: I haz the power
5 years ago (2015-12-15 21:45:07 UTC) #22
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a86973e6a92be4540c7d1229e7b3be0148bafd2f
Cr-Commit-Position: refs/heads/master@{#365340}

Powered by Google App Engine
This is Rietveld 408576698