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

Side by Side Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp

Issue 2816873002: Update PaintLayer size during layout, not after.
Patch Set: Speculatively remove call to UpdateScrollbars() Created 3 years, 7 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) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2007, 2008, 2009 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007, 2008, 2009 Rob Buis <buis@kde.org>
4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 Google, Inc. 5 * Copyright (C) 2009 Google, Inc.
6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 overflow_.reset(); 200 overflow_.reset();
201 AddVisualEffectOverflow(); 201 AddVisualEffectOverflow();
202 202
203 if (!ShouldApplyViewportClip()) { 203 if (!ShouldApplyViewportClip()) {
204 FloatRect content_visual_rect = VisualRectInLocalSVGCoordinates(); 204 FloatRect content_visual_rect = VisualRectInLocalSVGCoordinates();
205 content_visual_rect = 205 content_visual_rect =
206 local_to_border_box_transform_.MapRect(content_visual_rect); 206 local_to_border_box_transform_.MapRect(content_visual_rect);
207 AddContentsVisualOverflow(EnclosingLayoutRect(content_visual_rect)); 207 AddContentsVisualOverflow(EnclosingLayoutRect(content_visual_rect));
208 } 208 }
209 209
210 UpdateLayerTransformAfterLayout(); 210 UpdateAfterLayout();
211 has_box_decoration_background_ = IsDocumentElement() 211 has_box_decoration_background_ = IsDocumentElement()
212 ? StyleRef().HasBoxDecorationBackground() 212 ? StyleRef().HasBoxDecorationBackground()
213 : HasBoxDecorationBackground(); 213 : HasBoxDecorationBackground();
214 InvalidateBackgroundObscurationStatus(); 214 InvalidateBackgroundObscurationStatus();
215 215
216 ClearNeedsLayout(); 216 ClearNeedsLayout();
217 } 217 }
218 218
219 bool LayoutSVGRoot::ShouldApplyViewportClip() const { 219 bool LayoutSVGRoot::ShouldApplyViewportClip() const {
220 // the outermost svg is clipped if auto, and svg document roots are always 220 // the outermost svg is clipped if auto, and svg document roots are always
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 if (result.AddNodeToListBasedTestResult(GetNode(), location_in_container, 486 if (result.AddNodeToListBasedTestResult(GetNode(), location_in_container,
487 bounds_rect) == kStopHitTesting) 487 bounds_rect) == kStopHitTesting)
488 return true; 488 return true;
489 } 489 }
490 } 490 }
491 491
492 return false; 492 return false;
493 } 493 }
494 494
495 } // namespace blink 495 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/layout_ng_block_flow.cc ('k') | third_party/WebKit/Source/core/page/ChromeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698