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

Unified Diff: Source/core/html/HTMLFrameOwnerElement.cpp

Issue 641733004: Merge FrameView and ScrollView. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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/html/HTMLFrameOwnerElement.cpp
diff --git a/Source/core/html/HTMLFrameOwnerElement.cpp b/Source/core/html/HTMLFrameOwnerElement.cpp
index b3ec7bfdd804dd385b57f855fe8af018a5420162..1f1dd4031858a25104793615c7ba003864e971ad 100644
--- a/Source/core/html/HTMLFrameOwnerElement.cpp
+++ b/Source/core/html/HTMLFrameOwnerElement.cpp
@@ -64,7 +64,7 @@ void HTMLFrameOwnerElement::UpdateSuspendScope::performDeferredWidgetTreeOperati
WidgetToParentMap::iterator end = map.end();
for (WidgetToParentMap::iterator it = map.begin(); it != end; ++it) {
Widget* child = it->key.get();
- ScrollView* currentParent = toScrollView(child->parent());
+ FrameView* currentParent = toFrameView(child->parent());
FrameView* newParent = it->value;
if (newParent != currentParent) {
if (currentParent)
@@ -88,8 +88,8 @@ static void moveWidgetToParentSoon(Widget* child, FrameView* parent)
if (!s_updateSuspendCount) {
if (parent)
parent->addChild(child);
- else if (toScrollView(child->parent()))
- toScrollView(child->parent())->removeChild(child);
+ else if (toFrameView(child->parent()))
+ toFrameView(child->parent())->removeChild(child);
return;
}
widgetNewParentMap().set(child, parent);

Powered by Google App Engine
This is Rietveld 408576698