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

Side by Side Diff: Source/WebCore/rendering/svg/RenderSVGContainer.cpp

Issue 10540037: Merge 118608 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 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) 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 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007, 2008 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. All rights reserved. 5 * Copyright (C) 2009 Google, Inc. All rights reserved.
6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 6 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 m_needsBoundariesUpdate = false; 80 m_needsBoundariesUpdate = false;
81 81
82 // If our bounds changed, notify the parents. 82 // If our bounds changed, notify the parents.
83 RenderSVGModelObject::setNeedsBoundariesUpdate(); 83 RenderSVGModelObject::setNeedsBoundariesUpdate();
84 } 84 }
85 85
86 repainter.repaintAfterLayout(); 86 repainter.repaintAfterLayout();
87 setNeedsLayout(false); 87 setNeedsLayout(false);
88 } 88 }
89 89
90 void RenderSVGContainer::addChild(RenderObject* child, RenderObject* beforeChild )
91 {
92 RenderSVGModelObject::addChild(child, beforeChild);
93 SVGResourcesCache::clientWasAddedToTree(child, child->style());
94 }
95
96 void RenderSVGContainer::removeChild(RenderObject* child)
97 {
98 SVGResourcesCache::clientWillBeRemovedFromTree(child);
99 RenderSVGModelObject::removeChild(child);
100 }
101
102
90 bool RenderSVGContainer::selfWillPaint() 103 bool RenderSVGContainer::selfWillPaint()
91 { 104 {
92 SVGResources* resources = SVGResourcesCache::cachedResourcesForRenderObject( this); 105 SVGResources* resources = SVGResourcesCache::cachedResourcesForRenderObject( this);
93 return resources && resources->filter(); 106 return resources && resources->filter();
94 } 107 }
95 108
96 void RenderSVGContainer::paint(PaintInfo& paintInfo, const LayoutPoint&) 109 void RenderSVGContainer::paint(PaintInfo& paintInfo, const LayoutPoint&)
97 { 110 {
98 if (paintInfo.context->paintingDisabled()) 111 if (paintInfo.context->paintingDisabled())
99 return; 112 return;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 } 191 }
179 192
180 // Spec: Only graphical elements can be targeted by the mouse, period. 193 // Spec: Only graphical elements can be targeted by the mouse, period.
181 // 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." 194 // 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."
182 return false; 195 return false;
183 } 196 }
184 197
185 } 198 }
186 199
187 #endif // ENABLE(SVG) 200 #endif // ENABLE(SVG)
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/svg/RenderSVGContainer.h ('k') | Source/WebCore/rendering/svg/RenderSVGInline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698