| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 991 m_pageStyleSheet->clearChildRuleCSSOMWrappers(); | 991 m_pageStyleSheet->clearChildRuleCSSOMWrappers(); |
| 992 } | 992 } |
| 993 { | 993 { |
| 994 CSSStyleSheet::RuleMutationScope mutationScope(m_pageStyleSheet.get()); | 994 CSSStyleSheet::RuleMutationScope mutationScope(m_pageStyleSheet.get()); |
| 995 m_pageStyleSheet->contents()->parseString(text); | 995 m_pageStyleSheet->contents()->parseString(text); |
| 996 } | 996 } |
| 997 | 997 |
| 998 if (listener()) | 998 if (listener()) |
| 999 listener()->didReparseStyleSheet(); | 999 listener()->didReparseStyleSheet(); |
| 1000 fireStyleSheetChanged(); | 1000 fireStyleSheetChanged(); |
| 1001 m_pageStyleSheet->ownerDocument()->styleResolverChanged(RecalcStyleDeferred,
FullStyleUpdate); | 1001 m_pageStyleSheet->ownerDocument()->styleResolverChanged(FullStyleUpdate); |
| 1002 return true; | 1002 return true; |
| 1003 } | 1003 } |
| 1004 | 1004 |
| 1005 String InspectorStyleSheet::ruleSelector(const InspectorCSSId& id, ExceptionStat
e& exceptionState) | 1005 String InspectorStyleSheet::ruleSelector(const InspectorCSSId& id, ExceptionStat
e& exceptionState) |
| 1006 { | 1006 { |
| 1007 CSSStyleRule* rule = ruleForId(id); | 1007 CSSStyleRule* rule = ruleForId(id); |
| 1008 if (!rule) { | 1008 if (!rule) { |
| 1009 exceptionState.throwDOMException(NotFoundError, "No rule was found for t
he given ID."); | 1009 exceptionState.throwDOMException(NotFoundError, "No rule was found for t
he given ID."); |
| 1010 return ""; | 1010 return ""; |
| 1011 } | 1011 } |
| (...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1664 | 1664 |
| 1665 RefPtrWillBeRawPtr<MutableStylePropertySet> tempDeclaration = MutableStylePr
opertySet::create(); | 1665 RefPtrWillBeRawPtr<MutableStylePropertySet> tempDeclaration = MutableStylePr
opertySet::create(); |
| 1666 RuleSourceDataList ruleSourceDataResult; | 1666 RuleSourceDataList ruleSourceDataResult; |
| 1667 StyleSheetHandler handler(m_styleText, &m_element->document(), m_element->do
cument().elementSheet().contents(), &ruleSourceDataResult); | 1667 StyleSheetHandler handler(m_styleText, &m_element->document(), m_element->do
cument().elementSheet().contents(), &ruleSourceDataResult); |
| 1668 BisonCSSParser(parserContextForDocument(&m_element->document())).parseDeclar
ation(tempDeclaration.get(), m_styleText, &handler, m_element->document().elemen
tSheet().contents()); | 1668 BisonCSSParser(parserContextForDocument(&m_element->document())).parseDeclar
ation(tempDeclaration.get(), m_styleText, &handler, m_element->document().elemen
tSheet().contents()); |
| 1669 return ruleSourceDataResult.first().release(); | 1669 return ruleSourceDataResult.first().release(); |
| 1670 } | 1670 } |
| 1671 | 1671 |
| 1672 } // namespace WebCore | 1672 } // namespace WebCore |
| 1673 | 1673 |
| OLD | NEW |