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

Unified Diff: Source/core/dom/RenderTreeBuilder.h

Issue 672953002: Convert first letter into a pseudo element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 | « Source/core/dom/PseudoElement.cpp ('k') | Source/core/dom/RenderTreeBuilder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/RenderTreeBuilder.h
diff --git a/Source/core/dom/RenderTreeBuilder.h b/Source/core/dom/RenderTreeBuilder.h
index 30d639c4d921dfedc25c9f910104ecda34f7adc8..dc7a379bd0ffce1d56ec1b5c95f5b3dd4824ea87 100644
--- a/Source/core/dom/RenderTreeBuilder.h
+++ b/Source/core/dom/RenderTreeBuilder.h
@@ -27,36 +27,21 @@
#define RenderTreeBuilder_h
#include "core/dom/Document.h"
+#include "core/dom/FirstLetterPseudoElement.h"
#include "core/dom/Node.h"
#include "core/dom/NodeRenderingTraversal.h"
+#include "core/rendering/RenderObject.h"
#include "wtf/RefPtr.h"
namespace blink {
class ContainerNode;
-class RenderObject;
class RenderStyle;
class RenderTreeBuilder {
STACK_ALLOCATED();
public:
- RenderTreeBuilder(Node* node, RenderStyle* style)
- : m_node(node)
- , m_renderingParent(nullptr)
- , m_style(style)
- {
- ASSERT(!node->renderer());
- ASSERT(node->needsAttach());
- ASSERT(node->document().inStyleRecalc());
-
- // FIXME: We should be able to ASSERT(node->inActiveDocument()) but childrenChanged is called
- // before ChildNodeInsertionNotifier in ContainerNode's methods and some implementations
- // will trigger a layout inside childrenChanged.
- // Mainly HTMLTextAreaElement::childrenChanged calls HTMLTextFormControlElement::setSelectionRange
- // which does an updateLayoutIgnorePendingStylesheets.
-
- m_renderingParent = NodeRenderingTraversal::parent(node, &m_parentDetails);
- }
+ RenderTreeBuilder(Node*, RenderStyle*);
void createRendererForTextIfNeeded();
void createRendererForElementIfNeeded();
@@ -68,7 +53,7 @@ private:
RenderStyle& style() const;
RawPtrWillBeMember<Node> m_node;
- RawPtrWillBeMember<ContainerNode> m_renderingParent;
+ RawPtrWillBeMember<RenderObject> m_renderingParent;
NodeRenderingTraversal::ParentDetails m_parentDetails;
mutable RefPtr<RenderStyle> m_style;
};
« no previous file with comments | « Source/core/dom/PseudoElement.cpp ('k') | Source/core/dom/RenderTreeBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698