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

Unified Diff: Source/core/html/forms/RangeInputType.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/forms/InputTypeView.cpp ('k') | Source/core/html/forms/SearchInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/RangeInputType.cpp
diff --git a/Source/core/html/forms/RangeInputType.cpp b/Source/core/html/forms/RangeInputType.cpp
index 9b5996a244ff4707812c08a6cf34ae9e9908899e..54649a43de8a2013f2a4c12a66576c8a32208c12 100644
--- a/Source/core/html/forms/RangeInputType.cpp
+++ b/Source/core/html/forms/RangeInputType.cpp
@@ -141,7 +141,7 @@ void RangeInputType::handleMouseDownEvent(MouseEvent* event)
if (event->button() != LeftButton || !targetNode)
return;
ASSERT(element().shadow());
- if (targetNode != element() && !targetNode->isDescendantOf(element().userAgentShadowRoot()))
+ if (targetNode != element() && !targetNode->isDescendantOf(element().closedShadowRoot()))
return;
SliderThumbElement* thumb = sliderThumbElement();
if (targetNode == thumb)
@@ -241,7 +241,7 @@ void RangeInputType::createShadowSubtree()
track->appendChild(SliderThumbElement::create(document));
RefPtrWillBeRawPtr<HTMLElement> container = SliderContainerElement::create(document);
container->appendChild(track.release());
- element().userAgentShadowRoot()->appendChild(container.release());
+ element().closedShadowRoot()->appendChild(container.release());
}
LayoutObject* RangeInputType::createRenderer(const LayoutStyle&) const
@@ -314,12 +314,12 @@ bool RangeInputType::shouldRespectListAttribute()
inline SliderThumbElement* RangeInputType::sliderThumbElement() const
{
- return toSliderThumbElement(element().userAgentShadowRoot()->getElementById(ShadowElementNames::sliderThumb()));
+ return toSliderThumbElement(element().closedShadowRoot()->getElementById(ShadowElementNames::sliderThumb()));
}
inline Element* RangeInputType::sliderTrackElement() const
{
- return element().userAgentShadowRoot()->getElementById(ShadowElementNames::sliderTrack());
+ return element().closedShadowRoot()->getElementById(ShadowElementNames::sliderTrack());
}
void RangeInputType::listAttributeTargetChanged()
« no previous file with comments | « Source/core/html/forms/InputTypeView.cpp ('k') | Source/core/html/forms/SearchInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698