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

Unified Diff: Source/web/PopupMenuImpl.h

Issue 1193793002: New SELECT Popup: Remove O(N^2) scan for OPTIONs. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | « no previous file | Source/web/PopupMenuImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/PopupMenuImpl.h
diff --git a/Source/web/PopupMenuImpl.h b/Source/web/PopupMenuImpl.h
index 4cb6ace4426910a223429c36d24e04fdb73a3e2e..8189a71bb429829fde79bbb1682ac703bf0e540f 100644
--- a/Source/web/PopupMenuImpl.h
+++ b/Source/web/PopupMenuImpl.h
@@ -31,9 +31,9 @@ private:
PopupMenuImpl(ChromeClientImpl*, PopupMenuClient*);
bool hasTooManyItemsForStyling();
- void addOption(HTMLOptionElement&, bool enableExtraStyling, SharedBuffer*);
- void addOptGroup(HTMLOptGroupElement&, bool enableExtraStyling, SharedBuffer*);
- void addSeparator(HTMLHRElement&, bool enableExtraStyling, SharedBuffer*);
+ void addOption(HTMLOptionElement&, int& listIndex, bool enableExtraStyling, SharedBuffer*);
+ void addOptGroup(HTMLOptGroupElement&, int& listIndex, bool enableExtraStyling, SharedBuffer*);
+ void addSeparator(HTMLHRElement&, int& listIndex, bool enableExtraStyling, SharedBuffer*);
void addElementStyle(HTMLElement&, bool enableExtraStyling, SharedBuffer*);
// PopupMenu functions:
« no previous file with comments | « no previous file | Source/web/PopupMenuImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698