Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameSerializer.cpp ('k') | third_party/WebKit/Source/core/frame/ImageBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698