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

Side by Side Diff: Source/core/rendering/svg/RenderSVGBlock.cpp

Issue 802833003: Remove the SVG paint culling optimization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove spurious lines Created 6 years 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 { 119 {
120 ASSERT_NOT_REACHED(); 120 ASSERT_NOT_REACHED();
121 return false; 121 return false;
122 } 122 }
123 123
124 void RenderSVGBlock::invalidateTreeIfNeeded(const PaintInvalidationState& paintI nvalidationState) 124 void RenderSVGBlock::invalidateTreeIfNeeded(const PaintInvalidationState& paintI nvalidationState)
125 { 125 {
126 if (!shouldCheckForPaintInvalidation(paintInvalidationState)) 126 if (!shouldCheckForPaintInvalidation(paintInvalidationState))
127 return; 127 return;
128 128
129 if (paintInvalidationState.cachedOffsetsEnabled())
130 m_cachedPaintInvalidationTransform = paintInvalidationState.svgTransform ();
fs 2014/12/17 10:16:10 I think you need an else-branch here which calls t
pdr. 2014/12/18 22:22:41 Took a while to create a testcase but you were abs
131
129 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState); 132 ForceHorriblySlowRectMapping slowRectMapping(&paintInvalidationState);
130 RenderBlockFlow::invalidateTreeIfNeeded(paintInvalidationState); 133 RenderBlockFlow::invalidateTreeIfNeeded(paintInvalidationState);
131 } 134 }
132 135
133 } 136 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698