| Index: third_party/WebKit/Source/core/css/CSSRuleList.h
|
| diff --git a/third_party/WebKit/Source/core/css/CSSRuleList.h b/third_party/WebKit/Source/core/css/CSSRuleList.h
|
| index 3d102efe846b13f7de54256eb3177bc1a25c6d23..78c660b484eef4e0332155f3fa1afe6551c0d306 100644
|
| --- a/third_party/WebKit/Source/core/css/CSSRuleList.h
|
| +++ b/third_party/WebKit/Source/core/css/CSSRuleList.h
|
| @@ -79,7 +79,7 @@ private:
|
| ~StaticCSSRuleList() override;
|
|
|
| unsigned length() const override { return m_rules.size(); }
|
| - CSSRule* item(unsigned index) const override;
|
| + CSSRule* item(unsigned index) const override { return index < m_rules.size() ? m_rules[index].get() : nullptr; }
|
|
|
| WillBeHeapVector<RefPtrWillBeMember<CSSRule>> m_rules;
|
| #if !ENABLE(OILPAN)
|
|
|