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

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

Issue 1958563002: Do not use LayoutProgress for a UA shadow element of a PROGRESS element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: third_party/WebKit/Source/core/html/HTMLProgressElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLProgressElement.cpp b/third_party/WebKit/Source/core/html/HTMLProgressElement.cpp
index 4a91dc4a1b0c761a4c224d89018d1e8b88db8135..2c59b386926f8d4be9e1c4aa9733d6cffb43454e 100644
--- a/third_party/WebKit/Source/core/html/HTMLProgressElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLProgressElement.cpp
@@ -67,10 +67,7 @@ LayoutProgress* HTMLProgressElement::layoutProgress() const
{
if (layoutObject() && layoutObject()->isProgress())
return toLayoutProgress(layoutObject());
-
- LayoutObject* layoutObject = userAgentShadowRoot()->firstChild()->layoutObject();
- ASSERT_WITH_SECURITY_IMPLICATION(!layoutObject || layoutObject->isProgress());
- return toLayoutProgress(layoutObject);
+ return nullptr;
}
void HTMLProgressElement::parseAttribute(const QualifiedName& name, const AtomicString& oldValue, const AtomicString& value)
« no previous file with comments | « third_party/WebKit/Source/core/css/html.css ('k') | third_party/WebKit/Source/core/html/shadow/ProgressShadowElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698