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

Unified Diff: Source/core/html/HTMLProgressElement.cpp

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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/html/HTMLPlugInImageElement.cpp ('k') | Source/core/html/HTMLScriptElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLProgressElement.cpp
diff --git a/Source/core/html/HTMLProgressElement.cpp b/Source/core/html/HTMLProgressElement.cpp
index 11f3b36ff2f37b9e4902b1b6053e1e0e8bea98bb..97d12d6ae0439f12ce36873bb288fe9f24475ac5 100644
--- a/Source/core/html/HTMLProgressElement.cpp
+++ b/Source/core/html/HTMLProgressElement.cpp
@@ -150,13 +150,13 @@ void HTMLProgressElement::didAddUserAgentShadowRoot(ShadowRoot* root)
{
ASSERT(!m_value);
- RefPtr<ProgressInnerElement> inner = ProgressInnerElement::create(document());
+ RefPtr<ProgressInnerElement> inner = ProgressInnerElement::create(&document());
inner->setPart(AtomicString("-webkit-progress-inner-element", AtomicString::ConstructFromLiteral));
root->appendChild(inner);
- RefPtr<ProgressBarElement> bar = ProgressBarElement::create(document());
+ RefPtr<ProgressBarElement> bar = ProgressBarElement::create(&document());
bar->setPart(AtomicString("-webkit-progress-bar", AtomicString::ConstructFromLiteral));
- RefPtr<ProgressValueElement> value = ProgressValueElement::create(document());
+ RefPtr<ProgressValueElement> value = ProgressValueElement::create(&document());
m_value = value.get();
m_value->setPart(AtomicString("-webkit-progress-value", AtomicString::ConstructFromLiteral));
m_value->setWidthPercentage(HTMLProgressElement::IndeterminatePosition * 100);
« no previous file with comments | « Source/core/html/HTMLPlugInImageElement.cpp ('k') | Source/core/html/HTMLScriptElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698