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

Issue 1970653003: ExternalPopupMenu should recreate its popup only if a SELECT subtree is updated (Closed)

Created:
4 years, 7 months ago by tkent
Modified:
4 years, 7 months ago
Reviewers:
keishi
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ExternalPopupMenu should recreate its popup only if a SELECT subtree is updated crbug.com/608140 happens because animation on a SELECT element causes multiple didRecalcStyle calls, and ExternalPopupMenu::updateFromElement recreates a popup by a HEAD element change. This CL adds a |reason| argument to PopupMenu::updateFromElement. It is one of BySelectionChange, ByStyleChange, and ByDOMCHange. ExternalPopupMenu doesn't recreates its popup if the |reason| is ByStyleChange because ExternalPopupMenu doesn't support styling. BUG=608140 Committed: https://crrev.com/1d5b6507ac2cbfdbb733cbefa1dbbce091b11a06 Cr-Commit-Position: refs/heads/master@{#392965}

Patch Set 1 #

Patch Set 2 : Add updateFromElement variant #

Patch Set 3 : Remove ExternalPopupMenu::m_shownDOMTreeVersion #

Total comments: 2

Patch Set 4 : Add an enum argument to updateFromElement #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -22 lines) Patch
M third_party/WebKit/Source/core/html/HTMLSelectElement.h View 1 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSelectElement.cpp View 1 2 3 9 chunks +77 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/loader/EmptyClients.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/PopupMenu.h View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/ExternalPopupMenu.h View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ExternalPopupMenu.cpp View 1 2 3 2 chunks +16 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/web/PopupMenuImpl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/PopupMenuImpl.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (7 generated)
tkent
Keishi, would you review this please?
4 years, 7 months ago (2016-05-11 06:32:19 UTC) #3
keishi
On 2016/05/11 06:32:19, tkent wrote: > Keishi, would you review this please? Do we have ...
4 years, 7 months ago (2016-05-11 07:17:32 UTC) #4
tkent
On 2016/05/11 at 07:17:32, keishi wrote: > On 2016/05/11 06:32:19, tkent wrote: > > Keishi, ...
4 years, 7 months ago (2016-05-11 07:23:28 UTC) #5
keishi
On 2016/05/11 07:23:28, tkent wrote: > On 2016/05/11 at 07:17:32, keishi wrote: > > On ...
4 years, 7 months ago (2016-05-11 07:48:00 UTC) #6
tkent
On 2016/05/11 at 07:48:00, keishi wrote: > On 2016/05/11 07:23:28, tkent wrote: > > On ...
4 years, 7 months ago (2016-05-11 07:59:02 UTC) #7
keishi
On 2016/05/11 07:59:02, tkent wrote: > On 2016/05/11 at 07:48:00, keishi wrote: > > On ...
4 years, 7 months ago (2016-05-11 08:04:50 UTC) #8
tkent
Uploaded a new patch. Please take another look.
4 years, 7 months ago (2016-05-11 08:35:17 UTC) #10
keishi
LGTM https://codereview.chromium.org/1970653003/diff/40001/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp File third_party/WebKit/Source/core/html/HTMLSelectElement.cpp (right): https://codereview.chromium.org/1970653003/diff/40001/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp#newcode1051 third_party/WebKit/Source/core/html/HTMLSelectElement.cpp:1051: m_popup->updateFromElement(); nit: Maybe selectedness is important enough that ...
4 years, 7 months ago (2016-05-11 09:14:41 UTC) #11
tkent
https://codereview.chromium.org/1970653003/diff/40001/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp File third_party/WebKit/Source/core/html/HTMLSelectElement.cpp (right): https://codereview.chromium.org/1970653003/diff/40001/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp#newcode1051 third_party/WebKit/Source/core/html/HTMLSelectElement.cpp:1051: m_popup->updateFromElement(); On 2016/05/11 at 09:14:41, keishi wrote: > nit: ...
4 years, 7 months ago (2016-05-11 15:56:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1970653003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1970653003/60001
4 years, 7 months ago (2016-05-11 15:58:58 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-11 17:13:23 UTC) #17
commit-bot: I haz the power
4 years, 7 months ago (2016-05-11 17:15:05 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1d5b6507ac2cbfdbb733cbefa1dbbce091b11a06
Cr-Commit-Position: refs/heads/master@{#392965}

Powered by Google App Engine
This is Rietveld 408576698