Commit 4de569e7 authored by szager's avatar szager Committed by Commit bot

Use hasRareData() rather than null-checking elementRareData().

R=eae@chromium.org,atotic@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2010683002
Cr-Commit-Position: refs/heads/master@{#397851}
parent 1812419e
...@@ -2615,7 +2615,7 @@ Node* Element::insertAdjacent(const String& where, Node* newChild, ExceptionStat ...@@ -2615,7 +2615,7 @@ Node* Element::insertAdjacent(const String& where, Node* newChild, ExceptionStat
NodeIntersectionObserverData* Element::intersectionObserverData() const NodeIntersectionObserverData* Element::intersectionObserverData() const
{ {
if (elementRareData()) if (hasRareData())
return elementRareData()->intersectionObserverData(); return elementRareData()->intersectionObserverData();
return nullptr; return nullptr;
} }
......
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