Commit 0ec00836 authored by pdr@chromium.org's avatar pdr@chromium.org

Add use counter for <svg>

This patch adds a use counter for the SVGSVGElement. This will not
over count SVG, as we just record usecounter information once per page,
not per element on the page.

NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/24000002

git-svn-id: svn://svn.chromium.org/blink/trunk@157434 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent b0111750
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include "core/page/Frame.h" #include "core/page/Frame.h"
#include "core/page/FrameTree.h" #include "core/page/FrameTree.h"
#include "core/page/FrameView.h" #include "core/page/FrameView.h"
#include "core/page/UseCounter.h"
#include "core/platform/FloatConversion.h" #include "core/platform/FloatConversion.h"
#include "core/platform/graphics/FloatRect.h" #include "core/platform/graphics/FloatRect.h"
#include "core/platform/graphics/transforms/AffineTransform.h" #include "core/platform/graphics/transforms/AffineTransform.h"
...@@ -92,6 +93,8 @@ inline SVGSVGElement::SVGSVGElement(const QualifiedName& tagName, Document& doc) ...@@ -92,6 +93,8 @@ inline SVGSVGElement::SVGSVGElement(const QualifiedName& tagName, Document& doc)
ASSERT(hasTagName(SVGNames::svgTag)); ASSERT(hasTagName(SVGNames::svgTag));
ScriptWrappable::init(this); ScriptWrappable::init(this);
registerAnimatedPropertiesForSVGSVGElement(); registerAnimatedPropertiesForSVGSVGElement();
UseCounter::count(&doc, UseCounter::SVGSVGElement);
} }
PassRefPtr<SVGSVGElement> SVGSVGElement::create(const QualifiedName& tagName, Document& document) PassRefPtr<SVGSVGElement> SVGSVGElement::create(const QualifiedName& tagName, Document& document)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment