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

Unified Diff: third_party/WebKit/Source/core/html/shadow/ProgressShadowElement.h

Issue 1957593003: Simplify PROGRESS shadow elements. (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/shadow/ProgressShadowElement.h
diff --git a/third_party/WebKit/Source/core/html/shadow/ProgressShadowElement.h b/third_party/WebKit/Source/core/html/shadow/ProgressShadowElement.h
index 314db7052c2e89ed1edfe0223d15588e999e191a..cf8d481689d72e205d51afb3d854d1424dac47b1 100644
--- a/third_party/WebKit/Source/core/html/shadow/ProgressShadowElement.h
+++ b/third_party/WebKit/Source/core/html/shadow/ProgressShadowElement.h
@@ -41,40 +41,14 @@ class HTMLProgressElement;
class ProgressShadowElement : public HTMLDivElement {
public:
- explicit ProgressShadowElement(Document&);
- HTMLProgressElement* progressElement() const;
-
-protected:
- bool layoutObjectIsNeeded(const ComputedStyle&) override;
-};
-
-class ProgressInnerElement final : public ProgressShadowElement {
-public:
- DECLARE_NODE_FACTORY(ProgressInnerElement);
+ DECLARE_NODE_FACTORY(ProgressShadowElement);
private:
- explicit ProgressInnerElement(Document&);
-
+ explicit ProgressShadowElement(Document&);
+ HTMLProgressElement* progressElement() const;
bool layoutObjectIsNeeded(const ComputedStyle&) override;
};
-class ProgressBarElement final : public ProgressShadowElement {
-public:
- DECLARE_NODE_FACTORY(ProgressBarElement);
-
-private:
- explicit ProgressBarElement(Document&);
-};
-
-class ProgressValueElement final : public ProgressShadowElement {
-public:
- DECLARE_NODE_FACTORY(ProgressValueElement);
- void setWidthPercentage(double);
-
-private:
- explicit ProgressValueElement(Document&);
-};
-
} // namespace blink
#endif // ProgressShadowElement_h

Powered by Google App Engine
This is Rietveld 408576698