X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fcore%2Frendering%2FRenderBox.h;h=d69a788a4115643952d4fa52eb1dcad50e5c666b;hb=8be7648e3bc188a587d5050c5a945c1099957e8b;hp=e2c06cf1ea8e7b4eccc7be0f1ff7914a35b5f9c8;hpb=3cb1527a1d0111fd75188ac2c34c117944473076;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/core/rendering/RenderBox.h b/src/third_party/WebKit/Source/core/rendering/RenderBox.h index e2c06cf..d69a788 100644 --- a/src/third_party/WebKit/Source/core/rendering/RenderBox.h +++ b/src/third_party/WebKit/Source/core/rendering/RenderBox.h @@ -192,6 +192,8 @@ public: // does include the intrinsic padding in the content box as this is what some callers expect (like getComputedStyle). LayoutRect computedCSSContentBoxRect() const { return LayoutRect(borderLeft() + computedCSSPaddingLeft(), borderTop() + computedCSSPaddingTop(), clientWidth() - computedCSSPaddingLeft() - computedCSSPaddingRight(), clientHeight() - computedCSSPaddingTop() - computedCSSPaddingBottom()); } + // Bounds of the outline box in absolute coords. Respects transforms + virtual LayoutRect outlineBoundsForRepaint(const RenderLayerModelObject* /*repaintContainer*/, const RenderGeometryMap*) const OVERRIDE FINAL; virtual void addFocusRingRects(Vector&, const LayoutPoint& additionalOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE; // Use this with caution! No type checking is done! @@ -435,6 +437,7 @@ public: virtual LayoutSize intrinsicSize() const { return LayoutSize(); } LayoutUnit intrinsicLogicalWidth() const { return style()->isHorizontalWritingMode() ? intrinsicSize().width() : intrinsicSize().height(); } LayoutUnit intrinsicLogicalHeight() const { return style()->isHorizontalWritingMode() ? intrinsicSize().height() : intrinsicSize().width(); } + virtual LayoutUnit intrinsicContentLogicalHeight() const { return m_intrinsicContentLogicalHeight; } // Whether or not the element shrinks to its intrinsic width (rather than filling the width // of a containing block). HTML4 buttons, s, legends, and floating/compact elements do this. @@ -664,6 +667,8 @@ protected: virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* currentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& containerRect) const OVERRIDE; virtual void computeSelfHitTestRects(Vector&, const LayoutPoint& layerOffset) const OVERRIDE; + void updateIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalHeight) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; } + private: void updateShapeOutsideInfoAfterStyleChange(const RenderStyle&, const RenderStyle* oldStyle); void updateGridPositionAfterStyleChange(const RenderStyle*); @@ -720,7 +725,7 @@ private: // Our intrinsic height, used for min-height: min-content etc. Maintained by // updateLogicalHeight. This is logicalHeight() before it is clamped to // min/max. - LayoutUnit m_intrinsicContentLogicalHeight; + mutable LayoutUnit m_intrinsicContentLogicalHeight; protected: LayoutBoxExtent m_marginBox;