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

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

Issue 930833003: Move and rename RenderReplaced and RenderHTMLCanvas to Layout{Replaced,HTMLCanvas}. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: No need to declare renderName() at all. Created 5 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 23 matching lines...) Expand all
34 #include "core/rendering/RenderPart.h" 34 #include "core/rendering/RenderPart.h"
35 #include "core/rendering/RenderView.h" 35 #include "core/rendering/RenderView.h"
36 #include "core/svg/SVGElement.h" 36 #include "core/svg/SVGElement.h"
37 #include "core/svg/SVGSVGElement.h" 37 #include "core/svg/SVGSVGElement.h"
38 #include "core/svg/graphics/SVGImage.h" 38 #include "core/svg/graphics/SVGImage.h"
39 #include "platform/LengthFunctions.h" 39 #include "platform/LengthFunctions.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 RenderSVGRoot::RenderSVGRoot(SVGElement* node) 43 RenderSVGRoot::RenderSVGRoot(SVGElement* node)
44 : RenderReplaced(node) 44 : LayoutReplaced(node)
45 , m_objectBoundingBoxValid(false) 45 , m_objectBoundingBoxValid(false)
46 , m_isLayoutSizeChanged(false) 46 , m_isLayoutSizeChanged(false)
47 , m_needsBoundariesOrTransformUpdate(true) 47 , m_needsBoundariesOrTransformUpdate(true)
48 , m_hasBoxDecorationBackground(false) 48 , m_hasBoxDecorationBackground(false)
49 , m_hasNonIsolatedBlendingDescendants(false) 49 , m_hasNonIsolatedBlendingDescendants(false)
50 , m_hasNonIsolatedBlendingDescendantsDirty(false) 50 , m_hasNonIsolatedBlendingDescendantsDirty(false)
51 { 51 {
52 } 52 }
53 53
54 RenderSVGRoot::~RenderSVGRoot() 54 RenderSVGRoot::~RenderSVGRoot()
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 ASSERT(svg); 120 ASSERT(svg);
121 121
122 // When we're embedded through SVGImage (border-image/background-image/<html :img>/...) we're forced to resize to a specific size. 122 // When we're embedded through SVGImage (border-image/background-image/<html :img>/...) we're forced to resize to a specific size.
123 if (!m_containerSize.isEmpty()) 123 if (!m_containerSize.isEmpty())
124 return m_containerSize.width(); 124 return m_containerSize.width();
125 125
126 if (isEmbeddedThroughFrameContainingSVGDocument()) 126 if (isEmbeddedThroughFrameContainingSVGDocument())
127 return containingBlock()->availableLogicalWidth(); 127 return containingBlock()->availableLogicalWidth();
128 128
129 if (style()->logicalWidth().isSpecified() || style()->logicalMaxWidth().isSp ecified()) 129 if (style()->logicalWidth().isSpecified() || style()->logicalMaxWidth().isSp ecified())
130 return RenderReplaced::computeReplacedLogicalWidth(shouldComputePreferre d); 130 return LayoutReplaced::computeReplacedLogicalWidth(shouldComputePreferre d);
131 131
132 if (svg->hasIntrinsicWidth()) 132 if (svg->hasIntrinsicWidth())
133 return resolveLengthAttributeForSVG(svg->intrinsicWidth(), style()->effe ctiveZoom(), containingBlock()->availableLogicalWidth().toFloat()); 133 return resolveLengthAttributeForSVG(svg->intrinsicWidth(), style()->effe ctiveZoom(), containingBlock()->availableLogicalWidth().toFloat());
134 134
135 // SVG embedded via SVGImage (background-image/border-image/etc) / Inline SV G. 135 // SVG embedded via SVGImage (background-image/border-image/etc) / Inline SV G.
136 return RenderReplaced::computeReplacedLogicalWidth(shouldComputePreferred); 136 return LayoutReplaced::computeReplacedLogicalWidth(shouldComputePreferred);
137 } 137 }
138 138
139 LayoutUnit RenderSVGRoot::computeReplacedLogicalHeight() const 139 LayoutUnit RenderSVGRoot::computeReplacedLogicalHeight() const
140 { 140 {
141 SVGSVGElement* svg = toSVGSVGElement(node()); 141 SVGSVGElement* svg = toSVGSVGElement(node());
142 ASSERT(svg); 142 ASSERT(svg);
143 143
144 // When we're embedded through SVGImage (border-image/background-image/<html :img>/...) we're forced to resize to a specific size. 144 // When we're embedded through SVGImage (border-image/background-image/<html :img>/...) we're forced to resize to a specific size.
145 if (!m_containerSize.isEmpty()) 145 if (!m_containerSize.isEmpty())
146 return m_containerSize.height(); 146 return m_containerSize.height();
147 147
148 if (isEmbeddedThroughFrameContainingSVGDocument()) 148 if (isEmbeddedThroughFrameContainingSVGDocument())
149 return containingBlock()->availableLogicalHeight(IncludeMarginBorderPadd ing); 149 return containingBlock()->availableLogicalHeight(IncludeMarginBorderPadd ing);
150 150
151 if (style()->logicalHeight().isSpecified() || style()->logicalMaxHeight().is Specified()) 151 if (style()->logicalHeight().isSpecified() || style()->logicalMaxHeight().is Specified())
152 return RenderReplaced::computeReplacedLogicalHeight(); 152 return LayoutReplaced::computeReplacedLogicalHeight();
153 153
154 if (svg->hasIntrinsicHeight()) 154 if (svg->hasIntrinsicHeight())
155 return resolveLengthAttributeForSVG(svg->intrinsicHeight(), style()->eff ectiveZoom(), containingBlock()->availableLogicalHeight(IncludeMarginBorderPaddi ng).toFloat()); 155 return resolveLengthAttributeForSVG(svg->intrinsicHeight(), style()->eff ectiveZoom(), containingBlock()->availableLogicalHeight(IncludeMarginBorderPaddi ng).toFloat());
156 156
157 // SVG embedded via SVGImage (background-image/border-image/etc) / Inline SV G. 157 // SVG embedded via SVGImage (background-image/border-image/etc) / Inline SV G.
158 return RenderReplaced::computeReplacedLogicalHeight(); 158 return LayoutReplaced::computeReplacedLogicalHeight();
159 } 159 }
160 160
161 void RenderSVGRoot::layout() 161 void RenderSVGRoot::layout()
162 { 162 {
163 ASSERT(needsLayout()); 163 ASSERT(needsLayout());
164 164
165 bool needsLayout = selfNeedsLayout(); 165 bool needsLayout = selfNeedsLayout();
166 166
167 LayoutSize oldSize = size(); 167 LayoutSize oldSize = size();
168 updateLogicalWidth(); 168 updateLogicalWidth();
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 void RenderSVGRoot::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint& paintOffset) 211 void RenderSVGRoot::paintReplaced(const PaintInfo& paintInfo, const LayoutPoint& paintOffset)
212 { 212 {
213 SVGRootPainter(*this).paint(paintInfo, paintOffset); 213 SVGRootPainter(*this).paint(paintInfo, paintOffset);
214 } 214 }
215 215
216 void RenderSVGRoot::willBeDestroyed() 216 void RenderSVGRoot::willBeDestroyed()
217 { 217 {
218 RenderBlock::removePercentHeightDescendant(const_cast<RenderSVGRoot*>(this)) ; 218 RenderBlock::removePercentHeightDescendant(const_cast<RenderSVGRoot*>(this)) ;
219 219
220 SVGResourcesCache::clientDestroyed(this); 220 SVGResourcesCache::clientDestroyed(this);
221 RenderReplaced::willBeDestroyed(); 221 LayoutReplaced::willBeDestroyed();
222 } 222 }
223 223
224 void RenderSVGRoot::styleDidChange(StyleDifference diff, const LayoutStyle* oldS tyle) 224 void RenderSVGRoot::styleDidChange(StyleDifference diff, const LayoutStyle* oldS tyle)
225 { 225 {
226 if (diff.needsFullLayout()) 226 if (diff.needsFullLayout())
227 setNeedsBoundariesUpdate(); 227 setNeedsBoundariesUpdate();
228 if (diff.needsPaintInvalidation()) { 228 if (diff.needsPaintInvalidation()) {
229 // Box decorations may have appeared/disappeared - recompute status. 229 // Box decorations may have appeared/disappeared - recompute status.
230 m_hasBoxDecorationBackground = calculateHasBoxDecorations(); 230 m_hasBoxDecorationBackground = calculateHasBoxDecorations();
231 } 231 }
232 232
233 RenderReplaced::styleDidChange(diff, oldStyle); 233 LayoutReplaced::styleDidChange(diff, oldStyle);
234 SVGResourcesCache::clientStyleChanged(this, diff, styleRef()); 234 SVGResourcesCache::clientStyleChanged(this, diff, styleRef());
235 } 235 }
236 236
237 bool RenderSVGRoot::isChildAllowed(LayoutObject* child, const LayoutStyle&) cons t 237 bool RenderSVGRoot::isChildAllowed(LayoutObject* child, const LayoutStyle&) cons t
238 { 238 {
239 return child->isSVG() && !(child->isSVGInline() || child->isSVGInlineText()) ; 239 return child->isSVG() && !(child->isSVGInline() || child->isSVGInlineText()) ;
240 } 240 }
241 241
242 void RenderSVGRoot::addChild(LayoutObject* child, LayoutObject* beforeChild) 242 void RenderSVGRoot::addChild(LayoutObject* child, LayoutObject* beforeChild)
243 { 243 {
244 RenderReplaced::addChild(child, beforeChild); 244 LayoutReplaced::addChild(child, beforeChild);
245 SVGResourcesCache::clientWasAddedToTree(child, child->styleRef()); 245 SVGResourcesCache::clientWasAddedToTree(child, child->styleRef());
246 246
247 bool shouldIsolateDescendants = (child->isBlendingAllowed() && child->style( )->hasBlendMode()) || child->hasNonIsolatedBlendingDescendants(); 247 bool shouldIsolateDescendants = (child->isBlendingAllowed() && child->style( )->hasBlendMode()) || child->hasNonIsolatedBlendingDescendants();
248 if (shouldIsolateDescendants) 248 if (shouldIsolateDescendants)
249 descendantIsolationRequirementsChanged(DescendantIsolationRequired); 249 descendantIsolationRequirementsChanged(DescendantIsolationRequired);
250 } 250 }
251 251
252 void RenderSVGRoot::removeChild(LayoutObject* child) 252 void RenderSVGRoot::removeChild(LayoutObject* child)
253 { 253 {
254 SVGResourcesCache::clientWillBeRemovedFromTree(child); 254 SVGResourcesCache::clientWillBeRemovedFromTree(child);
255 RenderReplaced::removeChild(child); 255 LayoutReplaced::removeChild(child);
256 256
257 bool hadNonIsolatedDescendants = (child->isBlendingAllowed() && child->style ()->hasBlendMode()) || child->hasNonIsolatedBlendingDescendants(); 257 bool hadNonIsolatedDescendants = (child->isBlendingAllowed() && child->style ()->hasBlendMode()) || child->hasNonIsolatedBlendingDescendants();
258 if (hadNonIsolatedDescendants) 258 if (hadNonIsolatedDescendants)
259 descendantIsolationRequirementsChanged(DescendantIsolationNeedsUpdate); 259 descendantIsolationRequirementsChanged(DescendantIsolationNeedsUpdate);
260 } 260 }
261 261
262 bool RenderSVGRoot::hasNonIsolatedBlendingDescendants() const 262 bool RenderSVGRoot::hasNonIsolatedBlendingDescendants() const
263 { 263 {
264 if (m_hasNonIsolatedBlendingDescendantsDirty) { 264 if (m_hasNonIsolatedBlendingDescendantsDirty) {
265 m_hasNonIsolatedBlendingDescendants = SVGLayoutSupport::computeHasNonIso latedBlendingDescendants(this); 265 m_hasNonIsolatedBlendingDescendants = SVGLayoutSupport::computeHasNonIso latedBlendingDescendants(this);
(...skipping 10 matching lines...) Expand all
276 m_hasNonIsolatedBlendingDescendantsDirty = false; 276 m_hasNonIsolatedBlendingDescendantsDirty = false;
277 break; 277 break;
278 case DescendantIsolationNeedsUpdate: 278 case DescendantIsolationNeedsUpdate:
279 m_hasNonIsolatedBlendingDescendantsDirty = true; 279 m_hasNonIsolatedBlendingDescendantsDirty = true;
280 break; 280 break;
281 } 281 }
282 } 282 }
283 283
284 void RenderSVGRoot::insertedIntoTree() 284 void RenderSVGRoot::insertedIntoTree()
285 { 285 {
286 RenderReplaced::insertedIntoTree(); 286 LayoutReplaced::insertedIntoTree();
287 SVGResourcesCache::clientWasAddedToTree(this, styleRef()); 287 SVGResourcesCache::clientWasAddedToTree(this, styleRef());
288 } 288 }
289 289
290 void RenderSVGRoot::willBeRemovedFromTree() 290 void RenderSVGRoot::willBeRemovedFromTree()
291 { 291 {
292 SVGResourcesCache::clientWillBeRemovedFromTree(this); 292 SVGResourcesCache::clientWillBeRemovedFromTree(this);
293 RenderReplaced::willBeRemovedFromTree(); 293 LayoutReplaced::willBeRemovedFromTree();
294 } 294 }
295 295
296 // RenderBox methods will expect coordinates w/o any transforms in coordinates 296 // RenderBox methods will expect coordinates w/o any transforms in coordinates
297 // relative to our borderBox origin. This method gives us exactly that. 297 // relative to our borderBox origin. This method gives us exactly that.
298 void RenderSVGRoot::buildLocalToBorderBoxTransform() 298 void RenderSVGRoot::buildLocalToBorderBoxTransform()
299 { 299 {
300 SVGSVGElement* svg = toSVGSVGElement(node()); 300 SVGSVGElement* svg = toSVGSVGElement(node());
301 ASSERT(svg); 301 ASSERT(svg);
302 float scale = style()->effectiveZoom(); 302 float scale = style()->effectiveZoom();
303 FloatPoint translate = svg->currentTranslate(); 303 FloatPoint translate = svg->currentTranslate();
(...skipping 12 matching lines...) Expand all
316 if (location().x()) 316 if (location().x())
317 m_localToParentTransform.setE(m_localToParentTransform.e() + roundToInt( location().x())); 317 m_localToParentTransform.setE(m_localToParentTransform.e() + roundToInt( location().x()));
318 if (location().y()) 318 if (location().y())
319 m_localToParentTransform.setF(m_localToParentTransform.f() + roundToInt( location().y())); 319 m_localToParentTransform.setF(m_localToParentTransform.f() + roundToInt( location().y()));
320 return m_localToParentTransform; 320 return m_localToParentTransform;
321 } 321 }
322 322
323 LayoutRect RenderSVGRoot::clippedOverflowRectForPaintInvalidation(const LayoutLa yerModelObject* paintInvalidationContainer, const PaintInvalidationState* paintI nvalidationState) const 323 LayoutRect RenderSVGRoot::clippedOverflowRectForPaintInvalidation(const LayoutLa yerModelObject* paintInvalidationContainer, const PaintInvalidationState* paintI nvalidationState) const
324 { 324 {
325 // This is an open-coded aggregate of SVGLayoutSupport::clippedOverflowRectF orPaintInvalidation, 325 // This is an open-coded aggregate of SVGLayoutSupport::clippedOverflowRectF orPaintInvalidation,
326 // RenderSVGRoot::mapRectToPaintInvalidationBacking and RenderReplaced::clip pedOverflowRectForPaintInvalidation. 326 // RenderSVGRoot::mapRectToPaintInvalidationBacking and LayoutReplaced::clip pedOverflowRectForPaintInvalidation.
327 // The reason for this is to optimize/minimize the paint invalidation rect w hen the box is not "decorated" 327 // The reason for this is to optimize/minimize the paint invalidation rect w hen the box is not "decorated"
328 // (does not have background/border/etc.) 328 // (does not have background/border/etc.)
329 329
330 // Return early for any cases where we don't actually paint. 330 // Return early for any cases where we don't actually paint.
331 if (style()->visibility() != VISIBLE && !enclosingLayer()->hasVisibleContent ()) 331 if (style()->visibility() != VISIBLE && !enclosingLayer()->hasVisibleContent ())
332 return LayoutRect(); 332 return LayoutRect();
333 333
334 // Compute the paint invalidation rect of the content of the SVG in the bord er-box coordinate space. 334 // Compute the paint invalidation rect of the content of the SVG in the bord er-box coordinate space.
335 FloatRect contentPaintInvalidationRect = paintInvalidationRectInLocalCoordin ates(); 335 FloatRect contentPaintInvalidationRect = paintInvalidationRectInLocalCoordin ates();
336 contentPaintInvalidationRect = m_localToBorderBoxTransform.mapRect(contentPa intInvalidationRect); 336 contentPaintInvalidationRect = m_localToBorderBoxTransform.mapRect(contentPa intInvalidationRect);
337 337
338 // Apply initial viewport clip, overflow:visible content is added to visualO verflow 338 // Apply initial viewport clip, overflow:visible content is added to visualO verflow
339 // but the most common case is that overflow is hidden, so always intersect. 339 // but the most common case is that overflow is hidden, so always intersect.
340 contentPaintInvalidationRect.intersect(pixelSnappedBorderBoxRect()); 340 contentPaintInvalidationRect.intersect(pixelSnappedBorderBoxRect());
341 341
342 LayoutRect paintInvalidationRect = enclosingLayoutRect(contentPaintInvalidat ionRect); 342 LayoutRect paintInvalidationRect = enclosingLayoutRect(contentPaintInvalidat ionRect);
343 // If the box is decorated or is overflowing, extend it to include the borde r-box and overflow. 343 // If the box is decorated or is overflowing, extend it to include the borde r-box and overflow.
344 if (m_hasBoxDecorationBackground || hasRenderOverflow()) { 344 if (m_hasBoxDecorationBackground || hasRenderOverflow()) {
345 // The selectionRect can project outside of the overflowRect, so take th eir union 345 // The selectionRect can project outside of the overflowRect, so take th eir union
346 // for paint invalidation to avoid selection painting glitches. 346 // for paint invalidation to avoid selection painting glitches.
347 LayoutRect decoratedPaintInvalidationRect = unionRect(localSelectionRect (false), visualOverflowRect()); 347 LayoutRect decoratedPaintInvalidationRect = unionRect(localSelectionRect (false), visualOverflowRect());
348 paintInvalidationRect.unite(decoratedPaintInvalidationRect); 348 paintInvalidationRect.unite(decoratedPaintInvalidationRect);
349 } 349 }
350 350
351 // Compute the paint invalidation rect in the parent coordinate space. 351 // Compute the paint invalidation rect in the parent coordinate space.
352 LayoutRect rect = enclosingIntRect(paintInvalidationRect); 352 LayoutRect rect = enclosingIntRect(paintInvalidationRect);
353 RenderReplaced::mapRectToPaintInvalidationBacking(paintInvalidationContainer , rect, paintInvalidationState); 353 LayoutReplaced::mapRectToPaintInvalidationBacking(paintInvalidationContainer , rect, paintInvalidationState);
354 return rect; 354 return rect;
355 } 355 }
356 356
357 void RenderSVGRoot::mapRectToPaintInvalidationBacking(const LayoutLayerModelObje ct* paintInvalidationContainer, LayoutRect& rect, const PaintInvalidationState* paintInvalidationState) const 357 void RenderSVGRoot::mapRectToPaintInvalidationBacking(const LayoutLayerModelObje ct* paintInvalidationContainer, LayoutRect& rect, const PaintInvalidationState* paintInvalidationState) const
358 { 358 {
359 // Note that we don't apply the border-box transform here - it's assumed 359 // Note that we don't apply the border-box transform here - it's assumed
360 // that whoever called us has done that already. 360 // that whoever called us has done that already.
361 361
362 // Apply initial viewport clip 362 // Apply initial viewport clip
363 if (shouldApplyViewportClip()) 363 if (shouldApplyViewportClip())
364 rect.intersect(pixelSnappedBorderBoxRect()); 364 rect.intersect(pixelSnappedBorderBoxRect());
365 365
366 RenderReplaced::mapRectToPaintInvalidationBacking(paintInvalidationContainer , rect, paintInvalidationState); 366 LayoutReplaced::mapRectToPaintInvalidationBacking(paintInvalidationContainer , rect, paintInvalidationState);
367 } 367 }
368 368
369 // This method expects local CSS box coordinates. 369 // This method expects local CSS box coordinates.
370 // Callers with local SVG viewport coordinates should first apply the localToBor derBoxTransform 370 // Callers with local SVG viewport coordinates should first apply the localToBor derBoxTransform
371 // to convert from SVG viewport coordinates to local CSS box coordinates. 371 // to convert from SVG viewport coordinates to local CSS box coordinates.
372 void RenderSVGRoot::mapLocalToContainer(const LayoutLayerModelObject* paintInval idationContainer, TransformState& transformState, MapCoordinatesFlags mode, bool * wasFixed, const PaintInvalidationState* paintInvalidationState) const 372 void RenderSVGRoot::mapLocalToContainer(const LayoutLayerModelObject* paintInval idationContainer, TransformState& transformState, MapCoordinatesFlags mode, bool * wasFixed, const PaintInvalidationState* paintInvalidationState) const
373 { 373 {
374 ASSERT(mode & ~IsFixed); // We should have no fixed content in the SVG rende ring tree. 374 ASSERT(mode & ~IsFixed); // We should have no fixed content in the SVG rende ring tree.
375 // We used to have this ASSERT here, but we removed it when enabling layer s quashing. 375 // We used to have this ASSERT here, but we removed it when enabling layer s quashing.
376 // See http://crbug.com/364901 376 // See http://crbug.com/364901
377 // ASSERT(mode & UseTransforms); // mapping a point through SVG w/o respecti ng trasnforms is useless. 377 // ASSERT(mode & UseTransforms); // mapping a point through SVG w/o respecti ng trasnforms is useless.
378 378
379 RenderReplaced::mapLocalToContainer(paintInvalidationContainer, transformSta te, mode | ApplyContainerFlip, wasFixed, paintInvalidationState); 379 LayoutReplaced::mapLocalToContainer(paintInvalidationContainer, transformSta te, mode | ApplyContainerFlip, wasFixed, paintInvalidationState);
380 } 380 }
381 381
382 const LayoutObject* RenderSVGRoot::pushMappingToContainer(const LayoutLayerModel Object* ancestorToStopAt, LayoutGeometryMap& geometryMap) const 382 const LayoutObject* RenderSVGRoot::pushMappingToContainer(const LayoutLayerModel Object* ancestorToStopAt, LayoutGeometryMap& geometryMap) const
383 { 383 {
384 return RenderReplaced::pushMappingToContainer(ancestorToStopAt, geometryMap) ; 384 return LayoutReplaced::pushMappingToContainer(ancestorToStopAt, geometryMap) ;
385 } 385 }
386 386
387 void RenderSVGRoot::updateCachedBoundaries() 387 void RenderSVGRoot::updateCachedBoundaries()
388 { 388 {
389 SVGLayoutSupport::computeContainerBoundingBoxes(this, m_objectBoundingBox, m _objectBoundingBoxValid, m_strokeBoundingBox, m_paintInvalidationBoundingBox); 389 SVGLayoutSupport::computeContainerBoundingBoxes(this, m_objectBoundingBox, m _objectBoundingBoxValid, m_strokeBoundingBox, m_paintInvalidationBoundingBox);
390 SVGLayoutSupport::intersectPaintInvalidationRectWithResources(this, m_paintI nvalidationBoundingBox); 390 SVGLayoutSupport::intersectPaintInvalidationRectWithResources(this, m_paintI nvalidationBoundingBox);
391 } 391 }
392 392
393 bool RenderSVGRoot::nodeAtPoint(const HitTestRequest& request, HitTestResult& re sult, const HitTestLocation& locationInContainer, const LayoutPoint& accumulated Offset, HitTestAction hitTestAction) 393 bool RenderSVGRoot::nodeAtPoint(const HitTestRequest& request, HitTestResult& re sult, const HitTestLocation& locationInContainer, const LayoutPoint& accumulated Offset, HitTestAction hitTestAction)
394 { 394 {
(...skipping 30 matching lines...) Expand all
425 updateHitTestResult(result, pointInBorderBox); 425 updateHitTestResult(result, pointInBorderBox);
426 if (!result.addNodeToRectBasedTestResult(node(), request, locationIn Container, boundsRect)) 426 if (!result.addNodeToRectBasedTestResult(node(), request, locationIn Container, boundsRect))
427 return true; 427 return true;
428 } 428 }
429 } 429 }
430 430
431 return false; 431 return false;
432 } 432 }
433 433
434 } 434 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGRoot.h ('k') | Source/modules/accessibility/AXRenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698