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

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

Issue 16357011: Remove support for -webkit-color-correction (which we've never supported on (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: resolve merge conflicts, obey brace style changes Created 7 years, 6 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) 2006 Alexander Kellett <lypanov@kde.org> 2 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org>
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 4 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
5 * Copyright (C) 2007, 2008, 2009 Rob Buis <buis@kde.org> 5 * Copyright (C) 2007, 2008, 2009 Rob Buis <buis@kde.org>
6 * Copyright (C) 2009 Google, Inc. 6 * Copyright (C) 2009 Google, Inc.
7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 7 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
8 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com> 8 * Copyright (C) 2010 Patrick Gansterer <paroga@paroga.com>
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 FloatRect destRect = m_objectBoundingBox; 162 FloatRect destRect = m_objectBoundingBox;
163 FloatRect srcRect(0, 0, image->width(), image->height()); 163 FloatRect srcRect(0, 0, image->width(), image->height());
164 164
165 SVGImageElement* imageElement = static_cast<SVGImageElement*>(node()); 165 SVGImageElement* imageElement = static_cast<SVGImageElement*>(node());
166 imageElement->preserveAspectRatio().transformRect(destRect, srcRect); 166 imageElement->preserveAspectRatio().transformRect(destRect, srcRect);
167 167
168 bool useLowQualityScaling = false; 168 bool useLowQualityScaling = false;
169 if (style()->svgStyle()->bufferedRendering() != BR_STATIC) 169 if (style()->svgStyle()->bufferedRendering() != BR_STATIC)
170 useLowQualityScaling = ImageQualityController::imageQualityController()- >shouldPaintAtLowQuality(paintInfo.context, this, image.get(), image.get(), Layo utSize(destRect.size())); 170 useLowQualityScaling = ImageQualityController::imageQualityController()- >shouldPaintAtLowQuality(paintInfo.context, this, image.get(), image.get(), Layo utSize(destRect.size()));
171 171
172 paintInfo.context->drawImage(image.get(), style()->colorSpace(), destRect, s rcRect, CompositeSourceOver, DoNotRespectImageOrientation, useLowQualityScaling) ; 172 paintInfo.context->drawImage(image.get(), destRect, srcRect, CompositeSource Over, DoNotRespectImageOrientation, useLowQualityScaling);
173 } 173 }
174 174
175 void RenderSVGImage::invalidateBufferedForeground() 175 void RenderSVGImage::invalidateBufferedForeground()
176 { 176 {
177 m_bufferedForeground.clear(); 177 m_bufferedForeground.clear();
178 } 178 }
179 179
180 bool RenderSVGImage::nodeAtFloatPoint(const HitTestRequest& request, HitTestResu lt& result, const FloatPoint& pointInParent, HitTestAction hitTestAction) 180 bool RenderSVGImage::nodeAtFloatPoint(const HitTestRequest& request, HitTestResu lt& result, const FloatPoint& pointInParent, HitTestAction hitTestAction)
181 { 181 {
182 // We only draw in the forground phase, so we only hit-test then. 182 // We only draw in the forground phase, so we only hit-test then.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 224
225 void RenderSVGImage::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint &, const RenderLayerModelObject*) 225 void RenderSVGImage::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint &, const RenderLayerModelObject*)
226 { 226 {
227 // this is called from paint() after the localTransform has already been app lied 227 // this is called from paint() after the localTransform has already been app lied
228 IntRect contentRect = enclosingIntRect(repaintRectInLocalCoordinates()); 228 IntRect contentRect = enclosingIntRect(repaintRectInLocalCoordinates());
229 if (!contentRect.isEmpty()) 229 if (!contentRect.isEmpty())
230 rects.append(contentRect); 230 rects.append(contentRect);
231 } 231 }
232 232
233 } // namespace WebCore 233 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/style/StyleRareInheritedData.cpp ('k') | Source/core/rendering/svg/RenderSVGPath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698