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

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

Issue 942583002: Move rendering/RenderProgress to layout/LayoutProgress (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/HTMLProgressElement.h ('k') | Source/core/html/shadow/ProgressShadowElement.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 5d9765379cdef68c99b4c62a16f3505173fd82d5..6333ef9fa9521fb6094bdde29d5920f36f03e2c4 100644
--- a/Source/core/html/HTMLProgressElement.cpp
+++ b/Source/core/html/HTMLProgressElement.cpp
@@ -31,7 +31,7 @@
#include "core/frame/UseCounter.h"
#include "core/html/parser/HTMLParserIdioms.h"
#include "core/html/shadow/ProgressShadowElement.h"
-#include "core/rendering/RenderProgress.h"
+#include "core/layout/LayoutProgress.h"
namespace blink {
@@ -62,17 +62,17 @@ LayoutObject* HTMLProgressElement::createRenderer(const LayoutStyle& style)
{
if (!style.hasAppearance() || hasOpenShadowRoot())
return LayoutObject::createObject(this, style);
- return new RenderProgress(this);
+ return new LayoutProgress(this);
}
-RenderProgress* HTMLProgressElement::renderProgress() const
+LayoutProgress* HTMLProgressElement::layoutProgress() const
{
if (renderer() && renderer()->isProgress())
- return toRenderProgress(renderer());
+ return toLayoutProgress(renderer());
LayoutObject* layoutObject = closedShadowRoot()->firstChild()->renderer();
ASSERT_WITH_SECURITY_IMPLICATION(!layoutObject || layoutObject->isProgress());
- return toRenderProgress(layoutObject);
+ return toLayoutProgress(layoutObject);
}
void HTMLProgressElement::parseAttribute(const QualifiedName& name, const AtomicString& value)
@@ -88,7 +88,7 @@ void HTMLProgressElement::parseAttribute(const QualifiedName& name, const Atomic
void HTMLProgressElement::attach(const AttachContext& context)
{
LabelableElement::attach(context);
- if (RenderProgress* render = renderProgress())
+ if (LayoutProgress* render = layoutProgress())
render->updateFromElement();
}
@@ -138,7 +138,7 @@ bool HTMLProgressElement::isDeterminate() const
void HTMLProgressElement::didElementStateChange()
{
m_value->setWidthPercentage(position() * 100);
- if (RenderProgress* render = renderProgress()) {
+ if (LayoutProgress* render = layoutProgress()) {
bool wasDeterminate = render->isDeterminate();
render->updateFromElement();
if (wasDeterminate != isDeterminate())
« no previous file with comments | « Source/core/html/HTMLProgressElement.h ('k') | Source/core/html/shadow/ProgressShadowElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698