summaryrefslogtreecommitdiff
path: root/Source/WebCore/css/CSSRule.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-05-07 11:21:11 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2012-05-07 11:21:11 +0200
commit2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47 (patch)
tree988e8c5b116dd0466244ae2fe5af8ee9be926d76 /Source/WebCore/css/CSSRule.h
parentdd91e772430dc294e3bf478c119ef8d43c0a3358 (diff)
downloadqtwebkit-2cf6c8816a73e0132bd8fa3b509d62d7c51b6e47.tar.gz
Imported WebKit commit 7e538425aa020340619e927792f3d895061fb54b (http://svn.webkit.org/repository/webkit/trunk@116286)
Diffstat (limited to 'Source/WebCore/css/CSSRule.h')
-rw-r--r--Source/WebCore/css/CSSRule.h22
1 files changed, 6 insertions, 16 deletions
diff --git a/Source/WebCore/css/CSSRule.h b/Source/WebCore/css/CSSRule.h
index 6f9ee410b..5a50645aa 100644
--- a/Source/WebCore/css/CSSRule.h
+++ b/Source/WebCore/css/CSSRule.h
@@ -69,15 +69,6 @@ public:
bool isRegionRule() const { return type() == WEBKIT_REGION_RULE; }
bool isImportRule() const { return type() == IMPORT_RULE; }
- bool useStrictParsing() const
- {
- if (parentRule())
- return parentRule()->useStrictParsing();
- if (parentStyleSheet())
- return parentStyleSheet()->useStrictParsing();
- return true;
- }
-
void setParentStyleSheet(CSSStyleSheet* styleSheet)
{
m_parentIsRule = false;
@@ -102,13 +93,6 @@ public:
String cssText() const;
void setCssText(const String&, ExceptionCode&);
- KURL baseURL() const
- {
- if (CSSStyleSheet* parentSheet = parentStyleSheet())
- return parentSheet->baseURL();
- return KURL();
- }
-
protected:
CSSRule(CSSStyleSheet* parent, Type type)
: m_hasCachedSelectorText(false)
@@ -126,6 +110,12 @@ protected:
bool hasCachedSelectorText() const { return m_hasCachedSelectorText; }
void setHasCachedSelectorText(bool hasCachedSelectorText) const { m_hasCachedSelectorText = hasCachedSelectorText; }
+ const CSSParserContext& parserContext() const
+ {
+ CSSStyleSheet* styleSheet = parentStyleSheet();
+ return styleSheet ? styleSheet->internal()->parserContext() : strictCSSParserContext();
+ }
+
private:
mutable unsigned m_hasCachedSelectorText : 1;
unsigned m_parentIsRule : 1;