diff options
| author | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-17 16:21:14 +0200 |
|---|---|---|
| committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-17 16:21:14 +0200 |
| commit | 8995b83bcbfbb68245f779b64e5517627c6cc6ea (patch) | |
| tree | 17985605dab9263cc2444bd4d45f189e142cca7c /Source/WebCore/rendering/RenderFlowThread.h | |
| parent | b9c9652036d5e9f1e29c574f40bc73a35c81ace6 (diff) | |
| download | qtwebkit-8995b83bcbfbb68245f779b64e5517627c6cc6ea.tar.gz | |
Imported WebKit commit cf4f8fc6f19b0629f51860cb2d4b25e139d07e00 (http://svn.webkit.org/repository/webkit/trunk@131592)
New snapshot that includes the build fixes for Mac OS X 10.6 and earlier as well
as the previously cherry-picked changes
Diffstat (limited to 'Source/WebCore/rendering/RenderFlowThread.h')
| -rw-r--r-- | Source/WebCore/rendering/RenderFlowThread.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Source/WebCore/rendering/RenderFlowThread.h b/Source/WebCore/rendering/RenderFlowThread.h index b942eee57..1fb761016 100644 --- a/Source/WebCore/rendering/RenderFlowThread.h +++ b/Source/WebCore/rendering/RenderFlowThread.h @@ -80,13 +80,12 @@ public: bool hitTestFlowThreadPortionInRegion(RenderRegion*, LayoutRect flowThreadPortionRect, LayoutRect flowThreadPortionOverflowRect, const HitTestRequest&, HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset) const; bool hasRegions() const { return m_regionList.size(); } - bool hasValidRegions() const { ASSERT(!m_regionsInvalidated); return m_hasValidRegions; } // Check if the content is flown into at least a region with region styling rules. bool hasRegionsWithStyling() const { return m_hasRegionsWithStyling; } void checkRegionsWithStyling(); void invalidateRegions() { m_regionsInvalidated = true; setNeedsLayout(true); } - bool hasValidRegionInfo() const { return !m_regionsInvalidated && hasValidRegions(); } + bool hasValidRegionInfo() const { return !m_regionsInvalidated && !m_regionList.isEmpty(); } static PassRefPtr<RenderStyle> createFlowThreadStyle(RenderStyle* parentStyle); @@ -119,8 +118,8 @@ public: void getRegionRangeForBox(const RenderBox*, RenderRegion*& startRegion, RenderRegion*& endRegion) const; void clearRenderObjectCustomStyle(const RenderObject*, - const RenderRegion* oldStartRegion = 0, const RenderRegion* oldEndRegion = 0, - const RenderRegion* newStartRegion = 0, const RenderRegion* newEndRegion = 0); + const RenderRegion* oldStartRegion = 0, const RenderRegion* oldEndRegion = 0, + const RenderRegion* newStartRegion = 0, const RenderRegion* newEndRegion = 0); void computeOverflowStateForRegions(LayoutUnit oldClientAfterEdge); @@ -129,6 +128,11 @@ public: // Check if the object is in region and the region is part of this flow thread. bool objectInFlowRegion(const RenderObject*, const RenderRegion*) const; + void resetRegionsOverrideLogicalContentHeight(); + void markAutoLogicalHeightRegionsForLayout(); + + void addForcedRegionBreak(LayoutUnit); + bool pageLogicalHeightChanged() const { return m_pageLogicalHeightChanged; } #ifndef NDEBUG @@ -138,6 +142,7 @@ public: protected: virtual const char* renderName() const = 0; + void updateRegionsFlowThreadPortionRect(); bool shouldRepaint(const LayoutRect&) const; bool regionInRange(const RenderRegion* targetRegion, const RenderRegion* startRegion, const RenderRegion* endRegion) const; @@ -179,7 +184,6 @@ protected: typedef HashMap<const RenderBox*, RenderRegionRange> RenderRegionRangeMap; RenderRegionRangeMap m_regionRangeMap; - bool m_hasValidRegions : 1; bool m_regionsInvalidated : 1; bool m_regionsHaveUniformLogicalWidth : 1; bool m_regionsHaveUniformLogicalHeight : 1; |
