Commit 18a62764 authored by Philip Rogers's avatar Philip Rogers Committed by Commit Bot

[RootLayerScrolls] Remove internal LFV check in ScrollableAreaForNode

This internals-only code is not needed post-rls.

BUG=823365

Change-Id: I48e9a149230a89bc235e3323a132420764fbc394
Reviewed-on: https://chromium-review.googlesource.com/1154321Reviewed-by: default avatarSteve Kobes <skobes@chromium.org>
Commit-Queue: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#580333}
parent ff20e238
...@@ -242,12 +242,6 @@ static ScrollableArea* ScrollableAreaForNode(Node* node) { ...@@ -242,12 +242,6 @@ static ScrollableArea* ScrollableAreaForNode(Node* node) {
if (!node) if (!node)
return nullptr; return nullptr;
if (node->IsDocumentNode()) {
// This can be removed after root layer scrolling is enabled.
if (LocalFrameView* frame_view = ToDocument(node)->View())
return frame_view->LayoutViewport();
}
LayoutObject* layout_object = node->GetLayoutObject(); LayoutObject* layout_object = node->GetLayoutObject();
if (!layout_object || !layout_object->IsBox()) if (!layout_object || !layout_object->IsBox())
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