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

Issue 2109993003: Remove redundant calls to HTMLSelectElement::setRecalcListItems(). (Closed)

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

Remove redundant calls to HTMLSelectElement::setRecalcListItems(). When we remove or insert an OPTION from/to a SELECT element, setRecalcListItems() was called twice. - HTMLSelectElement::childrenChanged() - HTMLSelectElement::optionInserted() or optionRemoved(). Also, it was called even when a text node is added to a SELECT element. This CL fixes them. We stops to override childrenChange(). HTMLOptGroupElement and HTMLHRElement override insertedInto() and removedFrom(), and they notify these events to the owner SELECT element like HTMLOptionElement does. This is a preparation to optimize setRecalcListItems(). BUG=624220 Committed: https://crrev.com/5850ba2952d13224b95b9cd78248d4216eb76d96 Cr-Commit-Position: refs/heads/master@{#402781}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -10 lines) Patch
M third_party/WebKit/Source/core/html/HTMLHRElement.h View 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLHRElement.cpp View 2 chunks +37 lines, -0 lines 2 comments Download
M third_party/WebKit/Source/core/html/HTMLOptGroupElement.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLOptGroupElement.cpp View 1 chunk +19 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSelectElement.h View 3 chunks +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSelectElement.cpp View 3 chunks +17 lines, -9 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
tkent
Keishi, would you review this please?
4 years, 5 months ago (2016-06-29 07:44:03 UTC) #2
keishi
LGTM https://codereview.chromium.org/2109993003/diff/1/third_party/WebKit/Source/core/html/HTMLHRElement.cpp File third_party/WebKit/Source/core/html/HTMLHRElement.cpp (right): https://codereview.chromium.org/2109993003/diff/1/third_party/WebKit/Source/core/html/HTMLHRElement.cpp#newcode111 third_party/WebKit/Source/core/html/HTMLHRElement.cpp:111: if (insertionPoint == select || (isHTMLOptGroupElement(*insertionPoint) && insertionPoint->parentNode() ...
4 years, 5 months ago (2016-06-29 08:46:40 UTC) #3
tkent
Thank you for reviewing this. https://codereview.chromium.org/2109993003/diff/1/third_party/WebKit/Source/core/html/HTMLHRElement.cpp File third_party/WebKit/Source/core/html/HTMLHRElement.cpp (right): https://codereview.chromium.org/2109993003/diff/1/third_party/WebKit/Source/core/html/HTMLHRElement.cpp#newcode111 third_party/WebKit/Source/core/html/HTMLHRElement.cpp:111: if (insertionPoint == select ...
4 years, 5 months ago (2016-06-29 08:58:05 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2109993003/1
4 years, 5 months ago (2016-06-29 11:43:07 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-06-29 11:46:55 UTC) #7
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 11:48:54 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5850ba2952d13224b95b9cd78248d4216eb76d96
Cr-Commit-Position: refs/heads/master@{#402781}

Powered by Google App Engine
This is Rietveld 408576698