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

Unified Diff: Source/core/html/HTMLSelectElement.h

Issue 189543012: Update <select> when any of its <option> children has "display: none" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase + Layout Testcase Created 6 years, 9 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
Index: Source/core/html/HTMLSelectElement.h
diff --git a/Source/core/html/HTMLSelectElement.h b/Source/core/html/HTMLSelectElement.h
index 8268cc15a8c3508e851f1278dbdbc0c98d14753c..e12f7b23049384661ce45cf4cdf59c9b5f95aaa4 100644
--- a/Source/core/html/HTMLSelectElement.h
+++ b/Source/core/html/HTMLSelectElement.h
@@ -115,6 +115,7 @@ public:
void optionSelectionStateChanged(HTMLOptionElement*, bool optionIsSelected);
bool anonymousIndexedSetter(unsigned, PassRefPtr<HTMLOptionElement>, ExceptionState&);
+ void updateListOnRenderer();
protected:
HTMLSelectElement(Document&, HTMLFormElement*);
@@ -195,6 +196,8 @@ private:
virtual int optionCount() const OVERRIDE;
virtual String optionAtIndex(int index) const OVERRIDE;
+ void timerFired(Timer<HTMLSelectElement>*);
+
// m_listItems contains HTMLOptionElement, HTMLOptGroupElement, and HTMLHRElement objects.
mutable Vector<HTMLElement*> m_listItems;
Vector<bool> m_lastOnChangeSelection;
@@ -209,6 +212,7 @@ private:
bool m_activeSelectionState;
mutable bool m_shouldRecalcListItems;
int m_suggestedIndex;
+ Timer<HTMLSelectElement> m_optionChildChangedTimer;
esprehn 2014/03/20 17:09:25 Please remove this timer, it's not correct to use
spartha 2014/03/21 05:13:26 The idea to use the timer is to avoid multiple cal
};
} // namespace

Powered by Google App Engine
This is Rietveld 408576698