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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutProgress.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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutProgress.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutProgress.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutProgress.cpp b/third_party/WebKit/Source/core/layout/LayoutProgress.cpp
index 9ec5d1bfa1ec38637c52c3963cb7a2c68be6927e..d5367f6c2645f72169c07da2f2e4caf3202c9184 100644
--- a/third_party/WebKit/Source/core/layout/LayoutProgress.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutProgress.cpp
@@ -27,7 +27,7 @@
namespace blink {
-LayoutProgress::LayoutProgress(HTMLElement* element)
+LayoutProgress::LayoutProgress(HTMLProgressElement* element)
: LayoutBlockFlow(element)
, m_position(HTMLProgressElement::InvalidPosition)
, m_animationStartTime(0)
@@ -111,14 +111,7 @@ void LayoutProgress::updateAnimationState()
HTMLProgressElement* LayoutProgress::progressElement() const
{
- if (!node())
- return nullptr;
-
- if (isHTMLProgressElement(*node()))
- return toHTMLProgressElement(node());
-
- ASSERT(node()->shadowHost());
- return toHTMLProgressElement(node()->shadowHost());
+ return toHTMLProgressElement(node());
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutProgress.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698