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

Unified Diff: third_party/WebKit/Source/core/frame/Frame.h

Issue 2316533004: Don't include headers from the layout API from other headers needlessly. (Closed)
Patch Set: The runway sure is slippery today. Created 4 years, 3 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: third_party/WebKit/Source/core/frame/Frame.h
diff --git a/third_party/WebKit/Source/core/frame/Frame.h b/third_party/WebKit/Source/core/frame/Frame.h
index 6e053b42031b7ddf3a29a5adbb6e59c85dd75c63..4582c192550f6b64f911f24c240b217532157f32 100644
--- a/third_party/WebKit/Source/core/frame/Frame.h
+++ b/third_party/WebKit/Source/core/frame/Frame.h
@@ -30,7 +30,6 @@
#include "core/CoreExport.h"
#include "core/frame/FrameTypes.h"
-#include "core/layout/api/LayoutPartItem.h"
#include "core/loader/FrameLoaderTypes.h"
#include "core/page/FrameTree.h"
#include "platform/heap/Handle.h"
@@ -47,6 +46,7 @@ class FrameHost;
class FrameOwner;
class HTMLFrameOwnerElement;
class LayoutPart;
+class LayoutPartItem;
class KURL;
class Page;
class SecurityContext;
@@ -120,10 +120,7 @@ public:
// TODO(pilgrim) replace all instances of ownerLayoutObject() with ownerLayoutItem()
// https://crbug.com/499321
LayoutPart* ownerLayoutObject() const; // LayoutObject for the element that contains this frame.
- LayoutPartItem ownerLayoutItem() const
- {
- return LayoutPartItem(this->ownerLayoutObject());
- }
+ LayoutPartItem ownerLayoutItem() const;
Settings* settings() const; // can be null
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameSelection.cpp ('k') | third_party/WebKit/Source/core/frame/Frame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698