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

Unified Diff: third_party/WebKit/Source/core/css/CSSMatrix.cpp

Issue 2802083002: Add use-counters for use of CSS parsing in WebkitCSSMatrix. (Closed)
Patch Set: none Created 3 years, 8 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 | « no previous file | third_party/WebKit/Source/core/css/WebKitCSSMatrix.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSMatrix.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSMatrix.cpp b/third_party/WebKit/Source/core/css/CSSMatrix.cpp
index 00e937709f5d0b396e4f059eed02a216d4d57118..afd86dfca56629cb52a2561f5fdf65d2ec7bd564 100644
--- a/third_party/WebKit/Source/core/css/CSSMatrix.cpp
+++ b/third_party/WebKit/Source/core/css/CSSMatrix.cpp
@@ -46,6 +46,10 @@ CSSMatrix* CSSMatrix::create(ExecutionContext* executionContext,
const String& s,
ExceptionState& exceptionState) {
UseCounter::count(executionContext, UseCounter::WebKitCSSMatrix);
+ if (!s.isEmpty()) {
+ UseCounter::count(executionContext,
+ UseCounter::WebkitCSSMatrixConstructFromString);
+ }
return new CSSMatrix(s, exceptionState);
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/WebKitCSSMatrix.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698