Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1990553002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1990553002/1
4 years, 7 months ago
(2016-05-17 20:02:45 UTC)
#2
PTAL https://codereview.chromium.org/1990553002/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1990553002/diff/1/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode2945 third_party/WebKit/Source/web/WebViewImpl.cpp:2945: if (element->isContentEditable()) Not loving this duplication. I can ...
4 years, 7 months ago
(2016-05-17 22:00:16 UTC)
#4
Description was changed from ========== Remove RenderViewImpl::GetFocusedElement. BUG=612570 ========== to ========== Remove RenderViewImpl::GetFocusedElement. R=esprehn BUG=612570 ...
4 years, 7 months ago
(2016-05-17 22:00:31 UTC)
#5
Description was changed from
==========
Remove RenderViewImpl::GetFocusedElement.
BUG=612570
==========
to
==========
Remove RenderViewImpl::GetFocusedElement.
R=esprehn
BUG=612570
==========
esprehn
https://codereview.chromium.org/1990553002/diff/1/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/1990553002/diff/1/content/renderer/render_view_impl.cc#newcode1412 content/renderer/render_view_impl.cc:1412: if (!webview()->scrollFocusedEditableElementIntoRect(rect, will_animate)) This out param is pretty gross, ...
4 years, 7 months ago
(2016-05-17 22:16:43 UTC)
#6
4 years, 7 months ago
(2016-05-18 05:12:01 UTC)
#10
Now with HasPendingPageScaleAnimation!
dglazkov
Description was changed from ========== Remove RenderViewImpl::GetFocusedElement. R=esprehn BUG=612570 ========== to ========== Remove RenderViewImpl::GetFocusedElement. R=esprehn ...
4 years, 7 months ago
(2016-05-18 05:12:05 UTC)
#11
Description was changed from
==========
Remove RenderViewImpl::GetFocusedElement.
R=esprehn
BUG=612570
==========
to
==========
Remove RenderViewImpl::GetFocusedElement.
R=esprehn
BUG=612570
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
==========
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1990553002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1990553002/20001
4 years, 7 months ago
(2016-05-18 05:12:20 UTC)
#12
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/215504)
4 years, 7 months ago
(2016-05-18 05:46:02 UTC)
#14
4 years, 7 months ago
(2016-05-18 18:45:01 UTC)
#16
Really works now.
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1990553002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1990553002/40001
4 years, 7 months ago
(2016-05-18 18:45:28 UTC)
#17
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/192655)
4 years, 7 months ago
(2016-05-18 19:23:42 UTC)
#24
https://codereview.chromium.org/1990553002/diff/40001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/1990553002/diff/40001/content/renderer/render_view_impl.cc#newcode1416 content/renderer/render_view_impl.cc:1416: if (!compositor()->hasPendingPageScaleAnimation()) I don't know this code at all, ...
4 years, 7 months ago
(2016-05-18 19:30:29 UTC)
#25
https://codereview.chromium.org/1990553002/diff/40001/content/renderer/render...
File content/renderer/render_view_impl.cc (right):
https://codereview.chromium.org/1990553002/diff/40001/content/renderer/render...
content/renderer/render_view_impl.cc:1416: if
(!compositor()->hasPendingPageScaleAnimation())
I don't know this code at all, but what's the goal of this check? It looks like
if you have a pending page scale animation, then eventually you'll get a
RenderViewImpl::DidCompletePageScaleAnimation which will call
FocusChangeComplete. So, I'm guessing you're avoiding the call here because
it'll get done later?
I feel like there's a race here, potentially. There could be an active page
scale animation, but one that's already been committed and so it not pending.
Then you'd get FocusChangeComplete here and then another one later when the page
scale animation completes.
Is that what you want? What are you trying to do here?
dglazkov
https://codereview.chromium.org/1990553002/diff/40001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/1990553002/diff/40001/content/renderer/render_view_impl.cc#newcode1416 content/renderer/render_view_impl.cc:1416: if (!compositor()->hasPendingPageScaleAnimation()) On 2016/05/18 at 19:30:29, enne wrote: > ...
4 years, 7 months ago
(2016-05-18 19:50:34 UTC)
#26
https://codereview.chromium.org/1990553002/diff/40001/content/renderer/render...
File content/renderer/render_view_impl.cc (right):
https://codereview.chromium.org/1990553002/diff/40001/content/renderer/render...
content/renderer/render_view_impl.cc:1416: if
(!compositor()->hasPendingPageScaleAnimation())
On 2016/05/18 at 19:30:29, enne wrote:
> I don't know this code at all, but what's the goal of this check? It looks
like if you have a pending page scale animation, then eventually you'll get a
RenderViewImpl::DidCompletePageScaleAnimation which will call
FocusChangeComplete. So, I'm guessing you're avoiding the call here because
it'll get done later?
>
> I feel like there's a race here, potentially. There could be an active page
scale animation, but one that's already been committed and so it not pending.
Then you'd get FocusChangeComplete here and then another one later when the page
scale animation completes.
>
> Is that what you want? What are you trying to do here?
I am hoping not to make any functional changes -- this change here is just avoid
using passing bools instead of just querying asking the source.
In the function above, the WebViewImpl::scrollFocusedEditableElementIntoRect may
or may (indirectly) invoke LayerTreeHost::StartPageScaleAnimation. The check in
question is just to see if that happened. There shouldn't be a race in this
case.
However, the new code could be behaving differently is
LayerTreeHost::pending_page_scale_animation_ is already set, and
WebViewImpl::scrollFocusedEditableElementIntoRect ends up _not_ calling
LayerTreeHost::StartPageScaleAnimation. I need to better understand if that's
possible and if the new behavior would be a good idea.
dglazkov
https://codereview.chromium.org/1990553002/diff/40001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/1990553002/diff/40001/content/renderer/render_view_impl.cc#newcode1416 content/renderer/render_view_impl.cc:1416: if (!compositor()->hasPendingPageScaleAnimation()) Oh, I think you meant the code ...
4 years, 7 months ago
(2016-05-19 04:12:31 UTC)
#27
I looked at this a little bit more, and lgtm. I think there's no race ...
4 years, 7 months ago
(2016-05-19 18:40:42 UTC)
#28
I looked at this a little bit more, and lgtm.
I think there's no race here, because this all happens on the same frame. It
looks a bit awkward to have these two paths that need to know about each other's
behavior so indirectly, but this seems better than what was there before.
dglazkov
On 2016/05/19 at 18:40:42, enne wrote: > I looked at this a little bit more, ...
4 years, 7 months ago
(2016-05-20 04:19:08 UTC)
#29
On 2016/05/19 at 18:40:42, enne wrote:
> I looked at this a little bit more, and lgtm.
>
> I think there's no race here, because this all happens on the same frame. It
looks a bit awkward to have these two paths that need to know about each other's
behavior so indirectly, but this seems better than what was there before.
Yay! Thanks!
dglazkov
The CQ bit was checked by dglazkov@chromium.org
4 years, 7 months ago
(2016-05-20 04:19:13 UTC)
#30
Made Windows happy and brought back bool return because fake tests.
4 years, 7 months ago
(2016-05-20 19:36:19 UTC)
#33
Made Windows happy and brought back bool return because fake tests.
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1990553002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1990553002/60001
4 years, 7 months ago
(2016-05-20 19:36:23 UTC)
#34
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1990553002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1990553002/60001
4 years, 7 months ago
(2016-05-20 21:08:13 UTC)
#39
Issue 1990553002: Remove RenderViewImpl::GetFocusedElement.
(Closed)
Created 4 years, 7 months ago by dglazkov
Modified 4 years, 7 months ago
Reviewers: enne (OOO), esprehn
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 7