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

Unified Diff: third_party/WebKit/Source/core/html/HTMLSelectElement.cpp

Issue 2075533002: Menulist SELECT element should update layout when an OPTION content is changed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLSelectElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
index f68437bfb35ba05b87df8093b1eb506088f403f1..750ffdaee5732950447228bfb15a4f970071c0a9 100644
--- a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
@@ -429,12 +429,14 @@ void HTMLSelectElement::childrenChanged(const ChildrenChange& change)
HTMLFormControlElementWithState::childrenChanged(change);
}
-void HTMLSelectElement::optionElementChildrenChanged()
+void HTMLSelectElement::optionElementChildrenChanged(const HTMLOptionElement& option)
{
setNeedsValidityCheck();
setOptionsChangedOnLayoutObject();
if (layoutObject()) {
+ if (option.selected() && usesMenuList())
+ layoutObject()->updateFromElement();
if (AXObjectCache* cache = layoutObject()->document().existingAXObjectCache())
cache->childrenChanged(this);
}
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLSelectElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698