Changeset 148395 in webkit


Ignore:
Timestamp:
Apr 14, 2013 7:24:46 AM (11 years ago)
Author:
akling@apple.com
Message:

Move create() methods from StylePropertySet to MutableStylePropertySet.
<http://webkit.org/b/114574>

Reviewed by Antti Koivisto.

Move the two create() methods that create MutableStylePropertySets from StylePropertySet
to MutableStylePropertySet, and make them actually return MutableStylePropertySets.
Switch to using {Pass,}RefPtr<MutableStylePropertySet> where appropriate to keep things building.

  • css/CSSComputedStyleDeclaration.cpp:

(WebCore::CSSComputedStyleDeclaration::copyPropertiesInSet):

  • css/CSSParser.cpp:

(WebCore::CSSParser::parseFontFaceValue):

  • css/DOMWindowCSS.cpp:

(WebCore::DOMWindowCSS::supports):

  • css/ElementRuleCollector.cpp:

(WebCore::leftToRightDeclaration):
(WebCore::rightToLeftDeclaration):

  • css/FontLoader.cpp:

(WebCore::FontLoader::resolveFontStyle):

  • css/StylePropertySet.cpp:

(WebCore::StylePropertySet::copyPropertiesInSet):
(WebCore::MutableStylePropertySet::create):

  • css/StylePropertySet.h:

(StylePropertySet):
(MutableStylePropertySet):

  • css/StyleResolver.cpp:

(WebCore::StyleResolver::resolveVariables):

  • css/WebKitCSSMatrix.cpp:

(WebCore::WebKitCSSMatrix::setMatrixValue):

  • dom/Attr.cpp:

(WebCore::Attr::style):

  • dom/Document.cpp:

(WebCore::Document::createCSSStyleDeclaration):

  • dom/StyledElement.cpp:

(WebCore::StyledElement::ensureMutableInlineStyle):
(WebCore::StyledElement::rebuildPresentationAttributeStyle):

  • editing/ApplyStyleCommand.cpp:

(WebCore::copyStyleOrCreateEmpty):

  • editing/EditingStyle.cpp:

(WebCore::editingStyleFromComputedStyle):
(WebCore::HTMLAttributeEquivalent::attributeValueAsCSSValue):
(WebCore::EditingStyle::setProperty):
(WebCore::EditingStyle::extractAndRemoveTextDirection):
(WebCore::styleFromMatchedRulesForElement):
(WebCore::EditingStyle::mergeStyleFromRulesForSerialization):
(WebCore::EditingStyle::forceInline):

  • editing/Editor.cpp:

(WebCore::Editor::setBaseWritingDirection):

  • editing/EditorCommand.cpp:

(WebCore::executeApplyStyle):
(WebCore::executeToggleStyleInList):
(WebCore::executeApplyParagraphStyle):
(WebCore::executeMakeTextWritingDirectionLeftToRight):
(WebCore::executeMakeTextWritingDirectionNatural):
(WebCore::executeMakeTextWritingDirectionRightToLeft):

  • html/HTMLTableElement.cpp:

(WebCore::leakBorderStyle):
(WebCore::HTMLTableElement::createSharedCellStyle):
(WebCore::leakGroupBorderStyle):

  • html/canvas/CanvasRenderingContext2D.cpp:

(WebCore::CanvasRenderingContext2D::setFont):

  • inspector/InspectorStyleSheet.cpp:

(WebCore::InspectorStyle::setPropertyText):
(WebCore::InspectorStyleSheetForInlineStyle::getStyleAttributeRanges):

  • page/DragController.cpp:

(WebCore::DragController::concludeEditDrag):

  • svg/SVGElementRareData.h:

(WebCore::SVGElementRareData::ensureAnimatedSMILStyleProperties):

  • svg/SVGFontFaceElement.cpp:

(WebCore::SVGFontFaceElement::SVGFontFaceElement):

  • svg/SVGStyledElement.cpp:

(WebCore::SVGStyledElement::getPresentationAttribute):

