mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Also, add a test from the original webkit patch that called setChildrenInline in layoutBlock R=ojan@chromium.org Review URL: https://codereview.chromium.org/748943002
27 lines
623 B
C++
27 lines
623 B
C++
// 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 "sky/engine/config.h"
|
|
#include "sky/engine/core/rendering/RenderParagraph.h"
|
|
|
|
namespace blink {
|
|
|
|
RenderParagraph::RenderParagraph(ContainerNode* node)
|
|
: RenderBlockFlow(node)
|
|
{
|
|
}
|
|
|
|
RenderParagraph::~RenderParagraph()
|
|
{
|
|
}
|
|
|
|
RenderParagraph* RenderParagraph::createAnonymous(Document& document)
|
|
{
|
|
RenderParagraph* renderer = new RenderParagraph(0);
|
|
renderer->setDocumentForAnonymous(&document);
|
|
return renderer;
|
|
}
|
|
|
|
} // namespace blink
|