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

Unified Diff: Source/core/inspector/InspectorStyleSheet.cpp

Issue 15864004: Move create() methods from StylePropertySet to MutableStylePropertySet. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/page/DragController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorStyleSheet.cpp
diff --git a/Source/core/inspector/InspectorStyleSheet.cpp b/Source/core/inspector/InspectorStyleSheet.cpp
index 43dca9ca204a58a3b5e742b0c584a9782a1be9b9..94f3d0d1b91280bc29089c6f3ad2cc6210fc6dd1 100644
--- a/Source/core/inspector/InspectorStyleSheet.cpp
+++ b/Source/core/inspector/InspectorStyleSheet.cpp
@@ -418,7 +418,7 @@ void StyleSheetHandler::endComment(unsigned offset)
// FIXME: Use another subclass of CSSParser::SourceDataHandler and assert that
// no comments are encountered (will not need m_document and m_styleSheetContents).
StyleSheetHandler handler(commentText, m_document, m_styleSheetContents, &sourceData);
- RefPtr<StylePropertySet> tempMutableStyle = StylePropertySet::create();
+ RefPtr<MutableStylePropertySet> tempMutableStyle = MutableStylePropertySet::create();
m_commentParser->parseDeclaration(tempMutableStyle.get(), commentText, &handler, m_styleSheetContents);
Vector<CSSPropertySourceData>& commentPropertyData = sourceData.first()->styleSourceData->propertyData;
if (commentPropertyData.size() != 1)
@@ -648,7 +648,7 @@ bool InspectorStyle::setPropertyText(unsigned index, const String& propertyText,
populateAllProperties(allProperties);
if (!propertyText.stripWhiteSpace().isEmpty()) {
- RefPtr<StylePropertySet> tempMutableStyle = StylePropertySet::create();
+ RefPtr<MutableStylePropertySet> tempMutableStyle = MutableStylePropertySet::create();
String declarationText = propertyText + " " + bogusPropertyName + ": none";
RuleSourceDataList sourceData;
StyleSheetHandler handler(declarationText, ownerDocument(), m_style->parentStyleSheet()->contents(), &sourceData);
@@ -1857,7 +1857,7 @@ PassRefPtr<CSSRuleSourceData> InspectorStyleSheetForInlineStyle::getStyleAttribu
return result.release();
}
- RefPtr<StylePropertySet> tempDeclaration = StylePropertySet::create();
+ RefPtr<MutableStylePropertySet> tempDeclaration = MutableStylePropertySet::create();
RuleSourceDataList ruleSourceDataResult;
StyleSheetHandler handler(m_styleText, m_element->document(), m_element->document()->elementSheet()->contents(), &ruleSourceDataResult);
createCSSParser(m_element->document())->parseDeclaration(tempDeclaration.get(), m_styleText, &handler, m_element->document()->elementSheet()->contents());
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/page/DragController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698