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

Unified Diff: Source/core/rendering/style/ContentData.cpp

Issue 23731003: Have ContentData::createRenderer() take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
« no previous file with comments | « Source/core/rendering/style/ContentData.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/ContentData.cpp
diff --git a/Source/core/rendering/style/ContentData.cpp b/Source/core/rendering/style/ContentData.cpp
index 828568f408aa417f16bfbcadd7804ea4bb916b80..b75880cc87cf05fb202ee8616b42a3d9c3c6b08c 100644
--- a/Source/core/rendering/style/ContentData.cpp
+++ b/Source/core/rendering/style/ContentData.cpp
@@ -66,9 +66,9 @@ PassOwnPtr<ContentData> ContentData::clone() const
return result.release();
}
-RenderObject* ImageContentData::createRenderer(Document* doc, RenderStyle* pseudoStyle) const
+RenderObject* ImageContentData::createRenderer(Document& doc, RenderStyle* pseudoStyle) const
{
- RenderImage* image = RenderImage::createAnonymous(doc);
+ RenderImage* image = RenderImage::createAnonymous(&doc);
image->setPseudoStyle(pseudoStyle);
if (m_image)
image->setImageResource(RenderImageResourceStyleImage::create(m_image.get()));
@@ -77,23 +77,23 @@ RenderObject* ImageContentData::createRenderer(Document* doc, RenderStyle* pseud
return image;
}
-RenderObject* TextContentData::createRenderer(Document* doc, RenderStyle* pseudoStyle) const
+RenderObject* TextContentData::createRenderer(Document& doc, RenderStyle* pseudoStyle) const
{
- RenderObject* renderer = new RenderTextFragment(doc, m_text.impl());
+ RenderObject* renderer = new RenderTextFragment(&doc, m_text.impl());
renderer->setPseudoStyle(pseudoStyle);
return renderer;
}
-RenderObject* CounterContentData::createRenderer(Document* doc, RenderStyle* pseudoStyle) const
+RenderObject* CounterContentData::createRenderer(Document& doc, RenderStyle* pseudoStyle) const
{
- RenderObject* renderer = new RenderCounter(doc, *m_counter);
+ RenderObject* renderer = new RenderCounter(&doc, *m_counter);
renderer->setPseudoStyle(pseudoStyle);
return renderer;
}
-RenderObject* QuoteContentData::createRenderer(Document* doc, RenderStyle* pseudoStyle) const
+RenderObject* QuoteContentData::createRenderer(Document& doc, RenderStyle* pseudoStyle) const
{
- RenderObject* renderer = new RenderQuote(doc, m_quote);
+ RenderObject* renderer = new RenderQuote(&doc, m_quote);
renderer->setPseudoStyle(pseudoStyle);
return renderer;
}
« no previous file with comments | « Source/core/rendering/style/ContentData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698