| Index: third_party/WebKit/Source/core/frame/FrameView.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| index 5c587b2da1219ae46817e60a9c7ed7da00919e99..b037474d67294cdfff59813ae3f26cb24cc98466 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -321,15 +321,16 @@ void FrameView::setupRenderThrottling() {
|
| return;
|
|
|
| m_visibilityObserver = new ElementVisibilityObserver(
|
| - targetElement, WTF::bind(
|
| - [](FrameView* frameView, bool isVisible) {
|
| - if (!frameView)
|
| - return;
|
| - frameView->updateRenderThrottlingStatus(
|
| - !isVisible, frameView->m_subtreeThrottled);
|
| - frameView->maybeRecordLoadReason();
|
| - },
|
| - wrapWeakPersistent(this)));
|
| + targetElement,
|
| + WTF::bind(
|
| + [](FrameView* frameView, bool isVisible) {
|
| + if (!frameView)
|
| + return;
|
| + frameView->updateRenderThrottlingStatus(
|
| + !isVisible, frameView->m_subtreeThrottled);
|
| + frameView->maybeRecordLoadReason();
|
| + },
|
| + wrapWeakPersistent(this)));
|
| m_visibilityObserver->start();
|
| }
|
|
|
| @@ -2038,10 +2039,11 @@ void FrameView::updateCompositedSelectionIfNeeded() {
|
|
|
| CompositedSelection selection;
|
| LocalFrame* focusedFrame = page->focusController().focusedFrame();
|
| - LocalFrame* localFrame = (focusedFrame && (focusedFrame->localFrameRoot() ==
|
| - m_frame->localFrameRoot()))
|
| - ? focusedFrame
|
| - : nullptr;
|
| + LocalFrame* localFrame =
|
| + (focusedFrame &&
|
| + (focusedFrame->localFrameRoot() == m_frame->localFrameRoot()))
|
| + ? focusedFrame
|
| + : nullptr;
|
|
|
| if (localFrame && computeCompositedSelection(*localFrame, selection)) {
|
| page->chromeClient().updateCompositedSelection(localFrame, selection);
|
|
|