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

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

Issue 1428703004: Make <meter> transparent if -webkit-appearance:none or background CSS property is specified. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/MeterShadowElement.h
diff --git a/third_party/WebKit/Source/core/html/shadow/MeterShadowElement.h b/third_party/WebKit/Source/core/html/shadow/MeterShadowElement.h
index 198f2e72398cfb7696bda284cc418522cad5d360..04fda3ebc6ddf91d735b6f21bb5facc255cdf80c 100644
--- a/third_party/WebKit/Source/core/html/shadow/MeterShadowElement.h
+++ b/third_party/WebKit/Source/core/html/shadow/MeterShadowElement.h
@@ -38,6 +38,15 @@ namespace blink {
class HTMLMeterElement;
+class MeterFallbackElement : public HTMLDivElement {
+public:
+ DECLARE_NODE_FACTORY(MeterFallbackElement);
+
+private:
+ explicit MeterFallbackElement(Document&);
+ PassRefPtr<ComputedStyle> customStyleForLayoutObject() override;
+};
+
class MeterShadowElement : public HTMLDivElement {
protected:
explicit MeterShadowElement(Document&);
@@ -55,6 +64,7 @@ private:
explicit MeterInnerElement(Document&);
bool layoutObjectIsNeeded(const ComputedStyle&) override;
LayoutObject* createLayoutObject(const ComputedStyle&) override;
+ PassRefPtr<ComputedStyle> customStyleForLayoutObject() override;
};
class MeterBarElement final : public MeterShadowElement {

Powered by Google App Engine
This is Rietveld 408576698