WebCore:
[WebKit-https.git] / WebCore / rendering / RenderBox.h
index d61b8c6a1b7e7801e266e82ce926d5542f3e81e3..3e6668d0c121c011ae44853c12c9c1017fcab1fb 100644 (file)
@@ -162,6 +162,8 @@ protected:
 #endif
 
     void calcAbsoluteHorizontal();
 #endif
 
     void calcAbsoluteHorizontal();
+    
+    virtual bool shouldCalculateSizeAsReplaced() const { return isReplaced() && !isInlineBlockOrInlineTable(); }
 
 private:
     void paintRootBoxDecorations(PaintInfo&, int tx, int ty);
 
 private:
     void paintRootBoxDecorations(PaintInfo&, int tx, int ty);