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

Unified Diff: Source/core/html/HTMLOptGroupElement.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/HTMLOptGroupElement.h ('k') | Source/core/html/HTMLOptionElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLOptGroupElement.cpp
diff --git a/Source/core/html/HTMLOptGroupElement.cpp b/Source/core/html/HTMLOptGroupElement.cpp
index 95e8298b2005716b0028975896f1eccdb57b0582..9257210c25dcfe3367e89431b82dece60df93304 100644
--- a/Source/core/html/HTMLOptGroupElement.cpp
+++ b/Source/core/html/HTMLOptGroupElement.cpp
@@ -49,7 +49,7 @@ inline HTMLOptGroupElement::HTMLOptGroupElement(Document& document)
PassRefPtrWillBeRawPtr<HTMLOptGroupElement> HTMLOptGroupElement::create(Document& document)
{
RefPtrWillBeRawPtr<HTMLOptGroupElement> optGroupElement = adoptRefWillBeNoop(new HTMLOptGroupElement(document));
- optGroupElement->ensureUserAgentShadowRoot();
+ optGroupElement->ensureClosedShadowRoot();
return optGroupElement.release();
}
@@ -143,7 +143,7 @@ void HTMLOptGroupElement::accessKeyAction(bool)
select->accessKeyAction(false);
}
-void HTMLOptGroupElement::didAddUserAgentShadowRoot(ShadowRoot& root)
+void HTMLOptGroupElement::didAddClosedShadowRoot(ShadowRoot& root)
{
DEFINE_STATIC_LOCAL(AtomicString, labelPadding, ("0 2px 1px 2px", AtomicString::ConstructFromLiteral));
DEFINE_STATIC_LOCAL(AtomicString, labelMinHeight, ("1.2em", AtomicString::ConstructFromLiteral));
@@ -170,7 +170,7 @@ void HTMLOptGroupElement::updateGroupLabel()
HTMLDivElement& HTMLOptGroupElement::optGroupLabelElement() const
{
- return *toHTMLDivElement(userAgentShadowRoot()->getElementById(ShadowElementNames::optGroupLabel()));
+ return *toHTMLDivElement(closedShadowRoot()->getElementById(ShadowElementNames::optGroupLabel()));
}
} // namespace
« no previous file with comments | « Source/core/html/HTMLOptGroupElement.h ('k') | Source/core/html/HTMLOptionElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698