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

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

Issue 1964223002: Merge "Count usage of PROGRESS element with -webkit-appearance:none." to M51 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
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/frame/UseCounter.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/html/HTMLProgressElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLProgressElement.cpp b/third_party/WebKit/Source/core/html/HTMLProgressElement.cpp
index 34d120b1fdbd0c54d21d30dceb5bf79ed4210d1a..24f40e00b0dacbc554d60be8fa326b5787c94dcd 100644
--- a/third_party/WebKit/Source/core/html/HTMLProgressElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLProgressElement.cpp
@@ -59,8 +59,11 @@ RawPtr<HTMLProgressElement> HTMLProgressElement::create(Document& document)
LayoutObject* HTMLProgressElement::createLayoutObject(const ComputedStyle& style)
{
- if (!style.hasAppearance() || openShadowRoot())
+ if (!style.hasAppearance()) {
+ UseCounter::count(document(), UseCounter::ProgressElementWithNoneAppearance);
return LayoutObject::createObject(this, style);
+ }
+ UseCounter::count(document(), UseCounter::ProgressElementWithProgressBarAppearance);
return new LayoutProgress(this);
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698