mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-30 11:06:11 +01:00
Performance improvement
This commit is contained in:
parent
4febe3c455
commit
097d9e3099
1 changed files with 2 additions and 2 deletions
|
|
@ -88,7 +88,7 @@ class CSSPage3Parser(CSS21Parser):
|
|||
|
||||
"""
|
||||
|
||||
PAGE_MARGIN_AT_KEYWORDS = [
|
||||
PAGE_MARGIN_AT_KEYWORDS = {
|
||||
'@top-left-corner',
|
||||
'@top-left',
|
||||
'@top-center',
|
||||
|
|
@ -105,7 +105,7 @@ class CSSPage3Parser(CSS21Parser):
|
|||
'@right-top',
|
||||
'@right-middle',
|
||||
'@right-bottom',
|
||||
]
|
||||
}
|
||||
|
||||
def parse_at_rule(self, rule, previous_rules, errors, context):
|
||||
if rule.at_keyword in self.PAGE_MARGIN_AT_KEYWORDS:
|
||||
|
|
|
|||
Loading…
Reference in a new issue