Location:
trunk/Source/WebCore
Files:
24 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r148380 r148395  
     12013-04-14  Andreas Kling  <akling@apple.com>
     2
     3        Move create() methods from StylePropertySet to MutableStylePropertySet.
     4        <http://webkit.org/b/114574>
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Move the two create() methods that create MutableStylePropertySets from StylePropertySet
     9        to MutableStylePropertySet, and make them actually return MutableStylePropertySets.
     10        Switch to using {Pass,}RefPtr<MutableStylePropertySet> where appropriate to keep things building.
     11
     12        * css/CSSComputedStyleDeclaration.cpp:
     13        (WebCore::CSSComputedStyleDeclaration::copyPropertiesInSet):
     14        * css/CSSParser.cpp:
     15        (WebCore::CSSParser::parseFontFaceValue):
     16        * css/DOMWindowCSS.cpp:
     17        (WebCore::DOMWindowCSS::supports):
     18        * css/ElementRuleCollector.cpp:
     19        (WebCore::leftToRightDeclaration):
     20        (WebCore::rightToLeftDeclaration):
     21        * css/FontLoader.cpp:
     22        (WebCore::FontLoader::resolveFontStyle):
     23        * css/StylePropertySet.cpp:
     24        (WebCore::StylePropertySet::copyPropertiesInSet):
     25        (WebCore::MutableStylePropertySet::create):
     26        * css/StylePropertySet.h:
     27        (StylePropertySet):
     28        (MutableStylePropertySet):
     29        * css/StyleResolver.cpp:
     30        (WebCore::StyleResolver::resolveVariables):
     31        * css/WebKitCSSMatrix.cpp:
     32        (WebCore::WebKitCSSMatrix::setMatrixValue):
     33        * dom/Attr.cpp:
     34        (WebCore::Attr::style):
     35        * dom/Document.cpp:
     36        (WebCore::Document::createCSSStyleDeclaration):
     37        * dom/StyledElement.cpp:
     38        (WebCore::StyledElement::ensureMutableInlineStyle):
     39        (WebCore::StyledElement::rebuildPresentationAttributeStyle):
     40        * editing/ApplyStyleCommand.cpp:
     41        (WebCore::copyStyleOrCreateEmpty):
     42        * editing/EditingStyle.cpp:
     43        (WebCore::editingStyleFromComputedStyle):
     44        (WebCore::HTMLAttributeEquivalent::attributeValueAsCSSValue):
     45        (WebCore::EditingStyle::setProperty):
     46        (WebCore::EditingStyle::extractAndRemoveTextDirection):
     47        (WebCore::styleFromMatchedRulesForElement):
     48        (WebCore::EditingStyle::mergeStyleFromRulesForSerialization):
     49        (WebCore::EditingStyle::forceInline):
     50        * editing/Editor.cpp:
     51        (WebCore::Editor::setBaseWritingDirection):
     52        * editing/EditorCommand.cpp:
     53        (WebCore::executeApplyStyle):
     54        (WebCore::executeToggleStyleInList):
     55        (WebCore::executeApplyParagraphStyle):
     56        (WebCore::executeMakeTextWritingDirectionLeftToRight):
     57        (WebCore::executeMakeTextWritingDirectionNatural):
     58        (WebCore::executeMakeTextWritingDirectionRightToLeft):
     59        * html/HTMLTableElement.cpp:
     60        (WebCore::leakBorderStyle):
     61        (WebCore::HTMLTableElement::createSharedCellStyle):
     62        (WebCore::leakGroupBorderStyle):
     63        * html/canvas/CanvasRenderingContext2D.cpp:
     64        (WebCore::CanvasRenderingContext2D::setFont):
     65        * inspector/InspectorStyleSheet.cpp:
     66        (WebCore::InspectorStyle::setPropertyText):
     67        (WebCore::InspectorStyleSheetForInlineStyle::getStyleAttributeRanges):
     68        * page/DragController.cpp:
     69        (WebCore::DragController::concludeEditDrag):
     70        * svg/SVGElementRareData.h:
     71        (WebCore::SVGElementRareData::ensureAnimatedSMILStyleProperties):
     72        * svg/SVGFontFaceElement.cpp:
     73        (WebCore::SVGFontFaceElement::SVGFontFaceElement):
     74        * svg/SVGStyledElement.cpp:
     75        (WebCore::SVGStyledElement::getPresentationAttribute):
     76
    1772013-04-13  Sam Weinig  <sam@webkit.org>
    278
  • trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp

    r148365 r148395  
    29912991            list.append(CSSProperty(set[i], value.release(), false));
    29922992    }
    2993     return static_pointer_cast<MutableStylePropertySet>(StylePropertySet::create(list.data(), list.size()));
     2993    return MutableStylePropertySet::create(list.data(), list.size());
    29942994}
    29952995
  • trunk/Source/WebCore/css/CSSParser.cpp

    r148227 r148395  
    12981298    if (string.isEmpty())
    12991299        return 0;
    1300     RefPtr<StylePropertySet> dummyStyle = StylePropertySet::create();
     1300    RefPtr<MutableStylePropertySet> dummyStyle = MutableStylePropertySet::create();
    13011301    if (!parseValue(dummyStyle.get(), CSSPropertyFontFamily, string, false, CSSQuirksMode, 0))
    13021302        return 0;
  • trunk/Source/WebCore/css/DOMWindowCSS.cpp

    r142739 r148395  
    7474        return false;
    7575
    76     RefPtr<StylePropertySet> dummyStyle = StylePropertySet::create();
     76    RefPtr<MutableStylePropertySet> dummyStyle = MutableStylePropertySet::create();
    7777    return CSSParser::parseValue(dummyStyle.get(), propertyID, normalizedValue, false, CSSStrictMode, 0);
    7878}
  • trunk/Source/WebCore/css/ElementRuleCollector.cpp

    r145596 r148395  
    5050static StylePropertySet* leftToRightDeclaration()
    5151{
    52     DEFINE_STATIC_LOCAL(RefPtr<StylePropertySet>, leftToRightDecl, (StylePropertySet::create()));
     52    DEFINE_STATIC_LOCAL(RefPtr<MutableStylePropertySet>, leftToRightDecl, (MutableStylePropertySet::create()));
    5353    if (leftToRightDecl->isEmpty())
    5454        leftToRightDecl->setProperty(CSSPropertyDirection, CSSValueLtr);
     
    5858static StylePropertySet* rightToLeftDeclaration()
    5959{
    60     DEFINE_STATIC_LOCAL(RefPtr<StylePropertySet>, rightToLeftDecl, (StylePropertySet::create()));
     60    DEFINE_STATIC_LOCAL(RefPtr<MutableStylePropertySet>, rightToLeftDecl, (MutableStylePropertySet::create()));
    6161    if (rightToLeftDecl->isEmpty())
    6262        rightToLeftDecl->setProperty(CSSPropertyDirection, CSSValueRtl);
  • trunk/Source/WebCore/css/FontLoader.cpp

    r146537 r148395  
    270270{
    271271    // Interpret fontString in the same way as the 'font' attribute of CanvasRenderingContext2D.
    272     RefPtr<StylePropertySet> parsedStyle = StylePropertySet::create();
     272    RefPtr<MutableStylePropertySet> parsedStyle = MutableStylePropertySet::create();
    273273    CSSParser::parseValue(parsedStyle.get(), CSSPropertyFont, fontString, true, CSSStrictMode, 0);
    274274    if (parsedStyle->isEmpty())
  • trunk/Source/WebCore/css/StylePropertySet.cpp

    r148365 r148395  
    12221222            list.append(CSSProperty(set[i], value.release(), false));
    12231223    }
    1224     return static_pointer_cast<MutableStylePropertySet>(StylePropertySet::create(list.data(), list.size()));
     1224    return MutableStylePropertySet::create(list.data(), list.size());
    12251225}
    12261226
     
    12931293#endif
    12941294
    1295 PassRefPtr<StylePropertySet> StylePropertySet::create(CSSParserMode cssParserMode)
     1295PassRefPtr<MutableStylePropertySet> MutableStylePropertySet::create(CSSParserMode cssParserMode)
    12961296{
    12971297    return adoptRef(new MutableStylePropertySet(cssParserMode));
    12981298}
    12991299
    1300 PassRefPtr<StylePropertySet> StylePropertySet::create(const CSSProperty* properties, unsigned count)
     1300PassRefPtr<MutableStylePropertySet> MutableStylePropertySet::create(const CSSProperty* properties, unsigned count)
    13011301{
    13021302    return adoptRef(new MutableStylePropertySet(properties, count));
  • trunk/Source/WebCore/css/StylePropertySet.h

    r148365 r148395  
    5151    void deref();
    5252
    53     static PassRefPtr<StylePropertySet> create(CSSParserMode = CSSQuirksMode);
    54     static PassRefPtr<StylePropertySet> create(const CSSProperty* properties, unsigned count);
    5553    static PassRefPtr<StylePropertySet> createImmutable(const CSSProperty* properties, unsigned count, CSSParserMode);
    5654
     
    234232class MutableStylePropertySet : public StylePropertySet {
    235233public:
     234    static PassRefPtr<MutableStylePropertySet> create(CSSParserMode = CSSQuirksMode);
     235    static PassRefPtr<MutableStylePropertySet> create(const CSSProperty* properties, unsigned count);
     236
     237    MutableStylePropertySet(const StylePropertySet&);
     238
     239    Vector<CSSProperty, 4> m_propertyVector;
     240
     241private:
    236242    MutableStylePropertySet(CSSParserMode cssParserMode)
    237243        : StylePropertySet(cssParserMode)
    238244    { }
    239245    MutableStylePropertySet(const CSSProperty* properties, unsigned count);
    240     MutableStylePropertySet(const StylePropertySet&);
    241 
    242     Vector<CSSProperty, 4> m_propertyVector;
    243246};
    244247
  • trunk/Source/WebCore/css/StyleResolver.cpp

    r148363 r148395  
    21952195
    21962196    // FIXME: It would be faster not to re-parse from strings, but for now CSS property validation lives inside the parser so we do it there.
    2197     RefPtr<StylePropertySet> resultSet = StylePropertySet::create();
     2197    RefPtr<MutableStylePropertySet> resultSet = MutableStylePropertySet::create();
    21982198    if (!CSSParser::parseValue(resultSet.get(), id, expression.second, false, document()))
    21992199        return; // expression failed to parse.
  • trunk/Source/WebCore/css/WebKitCSSMatrix.cpp

    r147962 r148395  
    5757        return;
    5858
    59     RefPtr<StylePropertySet> styleDeclaration = StylePropertySet::create();
     59    RefPtr<MutableStylePropertySet> styleDeclaration = MutableStylePropertySet::create();
    6060    if (CSSParser::parseValue(styleDeclaration.get(), CSSPropertyWebkitTransform, string, true, CSSStrictMode, 0)) {
    6161        // Convert to TransformOperations. This can fail if a property
  • trunk/Source/WebCore/dom/Attr.cpp

    r147144 r148395  
    197197    if (!m_element || !m_element->isStyledElement())
    198198        return 0;
    199     m_style = StylePropertySet::create();
     199    m_style = MutableStylePropertySet::create();
    200200    static_cast<StyledElement*>(m_element)->collectStyleForPresentationAttribute(qualifiedName(), value(), static_cast<MutableStylePropertySet*>(m_style.get()));
    201201    return m_style->ensureCSSStyleDeclaration();
  • trunk/Source/WebCore/dom/Document.cpp

    r148289 r148395  
    958958PassRefPtr<CSSStyleDeclaration> Document::createCSSStyleDeclaration()
    959959{
    960     return StylePropertySet::create()->ensureCSSStyleDeclaration();
     960    return MutableStylePropertySet::create()->ensureCSSStyleDeclaration();
    961961}
    962962
  • trunk/Source/WebCore/dom/StyledElement.cpp

    r148365 r148395  
    151151    RefPtr<StylePropertySet>& inlineStyle = ensureUniqueElementData()->m_inlineStyle;
    152152    if (!inlineStyle)
    153         inlineStyle = StylePropertySet::create(strictToCSSParserMode(isHTMLElement() && !document()->inQuirksMode()));
     153        inlineStyle = MutableStylePropertySet::create(strictToCSSParserMode(isHTMLElement() && !document()->inQuirksMode()));
    154154    else if (!inlineStyle->isMutable())
    155155        inlineStyle = inlineStyle->mutableCopy();
     
    334334        presentationAttributeCacheCleaner().didHitPresentationAttributeCache();
    335335    } else {
    336         style = StylePropertySet::create(isSVGElement() ? SVGAttributeMode : CSSQuirksMode);
     336        style = MutableStylePropertySet::create(isSVGElement() ? SVGAttributeMode : CSSQuirksMode);
    337337        unsigned size = attributeCount();
    338338        for (unsigned i = 0; i < size; ++i) {
  • trunk/Source/WebCore/editing/ApplyStyleCommand.cpp

    r148378 r148395  
    298298}
    299299
    300 static PassRefPtr<StylePropertySet> copyStyleOrCreateEmpty(const StylePropertySet* style)
     300static PassRefPtr<MutableStylePropertySet> copyStyleOrCreateEmpty(const StylePropertySet* style)
    301301{
    302302    if (!style)
    303         return StylePropertySet::create();
     303        return MutableStylePropertySet::create();
    304304    return style->mutableCopy();
    305305}
  • trunk/Source/WebCore/editing/EditingStyle.cpp

    r148365 r148395  
    105105{
    106106    if (!style)
    107         return static_pointer_cast<MutableStylePropertySet>(StylePropertySet::create());
     107        return MutableStylePropertySet::create();
    108108    return copyEditingProperties(style.get(), type);
    109109}
     
    260260        return 0;
    261261   
    262     RefPtr<StylePropertySet> dummyStyle;
    263     dummyStyle = StylePropertySet::create();
     262    RefPtr<MutableStylePropertySet> dummyStyle;
     263    dummyStyle = MutableStylePropertySet::create();
    264264    dummyStyle->setProperty(m_propertyID, element->getAttribute(m_attrName));
    265265    return dummyStyle->getPropertyCSSValue(m_propertyID);
     
    452452{
    453453    if (!m_mutableStyle)
    454         m_mutableStyle = StylePropertySet::create();
     454        m_mutableStyle = MutableStylePropertySet::create();
    455455
    456456    m_mutableStyle->setProperty(propertyID, value, important);
     
    570570{
    571571    RefPtr<EditingStyle> textDirection = EditingStyle::create();
    572     textDirection->m_mutableStyle = StylePropertySet::create();
     572    textDirection->m_mutableStyle = MutableStylePropertySet::create();
    573573    textDirection->m_mutableStyle->setProperty(CSSPropertyUnicodeBidi, CSSValueEmbed, m_mutableStyle->propertyIsImportant(CSSPropertyUnicodeBidi));
    574574    textDirection->m_mutableStyle->setProperty(CSSPropertyDirection, m_mutableStyle->getPropertyValue(CSSPropertyDirection),
     
    10751075static PassRefPtr<StylePropertySet> styleFromMatchedRulesForElement(Element* element, unsigned rulesToInclude)
    10761076{
    1077     RefPtr<StylePropertySet> style = StylePropertySet::create();
     1077    RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
    10781078    RefPtr<CSSRuleList> matchedRules = element->document()->styleResolver()->styleRulesForElement(element, rulesToInclude);
    10791079    if (matchedRules) {
     
    11081108    // FIXME: There are others like this, see <rdar://problem/5195123> Slashdot copy/paste fidelity problem
    11091109    RefPtr<CSSComputedStyleDeclaration> computedStyleForElement = CSSComputedStyleDeclaration::create(element);
    1110     RefPtr<StylePropertySet> fromComputedStyle = StylePropertySet::create();
     1110    RefPtr<MutableStylePropertySet> fromComputedStyle = MutableStylePropertySet::create();
    11111111    {
    11121112        unsigned propertyCount = m_mutableStyle->propertyCount();
     
    11791179{
    11801180    if (!m_mutableStyle)
    1181         m_mutableStyle = StylePropertySet::create();
     1181        m_mutableStyle = MutableStylePropertySet::create();
    11821182    const bool propertyIsImportant = true;
    11831183    m_mutableStyle->setProperty(CSSPropertyDisplay, CSSValueInline, propertyIsImportant);
  • trunk/Source/WebCore/editing/Editor.cpp

    r148221 r148395  
    13701370    }
    13711371
    1372     RefPtr<StylePropertySet> style = StylePropertySet::create();
     1372    RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
    13731373    style->setProperty(CSSPropertyDirection, direction == LeftToRightWritingDirection ? "ltr" : direction == RightToLeftWritingDirection ? "rtl" : "inherit", false);
    13741374    applyParagraphStyleToSelection(style.get(), EditActionSetWritingDirection);
  • trunk/Source/WebCore/editing/EditorCommand.cpp

    r146907 r148395  
    119119static bool executeApplyStyle(Frame* frame, EditorCommandSource source, EditAction action, CSSPropertyID propertyID, const String& propertyValue)
    120120{
    121     RefPtr<StylePropertySet> style = StylePropertySet::create();
     121    RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
    122122    style->setProperty(propertyID, propertyValue);
    123123    return applyCommandToFrame(frame, source, action, style.get());
     
    126126static bool executeApplyStyle(Frame* frame, EditorCommandSource source, EditAction action, CSSPropertyID propertyID, int propertyValue)
    127127{
    128     RefPtr<StylePropertySet> style = StylePropertySet::create();
     128    RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
    129129    style->setProperty(propertyID, propertyValue);
    130130    return applyCommandToFrame(frame, source, action, style.get());
     
    153153
    154154    // FIXME: We shouldn't be having to convert new style into text.  We should have setPropertyCSSValue.
    155     RefPtr<StylePropertySet> newMutableStyle = StylePropertySet::create();
     155    RefPtr<MutableStylePropertySet> newMutableStyle = MutableStylePropertySet::create();
    156156    newMutableStyle->setProperty(propertyID, newStyle);
    157157    return applyCommandToFrame(frame, source, action, newMutableStyle.get());
     
    176176static bool executeApplyParagraphStyle(Frame* frame, EditorCommandSource source, EditAction action, CSSPropertyID propertyID, const String& propertyValue)
    177177{
    178     RefPtr<StylePropertySet> style = StylePropertySet::create();
     178    RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
    179179    style->setProperty(propertyID, propertyValue);
    180180    // FIXME: We don't call shouldApplyStyle when the source is DOM; is there a good reason for that?
     
    589589static bool executeMakeTextWritingDirectionLeftToRight(Frame* frame, Event*, EditorCommandSource, const String&)
    590590{
    591     RefPtr<StylePropertySet> style = StylePropertySet::create();
     591    RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
    592592    style->setProperty(CSSPropertyUnicodeBidi, CSSValueEmbed);
    593593    style->setProperty(CSSPropertyDirection, CSSValueLtr);
     
    598598static bool executeMakeTextWritingDirectionNatural(Frame* frame, Event*, EditorCommandSource, const String&)
    599599{
    600     RefPtr<StylePropertySet> style = StylePropertySet::create();
     600    RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
    601601    style->setProperty(CSSPropertyUnicodeBidi, CSSValueNormal);
    602602    frame->editor()->applyStyle(style.get(), EditActionSetWritingDirection);
     
    606606static bool executeMakeTextWritingDirectionRightToLeft(Frame* frame, Event*, EditorCommandSource, const String&)
    607607{
    608     RefPtr<StylePropertySet> style = StylePropertySet::create();
     608    RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
    609609    style->setProperty(CSSPropertyUnicodeBidi, CSSValueEmbed);
    610610    style->setProperty(CSSPropertyDirection, CSSValueRtl);
  • trunk/Source/WebCore/html/HTMLTableElement.cpp

    r143926 r148395  
    416416static StylePropertySet* leakBorderStyle(int value)
    417417{
    418     RefPtr<StylePropertySet> style = StylePropertySet::create();
     418    RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
    419419    style->setProperty(CSSPropertyBorderTopStyle, value);
    420420    style->setProperty(CSSPropertyBorderBottomStyle, value);
     
    472472PassRefPtr<StylePropertySet> HTMLTableElement::createSharedCellStyle()
    473473{
    474     RefPtr<StylePropertySet> style = StylePropertySet::create();
     474    RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
    475475
    476476    switch (cellBorders()) {
     
    519519static StylePropertySet* leakGroupBorderStyle(int rows)
    520520{
    521     RefPtr<StylePropertySet> style = StylePropertySet::create();
     521    RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
    522522    if (rows) {
    523523        style->setProperty(CSSPropertyBorderTopWidth, CSSValueThin);
  • trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp

    r144949 r148395  
    20272027        return;
    20282028
    2029     RefPtr<StylePropertySet> parsedStyle = StylePropertySet::create();
     2029    RefPtr<MutableStylePropertySet> parsedStyle = MutableStylePropertySet::create();
    20302030    CSSParser::parseValue(parsedStyle.get(), CSSPropertyFont, newFont, true, strictToCSSParserMode(!m_usesCSSCompatibilityParseMode), 0);
    20312031    if (parsedStyle->isEmpty())
  • trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp

    r146184 r148395  
    373373
    374374    if (propertyText.stripWhiteSpace().length()) {
    375         RefPtr<StylePropertySet> tempMutableStyle = StylePropertySet::create();
     375        RefPtr<MutableStylePropertySet> tempMutableStyle = MutableStylePropertySet::create();
    376376        RefPtr<CSSRuleSourceData> sourceData = CSSRuleSourceData::create(CSSRuleSourceData::STYLE_RULE);
    377377        Document* ownerDocument = m_parentStyleSheet->pageStyleSheet() ? m_parentStyleSheet->pageStyleSheet()->ownerDocument() : 0;
     
    15351535    }
    15361536
    1537     RefPtr<StylePropertySet> tempDeclaration = StylePropertySet::create();
     1537    RefPtr<MutableStylePropertySet> tempDeclaration = MutableStylePropertySet::create();
    15381538    createCSSParser(m_element->document())->parseDeclaration(tempDeclaration.get(), m_styleText, result, m_element->document()->elementSheet()->contents());
    15391539    return true;
  • trunk/Source/WebCore/page/DragController.cpp

    r147922 r148395  
    474474            return false;
    475475        RefPtr<Range> innerRange = innerFrame->selection()->toNormalizedRange();
    476         RefPtr<StylePropertySet> style = StylePropertySet::create();
     476        RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
    477477        style->setProperty(CSSPropertyColor, color.serialized(), false);
    478478        if (!innerFrame->editor()->shouldApplyStyle(style.get(), innerRange.get()))
  • trunk/Source/WebCore/svg/SVGElementRareData.h

    r143926 r148395  
    8080    {
    8181        if (!m_animatedSMILStyleProperties)
    82             m_animatedSMILStyleProperties = StylePropertySet::create(SVGAttributeMode);
     82            m_animatedSMILStyleProperties = MutableStylePropertySet::create(SVGAttributeMode);
    8383        return m_animatedSMILStyleProperties.get();
    8484    }
  • trunk/Source/WebCore/svg/SVGFontFaceElement.cpp

    r143926 r148395  
    5454{
    5555    ASSERT(hasTagName(font_faceTag));
    56     RefPtr<StylePropertySet> styleDeclaration = StylePropertySet::create(CSSStrictMode);
     56    RefPtr<MutableStylePropertySet> styleDeclaration = MutableStylePropertySet::create(CSSStrictMode);
    5757    m_fontFaceRule->setProperties(styleDeclaration.release());
    5858}
  • trunk/Source/WebCore/svg/SVGStyledElement.cpp

    r147348 r148395  
    407407        return 0;
    408408
    409     RefPtr<StylePropertySet> style = StylePropertySet::create(SVGAttributeMode);
     409    RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(SVGAttributeMode);
    410410    CSSPropertyID propertyID = SVGStyledElement::cssPropertyIdForSVGAttributeName(attr->name());
    411411    style->setProperty(propertyID, attr->value());
Note: See TracChangeset for help on using the changeset viewer.