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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutMenuList.h

Issue 2126023005: SELECT element: Improve performance of HTMLSelectElement::optionIndexToBeShown(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: third_party/WebKit/Source/core/layout/LayoutMenuList.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutMenuList.h b/third_party/WebKit/Source/core/layout/LayoutMenuList.h
index fa96089fe3803bd0066118401a782f75e88782cd..743f94c104cac6f933f34b6f401be365a62ecf39 100644
--- a/third_party/WebKit/Source/core/layout/LayoutMenuList.h
+++ b/third_party/WebKit/Source/core/layout/LayoutMenuList.h
@@ -39,7 +39,7 @@ public:
~LayoutMenuList() override;
HTMLSelectElement* selectElement() const;
- void didSetSelectedIndex(int optionIndex);
+ void didSelectOption(HTMLOptionElement*);
String text() const;
const char* name() const override { return "LayoutMenuList"; }
@@ -79,13 +79,12 @@ private:
void createInnerBlock();
void adjustInnerStyle();
void setText(const String&);
- void setTextFromOption(int optionIndex);
void updateInnerBlockHeight();
void updateOptionsWidth() const;
float computeTextWidth(const TextRun&, const ComputedStyle&) const;
void setIndexToSelectOnCancel(int listIndex);
- void didUpdateActiveOption(int optionIndex);
+ void didUpdateActiveOption(HTMLOptionElement*);
LayoutText* m_buttonText;
LayoutBlock* m_innerBlock;
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLSelectElement.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutMenuList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698