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

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

Issue 2763663002: Add counters for non-standard background presentation attributes on table (Closed)
Patch Set: Created 3 years, 9 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/html/HTMLTableElement.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLTablePartElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLTablePartElement.cpp b/third_party/WebKit/Source/core/html/HTMLTablePartElement.cpp
index 4809d5875ba475e24bca37880e968b79d91ab147..fee423e5259c92d3e7f488538697a88fa0b3a9a2 100644
--- a/third_party/WebKit/Source/core/html/HTMLTablePartElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLTablePartElement.cpp
@@ -31,6 +31,7 @@
#include "core/css/StylePropertySet.h"
#include "core/dom/Document.h"
#include "core/dom/shadow/FlatTreeTraversal.h"
+#include "core/frame/UseCounter.h"
#include "core/html/HTMLTableElement.h"
#include "core/html/parser/HTMLParserIdioms.h"
#include "platform/weborigin/Referrer.h"
@@ -56,6 +57,9 @@ void HTMLTablePartElement::collectStyleForPresentationAttribute(
} else if (name == backgroundAttr) {
String url = stripLeadingAndTrailingHTMLSpaces(value);
if (!url.isEmpty()) {
+ UseCounter::count(
+ document(),
+ UseCounter::HTMLTableElementPresentationAttributeBackground);
CSSImageValue* imageValue =
CSSImageValue::create(url, document().completeURL(url));
imageValue->setReferrer(Referrer(document().outgoingReferrer(),
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLTableElement.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698