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

Unified Diff: sky/engine/core/html/HTMLIFrameElement.cpp

Issue 682413006: Add a separate call to initialize the bounds for a sky <iframe> element. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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: sky/engine/core/html/HTMLIFrameElement.cpp
diff --git a/sky/engine/core/html/HTMLIFrameElement.cpp b/sky/engine/core/html/HTMLIFrameElement.cpp
index 0885e331baf4509eb03eb9383c730ac4eba7c830..17408c1a4215d8e2f6696bd72229549d73ba85a0 100644
--- a/sky/engine/core/html/HTMLIFrameElement.cpp
+++ b/sky/engine/core/html/HTMLIFrameElement.cpp
@@ -19,7 +19,8 @@ PassRefPtr<HTMLIFrameElement> HTMLIFrameElement::create(Document& document)
}
HTMLIFrameElement::HTMLIFrameElement(Document& document)
- : HTMLElement(HTMLNames::iframeTag, document)
+ : HTMLElement(HTMLNames::iframeTag, document),
+ frame_id_(static_cast<uint32_t>(-1))
{
}
@@ -59,7 +60,7 @@ void HTMLIFrameElement::createView()
return;
KURL url = document().completeURL(urlString);
- parentFrame->loaderClient()->createView(url);
+ frame_id_ = parentFrame->loaderClient()->createChildFrame(url);
}
}

Powered by Google App Engine
This is Rietveld 408576698