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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/svg/RenderSVGRoot.h ('k') | Source/modules/accessibility/AXRenderObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGRoot.cpp
diff --git a/Source/core/rendering/svg/RenderSVGRoot.cpp b/Source/core/rendering/svg/RenderSVGRoot.cpp
index 0310a8b8083403fc0fae9cf724ef788d98fd9691..caaa4be583ad6d014276962956915044cf385480 100644
--- a/Source/core/rendering/svg/RenderSVGRoot.cpp
+++ b/Source/core/rendering/svg/RenderSVGRoot.cpp
@@ -41,7 +41,7 @@
namespace blink {
RenderSVGRoot::RenderSVGRoot(SVGElement* node)
- : RenderReplaced(node)
+ : LayoutReplaced(node)
, m_objectBoundingBoxValid(false)
, m_isLayoutSizeChanged(false)
, m_needsBoundariesOrTransformUpdate(true)
@@ -127,13 +127,13 @@ LayoutUnit RenderSVGRoot::computeReplacedLogicalWidth(ShouldComputePreferred sho
return containingBlock()->availableLogicalWidth();
if (style()->logicalWidth().isSpecified() || style()->logicalMaxWidth().isSpecified())
- return RenderReplaced::computeReplacedLogicalWidth(shouldComputePreferred);
+ return LayoutReplaced::computeReplacedLogicalWidth(shouldComputePreferred);
if (svg->hasIntrinsicWidth())
return resolveLengthAttributeForSVG(svg->intrinsicWidth(), style()->effectiveZoom(), containingBlock()->availableLogicalWidth().toFloat());
// SVG embedded via SVGImage (background-image/border-image/etc) / Inline SVG.
- return RenderReplaced::computeReplacedLogicalWidth(shouldComputePreferred);
+ return LayoutReplaced::computeReplacedLogicalWidth(shouldComputePreferred);
}
LayoutUnit RenderSVGRoot::computeReplacedLogicalHeight() const
@@ -149,13 +149,13 @@ LayoutUnit RenderSVGRoot::computeReplacedLogicalHeight() const
return containingBlock()->availableLogicalHeight(IncludeMarginBorderPadding);
if (style()->logicalHeight().isSpecified() || style()->logicalMaxHeight().isSpecified())
- return RenderReplaced::computeReplacedLogicalHeight();
+ return LayoutReplaced::computeReplacedLogicalHeight();
if (svg->hasIntrinsicHeight())
return resolveLengthAttributeForSVG(svg->intrinsicHeight(), style()->effectiveZoom(), containingBlock()->availableLogicalHeight(IncludeMarginBorderPadding).toFloat());
// SVG embedded via SVGImage (background-image/border-image/etc) / Inline SVG.
- return RenderReplaced::computeReplacedLogicalHeight();
+ return LayoutReplaced::computeReplacedLogicalHeight();
}
void RenderSVGRoot::layout()
@@ -218,7 +218,7 @@ void RenderSVGRoot::willBeDestroyed()
RenderBlock::removePercentHeightDescendant(const_cast<RenderSVGRoot*>(this));
SVGResourcesCache::clientDestroyed(this);
- RenderReplaced::willBeDestroyed();
+ LayoutReplaced::willBeDestroyed();
}
void RenderSVGRoot::styleDidChange(StyleDifference diff, const LayoutStyle* oldStyle)
@@ -230,7 +230,7 @@ void RenderSVGRoot::styleDidChange(StyleDifference diff, const LayoutStyle* oldS
m_hasBoxDecorationBackground = calculateHasBoxDecorations();
}
- RenderReplaced::styleDidChange(diff, oldStyle);
+ LayoutReplaced::styleDidChange(diff, oldStyle);
SVGResourcesCache::clientStyleChanged(this, diff, styleRef());
}
@@ -241,7 +241,7 @@ bool RenderSVGRoot::isChildAllowed(LayoutObject* child, const LayoutStyle&) cons
void RenderSVGRoot::addChild(LayoutObject* child, LayoutObject* beforeChild)
{
- RenderReplaced::addChild(child, beforeChild);
+ LayoutReplaced::addChild(child, beforeChild);
SVGResourcesCache::clientWasAddedToTree(child, child->styleRef());
bool shouldIsolateDescendants = (child->isBlendingAllowed() && child->style()->hasBlendMode()) || child->hasNonIsolatedBlendingDescendants();
@@ -252,7 +252,7 @@ void RenderSVGRoot::addChild(LayoutObject* child, LayoutObject* beforeChild)
void RenderSVGRoot::removeChild(LayoutObject* child)
{
SVGResourcesCache::clientWillBeRemovedFromTree(child);
- RenderReplaced::removeChild(child);
+ LayoutReplaced::removeChild(child);
bool hadNonIsolatedDescendants = (child->isBlendingAllowed() && child->style()->hasBlendMode()) || child->hasNonIsolatedBlendingDescendants();
if (hadNonIsolatedDescendants)
@@ -283,14 +283,14 @@ void RenderSVGRoot::descendantIsolationRequirementsChanged(DescendantIsolationSt
void RenderSVGRoot::insertedIntoTree()
{
- RenderReplaced::insertedIntoTree();
+ LayoutReplaced::insertedIntoTree();
SVGResourcesCache::clientWasAddedToTree(this, styleRef());
}
void RenderSVGRoot::willBeRemovedFromTree()
{
SVGResourcesCache::clientWillBeRemovedFromTree(this);
- RenderReplaced::willBeRemovedFromTree();
+ LayoutReplaced::willBeRemovedFromTree();
}
// RenderBox methods will expect coordinates w/o any transforms in coordinates
@@ -323,7 +323,7 @@ const AffineTransform& RenderSVGRoot::localToParentTransform() const
LayoutRect RenderSVGRoot::clippedOverflowRectForPaintInvalidation(const LayoutLayerModelObject* paintInvalidationContainer, const PaintInvalidationState* paintInvalidationState) const
{
// This is an open-coded aggregate of SVGLayoutSupport::clippedOverflowRectForPaintInvalidation,
- // RenderSVGRoot::mapRectToPaintInvalidationBacking and RenderReplaced::clippedOverflowRectForPaintInvalidation.
+ // RenderSVGRoot::mapRectToPaintInvalidationBacking and LayoutReplaced::clippedOverflowRectForPaintInvalidation.
// The reason for this is to optimize/minimize the paint invalidation rect when the box is not "decorated"
// (does not have background/border/etc.)
@@ -350,7 +350,7 @@ LayoutRect RenderSVGRoot::clippedOverflowRectForPaintInvalidation(const LayoutLa
// Compute the paint invalidation rect in the parent coordinate space.
LayoutRect rect = enclosingIntRect(paintInvalidationRect);
- RenderReplaced::mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, paintInvalidationState);
+ LayoutReplaced::mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, paintInvalidationState);
return rect;
}
@@ -363,7 +363,7 @@ void RenderSVGRoot::mapRectToPaintInvalidationBacking(const LayoutLayerModelObje
if (shouldApplyViewportClip())
rect.intersect(pixelSnappedBorderBoxRect());
- RenderReplaced::mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, paintInvalidationState);
+ LayoutReplaced::mapRectToPaintInvalidationBacking(paintInvalidationContainer, rect, paintInvalidationState);
}
// This method expects local CSS box coordinates.
@@ -376,12 +376,12 @@ void RenderSVGRoot::mapLocalToContainer(const LayoutLayerModelObject* paintInval
// See http://crbug.com/364901
// ASSERT(mode & UseTransforms); // mapping a point through SVG w/o respecting trasnforms is useless.
- RenderReplaced::mapLocalToContainer(paintInvalidationContainer, transformState, mode | ApplyContainerFlip, wasFixed, paintInvalidationState);
+ LayoutReplaced::mapLocalToContainer(paintInvalidationContainer, transformState, mode | ApplyContainerFlip, wasFixed, paintInvalidationState);
}
const LayoutObject* RenderSVGRoot::pushMappingToContainer(const LayoutLayerModelObject* ancestorToStopAt, LayoutGeometryMap& geometryMap) const
{
- return RenderReplaced::pushMappingToContainer(ancestorToStopAt, geometryMap);
+ return LayoutReplaced::pushMappingToContainer(ancestorToStopAt, geometryMap);
}
void RenderSVGRoot::updateCachedBoundaries()
« 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