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

Side by Side Diff: third_party/WebKit/WebCore/rendering/RenderSVGImage.cpp

Issue 21165: Revert the merge. Mac build is mysteriously broken. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 | Annotate | Revision Log
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 Rob Buis <buis@kde.org> 5 Copyright (C) 2007, 2008 Rob Buis <buis@kde.org>
6 6
7 This file is part of the WebKit project 7 This file is part of the WebKit project
8 8
9 This library is free software; you can redistribute it and/or 9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Library General Public 10 modify it under the terms of the GNU Library General Public
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 if (filter) 235 if (filter)
236 absoluteRect.unite(filter->filterBBoxForItemBBox(absoluteRect)); 236 absoluteRect.unite(filter->filterBBoxForItemBBox(absoluteRect));
237 #endif 237 #endif
238 238
239 if (!absoluteRect.isEmpty()) 239 if (!absoluteRect.isEmpty())
240 absoluteRect.inflate(1); // inflate 1 pixel for antialiasing 240 absoluteRect.inflate(1); // inflate 1 pixel for antialiasing
241 241
242 m_absoluteBounds = enclosingIntRect(absoluteRect); 242 m_absoluteBounds = enclosingIntRect(absoluteRect);
243 } 243 }
244 244
245 IntRect RenderSVGImage::clippedOverflowRectForRepaint(RenderBoxModelObject* /*re paintContainer*/) 245 IntRect RenderSVGImage::clippedOverflowRectForRepaint(RenderBox* /*repaintContai ner*/)
246 { 246 {
247 // FIXME: handle non-root repaintContainer 247 // FIXME: handle non-root repaintContainer
248 return m_absoluteBounds; 248 return m_absoluteBounds;
249 } 249 }
250 250
251 void RenderSVGImage::addFocusRingRects(GraphicsContext* graphicsContext, int, in t) 251 void RenderSVGImage::addFocusRingRects(GraphicsContext* graphicsContext, int, in t)
252 { 252 {
253 // this is called from paint() after the localTransform has already been app lied 253 // this is called from paint() after the localTransform has already been app lied
254 IntRect contentRect = enclosingIntRect(relativeBBox()); 254 IntRect contentRect = enclosingIntRect(relativeBBox());
255 graphicsContext->addFocusRingRect(contentRect); 255 graphicsContext->addFocusRingRect(contentRect);
256 } 256 }
257 257
258 void RenderSVGImage::absoluteRects(Vector<IntRect>& rects, int, int, bool) 258 void RenderSVGImage::absoluteRects(Vector<IntRect>& rects, int, int, bool)
259 { 259 {
260 rects.append(absoluteClippedOverflowRect()); 260 rects.append(absoluteClippedOverflowRect());
261 } 261 }
262 262
263 void RenderSVGImage::absoluteQuads(Vector<FloatQuad>& quads, bool) 263 void RenderSVGImage::absoluteQuads(Vector<FloatQuad>& quads, bool)
264 { 264 {
265 quads.append(FloatRect(absoluteClippedOverflowRect())); 265 quads.append(FloatRect(absoluteClippedOverflowRect()));
266 } 266 }
267 267
268 } 268 }
269 269
270 #endif // ENABLE(SVG) 270 #endif // ENABLE(SVG)
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/rendering/RenderSVGImage.h ('k') | third_party/WebKit/WebCore/rendering/RenderSVGInlineText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698