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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutView.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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc.
4 * All rights reserved. 4 * All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 bool widthChanged, 208 bool widthChanged,
209 bool heightChanged) { 209 bool heightChanged) {
210 // When background-attachment is 'fixed', we treat the viewport (instead of 210 // When background-attachment is 'fixed', we treat the viewport (instead of
211 // the 'root' i.e. html or body) as the background positioning area, and we 211 // the 'root' i.e. html or body) as the background positioning area, and we
212 // should fully invalidate on viewport resize if the background image is not 212 // should fully invalidate on viewport resize if the background image is not
213 // composited and needs full paint invalidation on background positioning area 213 // composited and needs full paint invalidation on background positioning area
214 // resize. 214 // resize.
215 if (style()->hasFixedBackgroundImage() && 215 if (style()->hasFixedBackgroundImage() &&
216 (!m_compositor || 216 (!m_compositor ||
217 !m_compositor->needsFixedRootBackgroundLayer(layer()))) { 217 !m_compositor->needsFixedRootBackgroundLayer(layer()))) {
218 if ((widthChanged && mustInvalidateFillLayersPaintOnWidthChange( 218 if ((widthChanged &&
219 style()->backgroundLayers())) || 219 mustInvalidateFillLayersPaintOnWidthChange(
220 (heightChanged && mustInvalidateFillLayersPaintOnHeightChange( 220 style()->backgroundLayers())) ||
221 style()->backgroundLayers()))) 221 (heightChanged &&
222 mustInvalidateFillLayersPaintOnHeightChange(
223 style()->backgroundLayers())))
222 setShouldDoFullPaintInvalidation(PaintInvalidationBoundsChange); 224 setShouldDoFullPaintInvalidation(PaintInvalidationBoundsChange);
223 } 225 }
224 } 226 }
225 227
226 void LayoutView::layout() { 228 void LayoutView::layout() {
227 if (!document().paginated()) 229 if (!document().paginated())
228 setPageLogicalHeight(LayoutUnit()); 230 setPageLogicalHeight(LayoutUnit());
229 231
230 // TODO(wangxianzhu): Move this into ViewPaintInvalidator when 232 // TODO(wangxianzhu): Move this into ViewPaintInvalidator when
231 // rootLayerScrolling is permanently enabled. 233 // rootLayerScrolling is permanently enabled.
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 bool LayoutView::paintedOutputOfObjectHasNoEffectRegardlessOfSize() const { 1051 bool LayoutView::paintedOutputOfObjectHasNoEffectRegardlessOfSize() const {
1050 // Frame scroll corner is painted using LayoutView as the display item client. 1052 // Frame scroll corner is painted using LayoutView as the display item client.
1051 if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled() && 1053 if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled() &&
1052 (frameView()->horizontalScrollbar() || frameView()->verticalScrollbar())) 1054 (frameView()->horizontalScrollbar() || frameView()->verticalScrollbar()))
1053 return false; 1055 return false;
1054 1056
1055 return LayoutBlockFlow::paintedOutputOfObjectHasNoEffectRegardlessOfSize(); 1057 return LayoutBlockFlow::paintedOutputOfObjectHasNoEffectRegardlessOfSize();
1056 } 1058 }
1057 1059
1058 } // namespace blink 1060 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698