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

Unified Diff: Source/core/layout/LayoutPart.h

Issue 931003002: Move and rename RenderPart to LayoutPart. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/layout/LayoutObject.cpp ('k') | Source/core/layout/LayoutPart.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutPart.h
diff --git a/Source/core/rendering/RenderPart.h b/Source/core/layout/LayoutPart.h
similarity index 87%
rename from Source/core/rendering/RenderPart.h
rename to Source/core/layout/LayoutPart.h
index 8bb9be6895b5e3563c08c14a93215c8d8b25082e..11819b4a779f16d58dd841f85dbcc418c5bf119f 100644
--- a/Source/core/rendering/RenderPart.h
+++ b/Source/core/layout/LayoutPart.h
@@ -20,8 +20,8 @@
*
*/
-#ifndef RenderPart_h
-#define RenderPart_h
+#ifndef LayoutPart_h
+#define LayoutPart_h
#include "core/layout/LayoutReplaced.h"
#include "platform/Widget.h"
@@ -29,10 +29,10 @@
namespace blink {
// Renderer for frames via RenderFrame and RenderIFrame, and plug-ins via RenderEmbeddedObject.
-class RenderPart : public LayoutReplaced {
+class LayoutPart : public LayoutReplaced {
public:
- explicit RenderPart(Element*);
- virtual ~RenderPart();
+ explicit LayoutPart(Element*);
+ virtual ~LayoutPart();
bool requiresAcceleratedCompositing() const;
@@ -50,7 +50,7 @@ public:
void widgetPositionsUpdated();
bool updateWidgetGeometry();
- virtual bool isRenderPart() const override final { return true; }
+ virtual bool isLayoutPart() const override final { return true; }
virtual void paintContents(const PaintInfo&, const LayoutPoint&);
protected:
@@ -62,8 +62,6 @@ protected:
virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const override final;
private:
- virtual const char* renderName() const override { return "RenderPart"; }
-
virtual CompositingReasons additionalCompositingReasons() const override;
virtual void willBeDestroyed() override final;
@@ -76,8 +74,8 @@ private:
int m_refCount;
};
-DEFINE_LAYOUT_OBJECT_TYPE_CASTS(RenderPart, isRenderPart());
+DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutPart, isLayoutPart());
} // namespace blink
-#endif // RenderPart_h
+#endif // LayoutPart_h
« no previous file with comments | « Source/core/layout/LayoutObject.cpp ('k') | Source/core/layout/LayoutPart.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698