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

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

Issue 935283002: Rename {Author,UserAgent}ShadowRoot to {Open,Closed}ShadowRoot. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix inspector tests 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/HTMLSelectElement.h » ('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 8ca14135a92107d6b748be046ebf24bfd094ec83..5d9765379cdef68c99b4c62a16f3505173fd82d5 100644
--- a/Source/core/html/HTMLProgressElement.cpp
+++ b/Source/core/html/HTMLProgressElement.cpp
@@ -54,13 +54,13 @@ HTMLProgressElement::~HTMLProgressElement()
PassRefPtrWillBeRawPtr<HTMLProgressElement> HTMLProgressElement::create(Document& document)
{
RefPtrWillBeRawPtr<HTMLProgressElement> progress = adoptRefWillBeNoop(new HTMLProgressElement(document));
- progress->ensureUserAgentShadowRoot();
+ progress->ensureClosedShadowRoot();
return progress.release();
}
LayoutObject* HTMLProgressElement::createRenderer(const LayoutStyle& style)
{
- if (!style.hasAppearance() || hasAuthorShadowRoot())
+ if (!style.hasAppearance() || hasOpenShadowRoot())
return LayoutObject::createObject(this, style);
return new RenderProgress(this);
}
@@ -70,7 +70,7 @@ RenderProgress* HTMLProgressElement::renderProgress() const
if (renderer() && renderer()->isProgress())
return toRenderProgress(renderer());
- LayoutObject* layoutObject = userAgentShadowRoot()->firstChild()->renderer();
+ LayoutObject* layoutObject = closedShadowRoot()->firstChild()->renderer();
ASSERT_WITH_SECURITY_IMPLICATION(!layoutObject || layoutObject->isProgress());
return toRenderProgress(layoutObject);
}
@@ -146,7 +146,7 @@ void HTMLProgressElement::didElementStateChange()
}
}
-void HTMLProgressElement::didAddUserAgentShadowRoot(ShadowRoot& root)
+void HTMLProgressElement::didAddClosedShadowRoot(ShadowRoot& root)
{
ASSERT(!m_value);
@@ -170,7 +170,7 @@ bool HTMLProgressElement::shouldAppearIndeterminate() const
return !isDeterminate();
}
-void HTMLProgressElement::willAddFirstAuthorShadowRoot()
+void HTMLProgressElement::willAddFirstOpenShadowRoot()
{
ASSERT(RuntimeEnabledFeatures::authorShadowDOMForAnyElementEnabled());
lazyReattachIfAttached();
« no previous file with comments | « Source/core/html/HTMLProgressElement.h ('k') | Source/core/html/HTMLSelectElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698