Commit a84ce659 authored by leviw@chromium.org's avatar leviw@chromium.org

Add UseCounter for RenderRuby

I'm curious how common Ruby really is, as it adds complexity to
Line Layout.

Review URL: https://codereview.chromium.org/672343002

git-svn-id: svn://svn.chromium.org/blink/trunk@184316 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 4af1b5c4
......@@ -543,6 +543,7 @@ public:
QuotedAnimationName = 571,
QuotedKeyframesRule = 572,
SrcsetDroppedCandidate = 573,
RenderRuby = 574,
WindowPostMessage = 574,
WindowPostMessageWithLegacyTargetOriginArgument = 575,
......
......@@ -32,6 +32,7 @@
#include "core/rendering/RenderRuby.h"
#include "core/frame/UseCounter.h"
#include "core/rendering/RenderRubyRun.h"
#include "core/rendering/style/RenderStyle.h"
#include "wtf/RefPtr.h"
......@@ -111,6 +112,7 @@ static inline RenderRubyRun* findRubyRunParent(RenderObject* child)
RenderRubyAsInline::RenderRubyAsInline(Element* element)
: RenderInline(element)
{
UseCounter::count(document(), UseCounter::RenderRuby);
}
RenderRubyAsInline::~RenderRubyAsInline()
......@@ -219,6 +221,7 @@ void RenderRubyAsInline::removeChild(RenderObject* child)
RenderRubyAsBlock::RenderRubyAsBlock(Element* element)
: RenderBlockFlow(element)
{
UseCounter::count(document(), UseCounter::RenderRuby);
}
RenderRubyAsBlock::~RenderRubyAsBlock()
......
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