diff options
Diffstat (limited to 'Source/WebCore/page/Page.h')
-rw-r--r-- | Source/WebCore/page/Page.h | 27 |
1 files changed, 5 insertions, 22 deletions
diff --git a/Source/WebCore/page/Page.h b/Source/WebCore/page/Page.h index f8b026f73..2ba722acc 100644 --- a/Source/WebCore/page/Page.h +++ b/Source/WebCore/page/Page.h @@ -25,6 +25,7 @@ #include "FindOptions.h" #include "LayoutTypes.h" #include "PageVisibilityState.h" +#include "Pagination.h" #include "PlatformScreen.h" #include "PlatformString.h" #include "Region.h" @@ -246,28 +247,10 @@ namespace WebCore { float deviceScaleFactor() const { return m_deviceScaleFactor; } void setDeviceScaleFactor(float); - struct Pagination { - enum Mode { Unpaginated, LeftToRightPaginated, RightToLeftPaginated, TopToBottomPaginated, BottomToTopPaginated }; - - Pagination() - : mode(Unpaginated) - , behavesLikeColumns(false) - , pageLength(0) - , gap(0) - { - }; - - bool operator==(const Pagination& other) const - { - return mode == other.mode && behavesLikeColumns == other.behavesLikeColumns && pageLength == other.pageLength && gap == other.gap; - } - - Mode mode; - bool behavesLikeColumns; - unsigned pageLength; - unsigned gap; - }; - + // Page and FrameView both store a Pagination value. Page::pagination() is set only by API, + // and FrameView::pagination() is set only by CSS. Page::pagination() will affect all + // FrameViews in the page cache, but FrameView::pagination() only affects the current + // FrameView. const Pagination& pagination() const { return m_pagination; } void setPagination(const Pagination&); |