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

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

Issue 1013303004: Fix issue on <select> style change when popup is visible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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/layout/LayoutMenuList.h
diff --git a/Source/core/layout/LayoutMenuList.h b/Source/core/layout/LayoutMenuList.h
index 5a33e6af426f80b8970f6d2bad9899cee8e0f1e5..13b9a216616ca22bb73e4d4ce373eb085975ec8f 100644
--- a/Source/core/layout/LayoutMenuList.h
+++ b/Source/core/layout/LayoutMenuList.h
@@ -93,7 +93,7 @@ private:
virtual bool itemIsSeparator(unsigned listIndex) const override;
virtual bool itemIsLabel(unsigned listIndex) const override;
virtual bool itemIsSelected(unsigned listIndex) const override;
- virtual void setTextFromItem(unsigned listIndex) override;
+ virtual void setProvisionallySelectedListIndex(unsigned) override;
virtual void listBoxSelectItem(int listIndex, bool allowMultiplySelections, bool shift, bool fireOnChangeNow = true) override;
virtual bool multiple() const override;
virtual IntRect elementRectRelativeToViewport() const override;
@@ -133,6 +133,7 @@ private:
RefPtrWillBePersistent<PopupMenu> m_popup;
bool m_popupIsVisible;
+ int m_popupTemporarySelectedIndex;
};
DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutMenuList, isMenuList());

Powered by Google App Engine
This is Rietveld 408576698