Commit 9dc36380 authored by ager@chromium.org's avatar ager@chromium.org

Oilpan: Fix the CSSKeyframesRule destructor.

The m_childRuleCSSOMWrappers vector is in the heap and we should not
touch it. Not even to get its size.

R=haraken@chromium.org, kouhei@chromium.org, wibling@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@168373 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 02b0eb48
...@@ -96,9 +96,8 @@ CSSKeyframesRule::CSSKeyframesRule(StyleRuleKeyframes* keyframesRule, CSSStyleSh ...@@ -96,9 +96,8 @@ CSSKeyframesRule::CSSKeyframesRule(StyleRuleKeyframes* keyframesRule, CSSStyleSh
CSSKeyframesRule::~CSSKeyframesRule() CSSKeyframesRule::~CSSKeyframesRule()
{ {
ASSERT(m_childRuleCSSOMWrappers.size() == m_keyframesRule->keyframes().size());
#if !ENABLE(OILPAN) #if !ENABLE(OILPAN)
ASSERT(m_childRuleCSSOMWrappers.size() == m_keyframesRule->keyframes().size());
for (unsigned i = 0; i < m_childRuleCSSOMWrappers.size(); ++i) { for (unsigned i = 0; i < m_childRuleCSSOMWrappers.size(); ++i) {
if (m_childRuleCSSOMWrappers[i]) if (m_childRuleCSSOMWrappers[i])
m_childRuleCSSOMWrappers[i]->setParentRule(0); m_childRuleCSSOMWrappers[i]->setParentRule(0);
......
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