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

Unified Diff: Source/core/html/HTMLProgressElement.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/HTMLProgressElement.h ('k') | no next file » | 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 5cb56b1376c9784e47cced32b98081b07b8d533b..617de1b2617719a9c95c593ab733d62a63c13f16 100644
--- a/Source/core/html/HTMLProgressElement.cpp
+++ b/Source/core/html/HTMLProgressElement.cpp
@@ -170,6 +170,12 @@ bool HTMLProgressElement::shouldAppearIndeterminate() const
return !isDeterminate();
}
+void HTMLProgressElement::willAddFirstAuthorShadowRoot()
+{
+ ASSERT(RuntimeEnabledFeatures::authorShadowDOMForAnyElementEnabled());
+ lazyReattachIfAttached();
+}
+
void HTMLProgressElement::trace(Visitor* visitor)
{
visitor->trace(m_value);
« no previous file with comments | « Source/core/html/HTMLProgressElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698