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

Unified Diff: sky/engine/core/rendering/RenderParagraph.cpp

Issue 729693003: First step at getting rid of anonymous blocks and continuations. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Address review comments 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
« no previous file with comments | « sky/engine/core/rendering/RenderParagraph.h ('k') | sky/engine/core/rendering/style/RenderStyleConstants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/RenderParagraph.cpp
diff --git a/sky/engine/core/rendering/RenderParagraph.cpp b/sky/engine/core/rendering/RenderParagraph.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..bd6e0e829bb0fca1fdfe13a80bcfe88d7cba55ac
--- /dev/null
+++ b/sky/engine/core/rendering/RenderParagraph.cpp
@@ -0,0 +1,27 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "core/rendering/RenderParagraph.h"
+
+namespace blink {
+
+RenderParagraph::RenderParagraph(ContainerNode* node)
+ : RenderBlockFlow(node)
+{
+ setChildrenInline(true);
+}
+
+RenderParagraph::~RenderParagraph()
+{
+}
+
+RenderParagraph* RenderParagraph::createAnonymous(Document& document)
+{
+ RenderParagraph* renderer = new RenderParagraph(0);
+ renderer->setDocumentForAnonymous(&document);
+ return renderer;
+}
+
+} // namespace blink
« no previous file with comments | « sky/engine/core/rendering/RenderParagraph.h ('k') | sky/engine/core/rendering/style/RenderStyleConstants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698