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

Unified Diff: Source/core/layout/shapes/ShapeOutsideInfo.h

Issue 926193003: Move rendering/RenderBox to layout/LayoutBox. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/layout/line/RootInlineBox.cpp ('k') | Source/core/layout/shapes/ShapeOutsideInfo.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/shapes/ShapeOutsideInfo.h
diff --git a/Source/core/layout/shapes/ShapeOutsideInfo.h b/Source/core/layout/shapes/ShapeOutsideInfo.h
index 3048d7749f198c044c87d3084ed8356e27e08c4a..897617af0668ab88d5f38022cde84049f25bb7e3 100644
--- a/Source/core/layout/shapes/ShapeOutsideInfo.h
+++ b/Source/core/layout/shapes/ShapeOutsideInfo.h
@@ -40,7 +40,7 @@
namespace blink {
class RenderBlockFlow;
-class RenderBox;
+class LayoutBox;
class FloatingObject;
class ShapeOutsideDeltas final {
@@ -92,12 +92,12 @@ public:
LayoutUnit shapeLogicalWidth() const { return computedShape().shapeMarginLogicalBoundingBox().width(); }
LayoutUnit shapeLogicalHeight() const { return computedShape().shapeMarginLogicalBoundingBox().height(); }
- static PassOwnPtr<ShapeOutsideInfo> createInfo(const RenderBox& renderer) { return adoptPtr(new ShapeOutsideInfo(renderer)); }
- static bool isEnabledFor(const RenderBox&);
+ static PassOwnPtr<ShapeOutsideInfo> createInfo(const LayoutBox& renderer) { return adoptPtr(new ShapeOutsideInfo(renderer)); }
+ static bool isEnabledFor(const LayoutBox&);
ShapeOutsideDeltas computeDeltasForContainingBlockLine(const RenderBlockFlow&, const FloatingObject&, LayoutUnit lineTop, LayoutUnit lineHeight);
- static ShapeOutsideInfo& ensureInfo(const RenderBox& key)
+ static ShapeOutsideInfo& ensureInfo(const LayoutBox& key)
{
InfoMap& infoMap = ShapeOutsideInfo::infoMap();
if (ShapeOutsideInfo* info = infoMap.get(&key))
@@ -105,8 +105,8 @@ public:
InfoMap::AddResult result = infoMap.add(&key, ShapeOutsideInfo::createInfo(key));
return *result.storedValue->value;
}
- static void removeInfo(const RenderBox& key) { infoMap().remove(&key); }
- static ShapeOutsideInfo* info(const RenderBox& key) { return infoMap().get(&key); }
+ static void removeInfo(const LayoutBox& key) { infoMap().remove(&key); }
+ static ShapeOutsideInfo* info(const LayoutBox& key) { return infoMap().get(&key); }
void markShapeAsDirty() { m_shape.clear(); }
bool isShapeDirty() { return !m_shape.get(); }
@@ -119,7 +119,7 @@ public:
const Shape& computedShape() const;
protected:
- ShapeOutsideInfo(const RenderBox& renderer)
+ ShapeOutsideInfo(const LayoutBox& renderer)
: m_renderer(renderer)
, m_isComputingShape(false)
{ }
@@ -130,14 +130,14 @@ private:
LayoutUnit logicalTopOffset() const;
LayoutUnit logicalLeftOffset() const;
- typedef HashMap<const RenderBox*, OwnPtr<ShapeOutsideInfo> > InfoMap;
+ typedef HashMap<const LayoutBox*, OwnPtr<ShapeOutsideInfo>> InfoMap;
static InfoMap& infoMap()
{
DEFINE_STATIC_LOCAL(InfoMap, staticInfoMap, ());
return staticInfoMap;
}
- const RenderBox& m_renderer;
+ const LayoutBox& m_renderer;
mutable OwnPtr<Shape> m_shape;
LayoutSize m_referenceBoxLogicalSize;
ShapeOutsideDeltas m_shapeOutsideDeltas;
« no previous file with comments | « Source/core/layout/line/RootInlineBox.cpp ('k') | Source/core/layout/shapes/ShapeOutsideInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698