Differentiate between SVG/CSS width/height attributes/properties
[WebKit-https.git] / Source / WebCore / rendering / RenderReplaced.h
index 4818dfd..1c6ebbc 100644 (file)
@@ -32,12 +32,15 @@ public:
     RenderReplaced(Node*, const IntSize& intrinsicSize);
     virtual ~RenderReplaced();
 
-    virtual void destroy();
+    virtual LayoutUnit computeReplacedLogicalWidth(bool includeMaxWidth = true) const;
+    virtual LayoutUnit computeReplacedLogicalHeight() const;
 
-    virtual int computeReplacedLogicalWidth(bool includeMaxWidth = true) const;
-    virtual int computeReplacedLogicalHeight() const;
+    bool hasReplacedLogicalWidth() const;
+    bool hasReplacedLogicalHeight() const;
 
 protected:
+    virtual void willBeDestroyed();
+
     virtual void layout();
 
     virtual IntSize intrinsicSize() const;
@@ -55,7 +58,7 @@ protected:
     void setHasIntrinsicSize() { m_hasIntrinsicSize = true; }
 
     virtual void paint(PaintInfo&, const LayoutPoint&);
-    bool shouldPaint(PaintInfo&, const IntPoint&);
+    bool shouldPaint(PaintInfo&, const LayoutPoint&);
     IntRect localSelectionRect(bool checkWhetherSelected = true) const; // This is in local coordinates, but it's a physical rect (so the top left corner is physical top left).
 
 private:
@@ -74,14 +77,13 @@ private:
 
     virtual void paintReplaced(PaintInfo&, const LayoutPoint&) { }
 
-    virtual IntRect clippedOverflowRectForRepaint(RenderBoxModelObject* repaintContainer);
+    virtual LayoutRect clippedOverflowRectForRepaint(RenderBoxModelObject* repaintContainer) const;
 
-    virtual unsigned caretMaxRenderedOffset() const;
-    virtual VisiblePosition positionForPoint(const IntPoint&);
+    virtual VisiblePosition positionForPoint(const LayoutPoint&);
     
     virtual bool canBeSelectionLeaf() const { return true; }
 
-    virtual IntRect selectionRectForRepaint(RenderBoxModelObject* repaintContainer, bool clipToVisibleContent = true);
+    virtual LayoutRect selectionRectForRepaint(RenderBoxModelObject* repaintContainer, bool clipToVisibleContent = true);
 
     IntSize m_intrinsicSize;
     bool m_hasIntrinsicSize;