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

Issue 1605233002: Implement PopupMenu::updateFromElement() for ExternalPopupMenu. (Closed)

Created:
4 years, 11 months ago by tkent
Modified:
4 years, 11 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

Implement PopupMenu::updateFromElement() for ExternalPopupMenu. It closes a shown popup, and re-show a popup with the latest content. This CL affects only OSX and Android. Implementation: A major part of show() was moved to showInternal(), and updateFromElement() calls showInternal() later. showInternal() returns false if it failed to show a popup. Update from crrev.com/370329: Fix crbug.com/579895. We check domTreeVersion in updateFromElement(). We re-create popup only if the DOM tree was modified. BUG=176241 TEST=manual; See crbug.com/176241. Committed: https://crrev.com/f32f9fad19a8366c837e3d10112001c8e7d42606 Cr-Commit-Position: refs/heads/master@{#370329} Committed: https://crrev.com/c92e23cc419c2db58851f48c12dc55ae73c1a32c Cr-Commit-Position: refs/heads/master@{#370890}

Patch Set 1 #

Total comments: 2

Patch Set 2 : typo #

Patch Set 3 : Fix crbug.com/579895 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -20 lines) Patch
M third_party/WebKit/Source/core/html/HTMLSelectElement.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ExternalPopupMenu.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/ExternalPopupMenu.cpp View 1 2 4 chunks +60 lines, -18 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
tkent
Keishi, would you review this please?
4 years, 11 months ago (2016-01-20 01:41:50 UTC) #3
keishi
LGTM https://codereview.chromium.org/1605233002/diff/1/third_party/WebKit/Source/web/ExternalPopupMenu.cpp File third_party/WebKit/Source/web/ExternalPopupMenu.cpp (right): https://codereview.chromium.org/1605233002/diff/1/third_party/WebKit/Source/web/ExternalPopupMenu.cpp#newcode164 third_party/WebKit/Source/web/ExternalPopupMenu.cpp:164: // We failed to show a popup. Notice ...
4 years, 11 months ago (2016-01-20 03:39:34 UTC) #4
tkent
https://codereview.chromium.org/1605233002/diff/1/third_party/WebKit/Source/web/ExternalPopupMenu.cpp File third_party/WebKit/Source/web/ExternalPopupMenu.cpp (right): https://codereview.chromium.org/1605233002/diff/1/third_party/WebKit/Source/web/ExternalPopupMenu.cpp#newcode164 third_party/WebKit/Source/web/ExternalPopupMenu.cpp:164: // We failed to show a popup. Notice it ...
4 years, 11 months ago (2016-01-20 04:13:39 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1605233002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1605233002/20001
4 years, 11 months ago (2016-01-20 04:14:21 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 11 months ago (2016-01-20 06:15:05 UTC) #9
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/f32f9fad19a8366c837e3d10112001c8e7d42606 Cr-Commit-Position: refs/heads/master@{#370329}
4 years, 11 months ago (2016-01-20 06:16:10 UTC) #11
tkent
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1613813002/ by tkent@chromium.org. ...
4 years, 11 months ago (2016-01-21 09:54:20 UTC) #12
tkent
Reopened, and uploaded new patch. Keishi, would you review this again please? The difference is ...
4 years, 11 months ago (2016-01-22 01:47:11 UTC) #14
keishi
LGTM. Was it recalcStyle that caused the excessive updating?
4 years, 11 months ago (2016-01-22 01:53:05 UTC) #15
tkent
On 2016/01/22 at 01:53:05, keishi wrote: > Was it recalcStyle that caused the excessive updating? ...
4 years, 11 months ago (2016-01-22 01:54:32 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1605233002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1605233002/40001
4 years, 11 months ago (2016-01-22 02:21:22 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-22 03:22:24 UTC) #19
commit-bot: I haz the power
4 years, 11 months ago (2016-01-22 03:23:39 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c92e23cc419c2db58851f48c12dc55ae73c1a32c
Cr-Commit-Position: refs/heads/master@{#370890}

Powered by Google App Engine
This is Rietveld 408576698