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

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

Issue 880573007: Re-attach renderer for progress/meter when author shadow is allowed. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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/HTMLMeterElement.h ('k') | Source/core/html/HTMLProgressElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMeterElement.cpp
diff --git a/Source/core/html/HTMLMeterElement.cpp b/Source/core/html/HTMLMeterElement.cpp
index fd4d214e9cb0dacf67bc597a6bd7cbdf6cbebaa5..dd9261d2b3ab192f5a9b46a133816d3629e38a0c 100644
--- a/Source/core/html/HTMLMeterElement.cpp
+++ b/Source/core/html/HTMLMeterElement.cpp
@@ -211,6 +211,12 @@ void HTMLMeterElement::didAddUserAgentShadowRoot(ShadowRoot& root)
inner->appendChild(bar);
}
+void HTMLMeterElement::willAddFirstAuthorShadowRoot()
+{
+ ASSERT(RuntimeEnabledFeatures::authorShadowDOMForAnyElementEnabled());
+ lazyReattachIfAttached();
+}
+
void HTMLMeterElement::trace(Visitor* visitor)
{
visitor->trace(m_value);
« no previous file with comments | « Source/core/html/HTMLMeterElement.h ('k') | Source/core/html/HTMLProgressElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698