From cd44dc59cdfc39534aef4d417e9f3c412e3be139 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 3 Feb 2012 09:55:33 +0100 Subject: Imported WebKit commit fce473cb4d55aa9fe9d0b0322a2fffecb731b961 (http://svn.webkit.org/repository/webkit/trunk@106560) --- Source/WebCore/css/CSSStyleRule.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'Source/WebCore/css/CSSStyleRule.cpp') diff --git a/Source/WebCore/css/CSSStyleRule.cpp b/Source/WebCore/css/CSSStyleRule.cpp index 6296e64b7..535e9f15d 100644 --- a/Source/WebCore/css/CSSStyleRule.cpp +++ b/Source/WebCore/css/CSSStyleRule.cpp @@ -98,15 +98,8 @@ String CSSStyleRule::selectorText() const void CSSStyleRule::setSelectorText(const String& selectorText) { Document* doc = 0; - if (CSSStyleSheet* styleSheet = m_style->parentStyleSheet()) doc = styleSheet->findDocument(); - - if (!doc && m_style->isElementStyleDeclaration()) { - if (StyledElement* element = static_cast(m_style.get())->element()) - doc = element->document(); - } - if (!doc) return; @@ -135,7 +128,7 @@ String CSSStyleRule::cssText() const String result = selectorText(); result += " { "; - result += m_style->cssText(); + result += m_style->asText(); result += "}"; return result; -- cgit v1.2.1