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

Unified Diff: Source/core/rendering/RenderMenuList.cpp

Issue 736883002: Implement <select> Popup Menu using PagePopup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed tests for mac Created 5 years, 10 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 | « Source/core/rendering/RenderMenuList.h ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderMenuList.cpp
diff --git a/Source/core/rendering/RenderMenuList.cpp b/Source/core/rendering/RenderMenuList.cpp
index ea821c5f7b406677c36fde93707f1bbf63a75bf6..7ecfaa09a87fb6ecc58a82e21754018f9c931e2e 100644
--- a/Source/core/rendering/RenderMenuList.cpp
+++ b/Source/core/rendering/RenderMenuList.cpp
@@ -386,6 +386,21 @@ bool RenderMenuList::multiple() const
return selectElement()->multiple();
}
+IntRect RenderMenuList::elementRectRelativeToRootView() const
+{
+ return selectElement()->document().view()->contentsToRootView(pixelSnappedIntRect(absoluteBoundingBoxRect()));
+}
+
+Element& RenderMenuList::ownerElement() const
+{
+ return *selectElement();
+}
+
+RenderStyle* RenderMenuList::renderStyleForItem(Element& element) const
+{
+ return element.renderStyle() ? element.renderStyle() : element.computedStyle();
+}
+
void RenderMenuList::didSetSelectedIndex(int listIndex)
{
didUpdateActiveOption(selectElement()->listToOptionIndex(listIndex));
« no previous file with comments | « Source/core/rendering/RenderMenuList.h ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698