From eb6813df8a49dbe1e9afa3994f1347ec6329340f Mon Sep 17 00:00:00 2001 From: wkorman Date: Fri, 25 Mar 2016 18:04:00 -0700 Subject: Make sure we have a scrollable area before delegating visual rect call. BUG=598016 Review URL: https://codereview.chromium.org/1833313002 Cr-Commit-Position: refs/heads/master@{#383427} --- third_party/WebKit/Source/platform/scroll/Scrollbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp b/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp index 0c539b9..420833e 100644 --- a/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp +++ b/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp @@ -611,7 +611,7 @@ float Scrollbar::scrollableAreaTargetPos() const LayoutRect Scrollbar::visualRect() const { - return getScrollableArea()->visualRectForScrollbarParts(); + return m_scrollableArea ? m_scrollableArea->visualRectForScrollbarParts() : LayoutRect(); } void Scrollbar::setNeedsPaintInvalidation(ScrollbarPart invalidParts) -- cgit v1.1