| Index: Source/core/layout/LayoutRegion.h
|
| diff --git a/Source/core/layout/LayoutRegion.h b/Source/core/layout/LayoutRegion.h
|
| deleted file mode 100644
|
| index bfec91456b09f9b9674143d3970dd37205c1c7ef..0000000000000000000000000000000000000000
|
| --- a/Source/core/layout/LayoutRegion.h
|
| +++ /dev/null
|
| @@ -1,86 +0,0 @@
|
| -/*
|
| - * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
|
| - *
|
| - * Redistribution and use in source and binary forms, with or without
|
| - * modification, are permitted provided that the following conditions
|
| - * are met:
|
| - *
|
| - * 1. Redistributions of source code must retain the above
|
| - * copyright notice, this list of conditions and the following
|
| - * disclaimer.
|
| - * 2. Redistributions in binary form must reproduce the above
|
| - * copyright notice, this list of conditions and the following
|
| - * disclaimer in the documentation and/or other materials
|
| - * provided with the distribution.
|
| - *
|
| - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY
|
| - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
| - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
|
| - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
| - * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
| - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
| - * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
|
| - * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
| - * SUCH DAMAGE.
|
| - */
|
| -
|
| -#ifndef LayoutRegion_h
|
| -#define LayoutRegion_h
|
| -
|
| -#include "core/CoreExport.h"
|
| -#include "core/layout/LayoutBlockFlow.h"
|
| -
|
| -namespace blink {
|
| -
|
| -class LayoutFlowThread;
|
| -
|
| -class CORE_EXPORT LayoutRegion : public LayoutBlockFlow {
|
| -public:
|
| - explicit LayoutRegion(Element*, LayoutFlowThread*);
|
| -
|
| - virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectLayoutRegion || LayoutBlockFlow::isOfType(type); }
|
| -
|
| - virtual LayoutRect flowThreadPortionRect() const = 0;
|
| - LayoutRect flowThreadPortionOverflowRect() const;
|
| - LayoutRect overflowRectForFlowThreadPortion(const LayoutRect& flowThreadPortionRect, bool isFirstPortion, bool isLastPortion) const;
|
| -
|
| - LayoutFlowThread* flowThread() const { return m_flowThread; }
|
| -
|
| - // Valid regions do not create circular dependencies with other flows.
|
| - bool isValid() const { return m_isValid; }
|
| - void setIsValid(bool valid) { m_isValid = valid; }
|
| -
|
| - bool isFirstRegion() const;
|
| - bool isLastRegion() const;
|
| -
|
| - // These methods represent the width and height of a "page" and for a LayoutRegion they are just
|
| - // the content width and content height of a region. For LayoutMultiColumnSets, however, they
|
| - // will be the width and height of a single column or page in the set.
|
| - virtual LayoutUnit pageLogicalWidth() const;
|
| - virtual LayoutUnit pageLogicalHeight() const;
|
| -
|
| - virtual bool canHaveChildren() const override final { return false; }
|
| -
|
| - virtual const char* name() const override { return "LayoutRegion"; }
|
| -
|
| -protected:
|
| - virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const override final;
|
| -
|
| -private:
|
| - virtual void layoutBlock(bool relayoutChildren) override final;
|
| -
|
| -protected:
|
| - LayoutFlowThread* m_flowThread;
|
| -
|
| -private:
|
| - bool m_isValid : 1;
|
| -};
|
| -
|
| -DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutRegion, isLayoutRegion());
|
| -
|
| -} // namespace blink
|
| -
|
| -#endif // LayoutRegion_h
|
|
|