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

Unified Diff: public/web/WebFrame.h

Issue 1119823003: Allow createLocalChild to specify previous sibling frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Change appendChild to use insertAfter Created 5 years, 8 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: public/web/WebFrame.h
diff --git a/public/web/WebFrame.h b/public/web/WebFrame.h
index 5c04c8425d860c89fe5464030da118cc553ed344..428ce87d677c8aba18b861b0e3e8573970126e33 100644
--- a/public/web/WebFrame.h
+++ b/public/web/WebFrame.h
@@ -214,6 +214,10 @@ public:
// This is executed between layout tests runs
void clearOpener() { setOpener(0); }
+ // Inserts the given frame as a child of this frame, so that it is the next
+ // child after |previousSibling|, or first child if |previousSibling| is null.
+ BLINK_EXPORT void insertAfter(WebFrame* child, WebFrame* previousSibling);
+
// Adds the given frame as a child of this frame.
BLINK_EXPORT void appendChild(WebFrame*);

Powered by Google App Engine
This is Rietveld 408576698