Commit 2eb574ce authored by Dongheun Kang's avatar Dongheun Kang Committed by Commit Bot

Remove unused variables in local_frame_view.cc

Bug: n/a

Change-Id: Iffd7f0bece86b9438b285da3a53ceea00104b77d
Reviewed-on: https://chromium-review.googlesource.com/1195383
Commit-Queue: Stefan Zager <szager@chromium.org>
Reviewed-by: default avatarStefan Zager <szager@chromium.org>
Reviewed-by: default avatarDavid Bokan <bokan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#587936}
parent 61e0b329
......@@ -3318,7 +3318,7 @@ LayoutPoint LocalFrameView::ConvertToContainingEmbeddedContentView(
FloatPoint LocalFrameView::ConvertToContainingEmbeddedContentView(
const FloatPoint& local_point) const {
if (LocalFrameView* parent = ParentFrameView()) {
if (ParentFrameView()) {
auto* layout_object = frame_->OwnerLayoutObject();
if (!layout_object)
return local_point;
......@@ -3476,10 +3476,8 @@ void LocalFrameView::AddScrollableArea(
scrollable_areas_ = new ScrollableAreaSet;
scrollable_areas_->insert(scrollable_area);
if (ScrollingCoordinator* scrolling_coordinator =
this->GetScrollingCoordinator()) {
if (GetScrollingCoordinator())
ScrollableAreasDidChange();
}
}
void LocalFrameView::RemoveScrollableArea(
......@@ -3488,10 +3486,8 @@ void LocalFrameView::RemoveScrollableArea(
return;
scrollable_areas_->erase(scrollable_area);
if (ScrollingCoordinator* scrolling_coordinator =
this->GetScrollingCoordinator()) {
if (GetScrollingCoordinator())
ScrollableAreasDidChange();
}
}
void LocalFrameView::AddAnimatingScrollableArea(
......@@ -3889,10 +3885,8 @@ void LocalFrameView::SetSelfVisible(bool visible) {
void LocalFrameView::Show() {
if (!IsSelfVisible()) {
SetSelfVisible(true);
if (ScrollingCoordinator* scrolling_coordinator =
this->GetScrollingCoordinator()) {
if (GetScrollingCoordinator())
GetScrollingContext()->SetScrollGestureRegionIsDirty(true);
}
SetNeedsCompositingUpdate(kCompositingUpdateRebuildTree);
if (IsParentVisible()) {
ForAllChildViewsAndPlugins(
......@@ -3912,10 +3906,8 @@ void LocalFrameView::Hide() {
});
}
SetSelfVisible(false);
if (ScrollingCoordinator* scrolling_coordinator =
this->GetScrollingCoordinator()) {
if (GetScrollingCoordinator())
GetScrollingContext()->SetScrollGestureRegionIsDirty(true);
}
SetNeedsCompositingUpdate(kCompositingUpdateRebuildTree);
}
}
......
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