summaryrefslogtreecommitdiffstats
path: root/WebCore/css/CSSStyleSelector.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/css/CSSStyleSelector.h')
-rw-r--r--WebCore/css/CSSStyleSelector.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/WebCore/css/CSSStyleSelector.h b/WebCore/css/CSSStyleSelector.h
index fd37c85..f0de83b 100644
--- a/WebCore/css/CSSStyleSelector.h
+++ b/WebCore/css/CSSStyleSelector.h
@@ -93,6 +93,8 @@ public:
PassRefPtr<RenderStyle> pseudoStyleForElement(PseudoId pseudo, Element* e, RenderStyle* parentStyle = 0, bool matchVisitedPseudoClass = false);
+ PassRefPtr<RenderStyle> styleForPage(int pageIndex);
+
static PassRefPtr<RenderStyle> styleForDocument(Document*);
#if ENABLE(DATAGRID)
@@ -180,6 +182,13 @@ public:
template <bool firstPass>
void applyDeclarations(bool important, int startIndex, int endIndex);
+
+ void matchPageRules(CSSRuleSet*, bool isLeftPage, bool isFirstPage, const String& pageName);
+ void matchPageRulesForList(CSSRuleDataList*, bool isLeftPage, bool isFirstPage, const String& pageName);
+ bool isLeftPage(int pageIndex) const;
+ bool isRightPage(int pageIndex) const { return !isLeftPage(pageIndex); }
+ bool isFirstPage(int pageIndex) const;
+ String pageName(int pageIndex) const;
CSSRuleSet* m_authorStyle;
CSSRuleSet* m_userStyle;
@@ -251,6 +260,10 @@ public:
void mapNinePieceImage(CSSValue*, NinePieceImage&);
void applyProperty(int id, CSSValue*);
+ void applyPageSizeProperty(CSSValue*);
+ bool pageSizeFromName(CSSPrimitiveValue*, CSSPrimitiveValue*, Length& width, Length& height);
+ Length mmLength(double mm);
+ Length inchLength(double inch);
#if ENABLE(SVG)
void applySVGProperty(int id, CSSValue*);
#endif