Index: Source/core/rendering/RenderMenuList.cpp |
diff --git a/Source/core/rendering/RenderMenuList.cpp b/Source/core/rendering/RenderMenuList.cpp |
index b19fd6fec045df361a03a84e407ff7515ef2270e..b211fbbe1c806c4dfbb466cd304da501575b346d 100644 |
--- a/Source/core/rendering/RenderMenuList.cpp |
+++ b/Source/core/rendering/RenderMenuList.cpp |
@@ -378,9 +378,9 @@ bool RenderMenuList::multiple() const |
return selectElement()->multiple(); |
} |
-IntRect RenderMenuList::elementRectRelativeToRootView() const |
+IntRect RenderMenuList::elementRectRelativeToViewport() const |
{ |
- return selectElement()->document().view()->contentsToRootView(pixelSnappedIntRect(absoluteBoundingBoxRect())); |
+ return selectElement()->document().view()->contentsToWindow(pixelSnappedIntRect(absoluteBoundingBoxRect())); |
} |
Element& RenderMenuList::ownerElement() const |