[Layout API] Fix layoutViewItem() null check in Element.cpp
There are two instances where we are creating a LayoutViewItem and
incorrectly checking whether the underlying layout view is null. At
this stage of the block layout API, the correct way is to call the
isNull() method; checking whether the layoutViewItem object itself
is null does not tell you whether the underlying layout view is null.
BUG=499321
Review-Url: https://codereview.chromium.org/2148043003
Cr-Commit-Position: refs/heads/master@{#405645}
1 file changed