| Index: Source/core/html/HTMLProgressElement.cpp
|
| diff --git a/Source/core/html/HTMLProgressElement.cpp b/Source/core/html/HTMLProgressElement.cpp
|
| index 97d12d6ae0439f12ce36873bb288fe9f24475ac5..c0b21a8f892142b0bb677919e70b65040b454dcd 100644
|
| --- a/Source/core/html/HTMLProgressElement.cpp
|
| +++ b/Source/core/html/HTMLProgressElement.cpp
|
| @@ -39,7 +39,7 @@ using namespace HTMLNames;
|
| const double HTMLProgressElement::IndeterminatePosition = -1;
|
| const double HTMLProgressElement::InvalidPosition = -2;
|
|
|
| -HTMLProgressElement::HTMLProgressElement(const QualifiedName& tagName, Document* document)
|
| +HTMLProgressElement::HTMLProgressElement(const QualifiedName& tagName, Document& document)
|
| : LabelableElement(tagName, document)
|
| , m_value(0)
|
| {
|
| @@ -51,7 +51,7 @@ HTMLProgressElement::~HTMLProgressElement()
|
| {
|
| }
|
|
|
| -PassRefPtr<HTMLProgressElement> HTMLProgressElement::create(const QualifiedName& tagName, Document* document)
|
| +PassRefPtr<HTMLProgressElement> HTMLProgressElement::create(const QualifiedName& tagName, Document& document)
|
| {
|
| RefPtr<HTMLProgressElement> progress = adoptRef(new HTMLProgressElement(tagName, document));
|
| progress->ensureUserAgentShadowRoot();
|
| @@ -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);
|
|
|