+2014-02-11 Andreas Kling <akling@apple.com>
+
+ Protect some RenderFlowThread functions.
+ <https://webkit.org/b/128642>
+
+ Make the RenderFlowThread constructor protected and a handful of
+ member functions private.
+
+ Reviewed by Anders Carlsson.
+
+ * rendering/RenderFlowThread.h:
+
2014-02-11 Andreas Kling <akling@apple.com>
Don't allocate RenderNamedFlowThread's child list separately.
class RenderFlowThread: public RenderBlockFlow {
public:
- RenderFlowThread(Document&, PassRef<RenderStyle>);
- virtual ~RenderFlowThread() { };
-
- virtual bool isRenderFlowThread() const override final { return true; }
-
- virtual void layout() override final;
+ virtual ~RenderFlowThread() { }
- // Always create a RenderLayer for the RenderFlowThread so that we
- // can easily avoid drawing the children directly.
- virtual bool requiresLayer() const override final { return true; }
-
virtual void removeFlowChildInfo(RenderObject*);
#ifndef NDEBUG
bool hasChildInfo(RenderObject* child) const { return child && child->isBox() && m_regionRangeMap.contains(toRenderBox(child)); }
bool regionInRange(const RenderRegion* targetRegion, const RenderRegion* startRegion, const RenderRegion* endRegion) const;
+private:
+ virtual bool isRenderFlowThread() const override final { return true; }
+ virtual void layout() override final;
+
+ // Always create a RenderLayer for the RenderFlowThread so that we
+ // can easily avoid drawing the children directly.
+ virtual bool requiresLayer() const override final { return true; }
+
protected:
+ RenderFlowThread(Document&, PassRef<RenderStyle>);
+
virtual const char* renderName() const = 0;
// Overridden by columns/pages to set up an initial logical width of the page width even when