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

Side by Side Diff: third_party/WebKit/WebCore/rendering/RenderSVGContainer.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) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 2004, 2005, 2007, 2008 Rob Buis <buis@kde.org> 3 2004, 2005, 2007, 2008 Rob Buis <buis@kde.org>
4 2007 Eric Seidel <eric@webkit.org> 4 2007 Eric Seidel <eric@webkit.org>
5 5
6 This file is part of the KDE project 6 This file is part of the KDE project
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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSe lfOutline) && style()->outlineWidth() && style()->visibility() == VISIBLE) 206 if ((paintInfo.phase == PaintPhaseOutline || paintInfo.phase == PaintPhaseSe lfOutline) && style()->outlineWidth() && style()->visibility() == VISIBLE)
207 paintOutline(paintInfo.context, m_absoluteBounds.x(), m_absoluteBounds.y (), m_absoluteBounds.width(), m_absoluteBounds.height(), style()); 207 paintOutline(paintInfo.context, m_absoluteBounds.x(), m_absoluteBounds.y (), m_absoluteBounds.width(), m_absoluteBounds.height(), style());
208 } 208 }
209 209
210 TransformationMatrix RenderSVGContainer::viewportTransform() const 210 TransformationMatrix RenderSVGContainer::viewportTransform() const
211 { 211 {
212 return TransformationMatrix(); 212 return TransformationMatrix();
213 } 213 }
214 214
215 IntRect RenderSVGContainer::clippedOverflowRectForRepaint(RenderBoxModelObject* repaintContainer) 215 IntRect RenderSVGContainer::clippedOverflowRectForRepaint(RenderBox* repaintCont ainer)
216 { 216 {
217 FloatRect repaintRect; 217 FloatRect repaintRect;
218 218
219 for (RenderObject* current = firstChild(); current != 0; current = current-> nextSibling()) 219 for (RenderObject* current = firstChild(); current != 0; current = current-> nextSibling())
220 repaintRect.unite(current->clippedOverflowRectForRepaint(repaintContaine r)); 220 repaintRect.unite(current->clippedOverflowRectForRepaint(repaintContaine r));
221 221
222 #if ENABLE(SVG_FILTERS) 222 #if ENABLE(SVG_FILTERS)
223 // Filters can expand the bounding box 223 // Filters can expand the bounding box
224 SVGResourceFilter* filter = getFilterById(document(), style()->svgStyle()->f ilter()); 224 SVGResourceFilter* filter = getFilterById(document(), style()->svgStyle()->f ilter());
225 if (filter) 225 if (filter)
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 updateHitTestResult(result, IntPoint(_x - _tx, _y - _ty)); 273 updateHitTestResult(result, IntPoint(_x - _tx, _y - _ty));
274 return true; 274 return true;
275 } 275 }
276 } 276 }
277 277
278 // Spec: Only graphical elements can be targeted by the mouse, period. 278 // Spec: Only graphical elements can be targeted by the mouse, period.
279 // 16.4: "If there are no graphics elements whose relevant graphics content is under the pointer (i.e., there is no target element), the event is not dispat ched." 279 // 16.4: "If there are no graphics elements whose relevant graphics content is under the pointer (i.e., there is no target element), the event is not dispat ched."
280 return false; 280 return false;
281 } 281 }
282 282
283 IntRect RenderSVGContainer::outlineBoundsForRepaint(RenderBoxModelObject* /*repa intContainer*/) const 283 IntRect RenderSVGContainer::outlineBoundsForRepaint(RenderBox* /*repaintContaine r*/) const
284 { 284 {
285 // FIXME: handle non-root repaintContainer 285 // FIXME: handle non-root repaintContainer
286 IntRect result = m_absoluteBounds; 286 IntRect result = m_absoluteBounds;
287 adjustRectForOutlineAndShadow(result); 287 adjustRectForOutlineAndShadow(result);
288 return result; 288 return result;
289 } 289 }
290 290
291 } 291 }
292 292
293 #endif // ENABLE(SVG) 293 #endif // ENABLE(SVG)
294 294
295 // vim:ts=4:noet 295 // vim:ts=4:noet
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698