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

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

Issue 134473008: Remove CSS regions support, keeping a bare minimum to support "region-based" multicol. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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) 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 SVGResources* resources = SVGResourcesCache::cachedResourcesForRenderObj ect(this); 251 SVGResources* resources = SVGResourcesCache::cachedResourcesForRenderObj ect(this);
252 if (!resources || !resources->filter()) 252 if (!resources || !resources->filter())
253 return; 253 return;
254 } 254 }
255 255
256 // Make a copy of the PaintInfo because applyTransform will modify the damag e rect. 256 // Make a copy of the PaintInfo because applyTransform will modify the damag e rect.
257 PaintInfo childPaintInfo(paintInfo); 257 PaintInfo childPaintInfo(paintInfo);
258 childPaintInfo.context->save(); 258 childPaintInfo.context->save();
259 259
260 // Apply initial viewport clip - not affected by overflow handling 260 // Apply initial viewport clip - not affected by overflow handling
261 childPaintInfo.context->clip(pixelSnappedIntRect(overflowClipRect(paintOffse t, paintInfo.renderRegion))); 261 childPaintInfo.context->clip(pixelSnappedIntRect(overflowClipRect(paintOffse t)));
262 262
263 // Convert from container offsets (html renderers) to a relative transform ( svg renderers). 263 // Convert from container offsets (html renderers) to a relative transform ( svg renderers).
264 // Transform from our paint container's coordinate system to our local coord s. 264 // Transform from our paint container's coordinate system to our local coord s.
265 IntPoint adjustedPaintOffset = roundedIntPoint(paintOffset); 265 IntPoint adjustedPaintOffset = roundedIntPoint(paintOffset);
266 childPaintInfo.applyTransform(AffineTransform::translation(adjustedPaintOffs et.x(), adjustedPaintOffset.y()) * localToBorderBoxTransform()); 266 childPaintInfo.applyTransform(AffineTransform::translation(adjustedPaintOffs et.x(), adjustedPaintOffset.y()) * localToBorderBoxTransform());
267 267
268 // SVGRenderingContext must be destroyed before we restore the childPaintInf o.context, because a filter may have 268 // SVGRenderingContext must be destroyed before we restore the childPaintInf o.context, because a filter may have
269 // changed the context and it is only reverted when the SVGRenderingContext destructor finishes applying the filter. 269 // changed the context and it is only reverted when the SVGRenderingContext destructor finishes applying the filter.
270 { 270 {
271 SVGRenderingContext renderingContext; 271 SVGRenderingContext renderingContext;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 442
443 bool RenderSVGRoot::hasRelativeLogicalHeight() const 443 bool RenderSVGRoot::hasRelativeLogicalHeight() const
444 { 444 {
445 SVGSVGElement* svg = toSVGSVGElement(node()); 445 SVGSVGElement* svg = toSVGSVGElement(node());
446 ASSERT(svg); 446 ASSERT(svg);
447 447
448 return svg->intrinsicHeight(SVGSVGElement::IgnoreCSSProperties).isPercent(); 448 return svg->intrinsicHeight(SVGSVGElement::IgnoreCSSProperties).isPercent();
449 } 449 }
450 450
451 } 451 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698