Index: Source/core/page/FrameView.cpp |
diff --git a/Source/core/page/FrameView.cpp b/Source/core/page/FrameView.cpp |
index 6c8c270817adc66ae49bbd73d7f4e4a120c4c9bd..2222a791166cb73a1f2d6afefcdb93d3284a535d 100644 |
--- a/Source/core/page/FrameView.cpp |
+++ b/Source/core/page/FrameView.cpp |
@@ -3198,7 +3198,7 @@ IntPoint FrameView::convertToRenderer(const RenderObject* renderer, const IntPoi |
IntRect FrameView::convertToContainingView(const IntRect& localRect) const |
{ |
- if (const ScrollView* parentScrollView = parent()) { |
+ if (const ScrollView* parentScrollView = static_cast<ScrollView*>(parent())) { |
eseidel
2013/10/11 06:01:32
toScrollView? or parentScrollView?
|
if (parentScrollView->isFrameView()) { |
const FrameView* parentView = toFrameView(parentScrollView); |
// Get our renderer in the parent view |
@@ -3221,7 +3221,7 @@ IntRect FrameView::convertToContainingView(const IntRect& localRect) const |
IntRect FrameView::convertFromContainingView(const IntRect& parentRect) const |
{ |
- if (const ScrollView* parentScrollView = parent()) { |
+ if (const ScrollView* parentScrollView = static_cast<ScrollView*>(parent())) { |
if (parentScrollView->isFrameView()) { |
const FrameView* parentView = toFrameView(parentScrollView); |
@@ -3245,7 +3245,7 @@ IntRect FrameView::convertFromContainingView(const IntRect& parentRect) const |
IntPoint FrameView::convertToContainingView(const IntPoint& localPoint) const |
{ |
- if (const ScrollView* parentScrollView = parent()) { |
+ if (const ScrollView* parentScrollView = static_cast<ScrollView*>(parent())) { |
if (parentScrollView->isFrameView()) { |
const FrameView* parentView = toFrameView(parentScrollView); |
@@ -3270,7 +3270,7 @@ IntPoint FrameView::convertToContainingView(const IntPoint& localPoint) const |
IntPoint FrameView::convertFromContainingView(const IntPoint& parentPoint) const |
{ |
- if (const ScrollView* parentScrollView = parent()) { |
+ if (const ScrollView* parentScrollView = static_cast<ScrollView*>(parent())) { |
if (parentScrollView->isFrameView()) { |
const FrameView* parentView = toFrameView(parentScrollView); |