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

Issue 1033603007: Blink: Pass 'unobscured' rect to WebPlugins. (Closed)

Created:
5 years, 9 months ago by tommycli
Modified:
5 years, 9 months ago
CC:
blink-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Blink: Pass 'unobscured' rect to WebPlugins. This is to enable better throttling heuristics for plugins. The 'unobscured' rect of a plugin is the visible portion of the plugin. It is the same as the 'clip' rect, except it is not clipped to the root window viewport. That is to say - this still works for below-the-fold-plugins. BUG=468142 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192708

Patch Set 1 #

Patch Set 2 : Fix formatting #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : add change that allows blink roll #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Patch Set 8 : #

Total comments: 6

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -35 lines) Patch
M Source/core/frame/FrameView.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 8 2 chunks +19 lines, -4 lines 0 comments Download
M Source/web/WebPluginContainerImpl.h View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M Source/web/WebPluginContainerImpl.cpp View 1 2 3 4 5 6 7 8 3 chunks +18 lines, -25 lines 0 comments Download
M Source/web/tests/FakeWebPlugin.h View 1 chunk +1 line, -1 line 0 comments Download
M public/web/WebPlugin.h View 1 2 3 4 5 1 chunk +11 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
tommycli
piman/japhet: PTAL These are the changes piman suggested to allow plugins to get their 'unobscured' ...
5 years, 9 months ago (2015-03-24 23:27:21 UTC) #3
tommycli
Note: This changes a public Blink interface, and will require a corresponding update to all ...
5 years, 9 months ago (2015-03-24 23:29:17 UTC) #4
piman
https://codereview.chromium.org/1033603007/diff/40001/Source/web/WebPluginContainerImpl.cpp File Source/web/WebPluginContainerImpl.cpp (right): https://codereview.chromium.org/1033603007/diff/40001/Source/web/WebPluginContainerImpl.cpp#newcode984 Source/web/WebPluginContainerImpl.cpp:984: } clipRect and unobscuredRect aren't initialized in the else ...
5 years, 9 months ago (2015-03-24 23:59:21 UTC) #5
tommycli
piman: PTAL. I realize some chrome/ changes to handle the Youtube masthead correctly are still ...
5 years, 9 months ago (2015-03-25 20:18:35 UTC) #6
piman
lgtm https://codereview.chromium.org/1033603007/diff/80001/public/web/WebPlugin.h File public/web/WebPlugin.h (right): https://codereview.chromium.org/1033603007/diff/80001/public/web/WebPlugin.h#newcode101 public/web/WebPlugin.h:101: bool isVisible) { } nit: Maybe you can ...
5 years, 9 months ago (2015-03-25 20:38:51 UTC) #7
tommycli
japhet: PTAL piman: Thanks! https://codereview.chromium.org/1033603007/diff/80001/public/web/WebPlugin.h File public/web/WebPlugin.h (right): https://codereview.chromium.org/1033603007/diff/80001/public/web/WebPlugin.h#newcode101 public/web/WebPlugin.h:101: bool isVisible) { } On ...
5 years, 9 months ago (2015-03-25 21:51:40 UTC) #8
tommycli
On 2015/03/25 21:51:40, tommycli wrote: > japhet: PTAL > > piman: Thanks! > > https://codereview.chromium.org/1033603007/diff/80001/public/web/WebPlugin.h ...
5 years, 9 months ago (2015-03-25 22:01:13 UTC) #9
Nate Chapin
jchaffraix, are these FrameView changes in your domain? I'm not really qualified to review the ...
5 years, 9 months ago (2015-03-26 17:06:23 UTC) #11
tommycli
On 2015/03/26 17:06:23, Nate Chapin wrote: > jchaffraix, are these FrameView changes in your domain? ...
5 years, 9 months ago (2015-03-26 17:16:10 UTC) #12
Nate Chapin
On 2015/03/26 17:16:10, tommycli wrote: > On 2015/03/26 17:06:23, Nate Chapin wrote: > > jchaffraix, ...
5 years, 9 months ago (2015-03-26 17:30:13 UTC) #13
Julien - ping for review
The rectangle logic makes sense but less code duplication would make me a lot more ...
5 years, 9 months ago (2015-03-26 20:41:52 UTC) #14
tommycli
jchaffraix: See if this tickles your fancy better. The new method combines the previous two. ...
5 years, 9 months ago (2015-03-27 19:39:00 UTC) #15
Julien - ping for review
lgtm with comments https://codereview.chromium.org/1033603007/diff/140001/Source/core/frame/FrameView.cpp File Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/1033603007/diff/140001/Source/core/frame/FrameView.cpp#newcode2175 Source/core/frame/FrameView.cpp:2175: void FrameView::getClipRectsForFrameOwner(const HTMLFrameOwnerElement* ownerElement, IntRect* clipRect, ...
5 years, 9 months ago (2015-03-27 21:26:07 UTC) #16
tommycli
jchaffraix: I took your suggestions below. Thanks! These make this change look almost trivial, despite ...
5 years, 9 months ago (2015-03-27 22:42:51 UTC) #17
Julien - ping for review
lgtm, thanks for following-up!
5 years, 9 months ago (2015-03-28 00:18:41 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1033603007/160001
5 years, 9 months ago (2015-03-28 00:18:48 UTC) #21
commit-bot: I haz the power
5 years, 9 months ago (2015-03-28 01:40:16 UTC) #22
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192708

Powered by Google App Engine
This is Rietveld 408576698