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

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

Issue 11275208: Merge 133124 - [Refactoring] Move initial style setting for ProgressValueElement from attach method… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 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 | « LayoutTests/fast/dom/HTMLProgressElement/progress-bar-set-value-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/html/HTMLProgressElement.cpp
===================================================================
--- Source/WebCore/html/HTMLProgressElement.cpp (revision 133837)
+++ Source/WebCore/html/HTMLProgressElement.cpp (working copy)
@@ -106,7 +106,8 @@
void HTMLProgressElement::attach()
{
LabelableElement::attach();
- didElementStateChange();
+ if (RenderProgress* render = renderProgress())
+ render->updateFromElement();
}
double HTMLProgressElement::value() const
@@ -175,6 +176,7 @@
RefPtr<ProgressBarElement> bar = ProgressBarElement::create(document());
RefPtr<ProgressValueElement> value = ProgressValueElement::create(document());
m_value = value.get();
+ m_value->setWidthPercentage(HTMLProgressElement::IndeterminatePosition * 100);
bar->appendChild(m_value, ASSERT_NO_EXCEPTION);
inner->appendChild(bar, ASSERT_NO_EXCEPTION);
« no previous file with comments | « LayoutTests/fast/dom/HTMLProgressElement/progress-bar-set-value-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698