Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(579)

Side by Side Diff: Source/core/inspector/InspectorStyleSheet.cpp

Issue 296743003: Removed RecalcStyleTime. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorPageAgent.cpp ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698