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

Unified Diff: Source/core/layout/svg/LayoutSVGForeignObject.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 9 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/layout/svg/LayoutSVGForeignObject.h ('k') | Source/core/layout/svg/LayoutSVGGradientStop.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGForeignObject.cpp
diff --git a/Source/core/layout/svg/LayoutSVGForeignObject.cpp b/Source/core/layout/svg/LayoutSVGForeignObject.cpp
index 3cfa30a0ec7f4b2a036086047b451f6944bd9203..f4e3b995478f3d9d727e76394f59c06375f6997a 100644
--- a/Source/core/layout/svg/LayoutSVGForeignObject.cpp
+++ b/Source/core/layout/svg/LayoutSVGForeignObject.cpp
@@ -42,7 +42,7 @@ LayoutSVGForeignObject::~LayoutSVGForeignObject()
{
}
-bool LayoutSVGForeignObject::isChildAllowed(LayoutObject* child, const LayoutStyle& style) const
+bool LayoutSVGForeignObject::isChildAllowed(LayoutObject* child, const ComputedStyle& style) const
{
// Disallow arbitary SVG content. Only allow proper <svg xmlns="svgNS"> subdocuments.
return !child->isSVG() || child->isSVGRoot();
@@ -103,7 +103,7 @@ void LayoutSVGForeignObject::layout()
updateCachedBoundariesInParents = oldViewport != m_viewport;
// Set box origin to the foreignObject x/y translation, so positioned objects in XHTML content get correct
- // positions. A regular LayoutBoxModelObject would pull this information from LayoutStyle - in SVG those
+ // positions. A regular LayoutBoxModelObject would pull this information from ComputedStyle - in SVG those
// properties are ignored for non <svg> elements, so we mimic what happens when specifying them through CSS.
// FIXME: Investigate in location rounding issues - only affects LayoutSVGForeignObject & LayoutSVGText
« no previous file with comments | « Source/core/layout/svg/LayoutSVGForeignObject.h ('k') | Source/core/layout/svg/LayoutSVGGradientStop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698