Changeset 159856 in webkit


Ignore:
Timestamp:
Nov 28, 2013, 12:53:22 PM (12 years ago)
Author:
Antti Koivisto
Message:

Rename StylePropertySet to StyleProperties
https://bugs.webkit.org/show_bug.cgi?id=124990

Reviewed by Andreas Kling.

"Set" does not add useful information here. Use less clunky plural name.

Location:
trunk
Files:
158 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/CMakeLists.txt

    r159827 r159856  
    10881088    css/StyleInvalidationAnalysis.cpp
    10891089    css/StyleMedia.cpp
    1090     css/StylePropertySet.cpp
     1090    css/StyleProperties.cpp
    10911091    css/StylePropertyShorthand.cpp
    10921092    css/StyleResolver.cpp
  • trunk/Source/WebCore/ChangeLog

    r159854 r159856  
     12013-11-28  Antti Koivisto  <antti@apple.com>
     2
     3        Rename StylePropertySet to StyleProperties
     4        https://bugs.webkit.org/show_bug.cgi?id=124990
     5       
     6        Reviewed by Andreas Kling.
     7
     8        "Set" does not add useful information here. Use less clunky plural name.
     9
    1102013-11-28  Thiago de Barros Lacerda  <thiago.lacerda@openbossa.org>
    211
  • trunk/Source/WebCore/GNUmakefile.list.am

    r159842 r159856  
    26752675        Source/WebCore/css/StyleMedia.cpp \
    26762676        Source/WebCore/css/StyleMedia.h \
    2677         Source/WebCore/css/StylePropertySet.cpp \
    2678         Source/WebCore/css/StylePropertySet.h \
     2677        Source/WebCore/css/StyleProperties.cpp \
     2678        Source/WebCore/css/StyleProperties.h \
    26792679        Source/WebCore/css/StylePropertyShorthand.cpp \
    26802680        Source/WebCore/css/StylePropertyShorthand.h \
  • trunk/Source/WebCore/WebCore.exp.in

    r159679 r159856  
    824824__ZN7WebCore22HTMLPlugInImageElement24restartSnapshottedPlugInEv
    825825__ZN7WebCore22HTMLPlugInImageElement29setIsPrimarySnapshottedPlugInEb
     826__ZN7WebCore22MutableStyleProperties25ensureCSSStyleDeclarationEv
     827__ZN7WebCore22MutableStylePropertiesD1Ev
    826828__ZN7WebCore22RuntimeEnabledFeatures14sharedFeaturesEv
    827829__ZN7WebCore22ScriptExecutionContext26canSuspendActiveDOMObjectsEv
     
    848850__ZN7WebCore23AuthenticationChallenge23setAuthenticationClientEPNS_20AuthenticationClientE
    849851__ZN7WebCore23AuthenticationChallengeC1ERKNS_15ProtectionSpaceERKNS_10CredentialEjRKNS_16ResourceResponseERKNS_13ResourceErrorE
    850 __ZN7WebCore23MutableStylePropertySet25ensureCSSStyleDeclarationEv
    851 __ZN7WebCore23MutableStylePropertySetD1Ev
    852852__ZN7WebCore23SynchronousLoaderClient24platformBadResponseErrorEv
    853853__ZN7WebCore23dataForURLComponentTypeEP5NSURLl
     
    866866__ZN7WebCore24FrameDestructionObserverC2EPNS_5FrameE
    867867__ZN7WebCore24FrameDestructionObserverD2Ev
     868__ZN7WebCore24ImmutableStylePropertiesD1Ev
    868869__ZN7WebCore24ReferenceFilterOperationC1ERKN3WTF6StringES4_NS_15FilterOperation13OperationTypeE
    869870__ZN7WebCore24createFragmentFromMarkupERNS_8DocumentERKN3WTF6StringES5_NS_19ParserContentPolicyE
     
    873874__ZN7WebCore24notifyHistoryItemChangedE
    874875__ZN7WebCore24pathByAppendingComponentERKN3WTF6StringES3_
    875 __ZN7WebCore25ImmutableStylePropertySetD1Ev
    876876__ZN7WebCore25addLanguageChangeObserverEPvPFvS0_E
    877877__ZN7WebCore25computeViewportAttributesENS_17ViewportArgumentsEiiifNS_7IntSizeE
     
    10281028__ZN7WebCore6Chrome16setStatusbarTextEPNS_5FrameERKN3WTF6StringE
    10291029__ZN7WebCore6Chrome5printEPNS_5FrameE
    1030 __ZN7WebCore6Editor10applyStyleEPNS_16StylePropertySetENS_10EditActionE
     1030__ZN7WebCore6Editor10applyStyleEPNS_15StylePropertiesENS_10EditActionE
    10311031__ZN7WebCore6Editor10findStringERKN3WTF6StringEj
    10321032__ZN7WebCore6Editor10insertTextERKN3WTF6StringEPNS_5EventE
     
    10451045__ZN7WebCore6Editor19deleteWithDirectionENS_18SelectionDirectionENS_15TextGranularityEbb
    10461046__ZN7WebCore6Editor19insertUnorderedListEv
    1047 __ZN7WebCore6Editor21applyStyleToSelectionEPNS_16StylePropertySetENS_10EditActionE
     1047__ZN7WebCore6Editor21applyStyleToSelectionEPNS_15StylePropertiesENS_10EditActionE
    10481048__ZN7WebCore6Editor23setBaseWritingDirectionE16WritingDirection
    1049 __ZN7WebCore6Editor24computeAndSetTypingStyleEPNS_16StylePropertySetENS_10EditActionE
     1049__ZN7WebCore6Editor24computeAndSetTypingStyleEPNS_15StylePropertiesENS_10EditActionE
    10501050__ZN7WebCore6Editor24isSelectionUngrammaticalEv
    10511051__ZN7WebCore6Editor24replaceSelectionWithTextERKN3WTF6StringEbb
     
    15561556__ZNK7WebCore15ResourceRequest12cfURLRequestENS_20HTTPBodyUpdatePolicyE
    15571557__ZNK7WebCore15ResourceRequest12nsURLRequestENS_20HTTPBodyUpdatePolicyE
     1558__ZNK7WebCore15StyleProperties11mutableCopyEv
    15581559__ZNK7WebCore15VisiblePosition14characterAfterEv
    15591560__ZNK7WebCore15VisiblePosition14localCaretRectERPNS_12RenderObjectE
     
    15711572__ZNK7WebCore16ResourceResponse13nsURLResponseEv
    15721573__ZNK7WebCore16ResourceResponse16certificateChainEv
    1573 __ZNK7WebCore16StylePropertySet11mutableCopyEv
    15741574__ZNK7WebCore16VisibleSelection17isContentEditableEv
    15751575__ZNK7WebCore16VisibleSelection17toNormalizedRangeEv
  • trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj

    r159827 r159856  
    94109410    <ClCompile Include="..\css\StyleInvalidationAnalysis.cpp" />
    94119411    <ClCompile Include="..\css\StyleMedia.cpp" />
    9412     <ClCompile Include="..\css\StylePropertySet.cpp">
     9412    <ClCompile Include="..\css\StyleProperties.cpp">
    94139413      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild>
    94149414      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild>
     
    1978519785    <ClInclude Include="..\css\StyleInvalidationAnalysis.h" />
    1978619786    <ClInclude Include="..\css\StyleMedia.h" />
    19787     <ClInclude Include="..\css\StylePropertySet.h" />
     19787    <ClInclude Include="..\css\StyleProperties.h" />
    1978819788    <ClInclude Include="..\css\StylePropertyShorthand.h" />
    1978919789    <ClInclude Include="..\css\StyleResolver.h" />
  • trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj

    r159842 r159856  
    184184                076970871463AD8700F502CF /* TextTrackList.h in Headers */ = {isa = PBXBuildFile; fileRef = 076970851463AD8700F502CF /* TextTrackList.h */; };
    185185                076F0D0E12B8192700C26AA4 /* MediaPlayerPrivateAVFoundation.h in Headers */ = {isa = PBXBuildFile; fileRef = 076F0D0A12B8192700C26AA4 /* MediaPlayerPrivateAVFoundation.h */; };
     186                077664FC183E6B5C00133B92 /* JSQuickTimePluginReplacement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 077664FA183E6B5C00133B92 /* JSQuickTimePluginReplacement.cpp */; };
     187                077664FD183E6B5C00133B92 /* JSQuickTimePluginReplacement.h in Headers */ = {isa = PBXBuildFile; fileRef = 077664FB183E6B5C00133B92 /* JSQuickTimePluginReplacement.h */; };
    186188                0779BF0D18453168000B6AE7 /* HTMLMediaElementMediaStream.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0779BF0A18453168000B6AE7 /* HTMLMediaElementMediaStream.cpp */; };
    187189                0779BF0E18453168000B6AE7 /* HTMLMediaElementMediaStream.h in Headers */ = {isa = PBXBuildFile; fileRef = 0779BF0B18453168000B6AE7 /* HTMLMediaElementMediaStream.h */; };
     
    191193                07846343145B151A00A58DF1 /* JSTrackEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 07846341145B151A00A58DF1 /* JSTrackEvent.h */; };
    192194                07846385145B1B8E00A58DF1 /* JSTrackCustom.h in Headers */ = {isa = PBXBuildFile; fileRef = 07846384145B1B8E00A58DF1 /* JSTrackCustom.h */; };
    193                 077664FC183E6B5C00133B92 /* JSQuickTimePluginReplacement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 077664FA183E6B5C00133B92 /* JSQuickTimePluginReplacement.cpp */; };
    194                 077664FD183E6B5C00133B92 /* JSQuickTimePluginReplacement.h in Headers */ = {isa = PBXBuildFile; fileRef = 077664FB183E6B5C00133B92 /* JSQuickTimePluginReplacement.h */; };
    195195                078E08FE17D14CEE00420AA1 /* MediaConstraintsImpl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221B4A17CEC32700848E51 /* MediaConstraintsImpl.cpp */; };
    196196                078E08FF17D14CEE00420AA1 /* MediaStream.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221B4C17CEC32700848E51 /* MediaStream.cpp */; };
     
    36543654                A80E6D0C0A1989CA007FB8C5 /* CSSStyleRule.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6CE20A1989CA007FB8C5 /* CSSStyleRule.h */; };
    36553655                A80E6D0D0A1989CA007FB8C5 /* CSSRule.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6CE30A1989CA007FB8C5 /* CSSRule.h */; settings = {ATTRIBUTES = (Private, ); }; };
    3656                 A80E6DFB0A199067007FB8C5 /* StylePropertySet.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A80E6DF90A199067007FB8C5 /* StylePropertySet.cpp */; };
    3657                 A80E6DFC0A199067007FB8C5 /* StylePropertySet.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6DFA0A199067007FB8C5 /* StylePropertySet.h */; settings = {ATTRIBUTES = (Private, ); }; };
     3656                A80E6DFB0A199067007FB8C5 /* StyleProperties.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A80E6DF90A199067007FB8C5 /* StyleProperties.cpp */; };
     3657                A80E6DFC0A199067007FB8C5 /* StyleProperties.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6DFA0A199067007FB8C5 /* StyleProperties.h */; settings = {ATTRIBUTES = (Private, ); }; };
    36583658                A80E6E0F0A19911C007FB8C5 /* CSSStyleDeclaration.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6E0D0A19911C007FB8C5 /* CSSStyleDeclaration.h */; settings = {ATTRIBUTES = (Private, ); }; };
    36593659                A80E734F0A199C77007FB8C5 /* CSSSelector.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A80E73480A199C77007FB8C5 /* CSSSelector.cpp */; };
     
    68086808                076F0D0912B8192700C26AA4 /* MediaPlayerPrivateAVFoundation.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MediaPlayerPrivateAVFoundation.cpp; sourceTree = "<group>"; };
    68096809                076F0D0A12B8192700C26AA4 /* MediaPlayerPrivateAVFoundation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MediaPlayerPrivateAVFoundation.h; sourceTree = "<group>"; };
     6810                077664FA183E6B5C00133B92 /* JSQuickTimePluginReplacement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSQuickTimePluginReplacement.cpp; sourceTree = "<group>"; };
     6811                077664FB183E6B5C00133B92 /* JSQuickTimePluginReplacement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSQuickTimePluginReplacement.h; sourceTree = "<group>"; };
    68106812                0779BF0A18453168000B6AE7 /* HTMLMediaElementMediaStream.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLMediaElementMediaStream.cpp; sourceTree = "<group>"; };
    68116813                0779BF0B18453168000B6AE7 /* HTMLMediaElementMediaStream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLMediaElementMediaStream.h; sourceTree = "<group>"; };
     
    68136815                0783228218013ED700999E0C /* MediaStreamAudioSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MediaStreamAudioSource.cpp; sourceTree = "<group>"; };
    68146816                0783228318013ED800999E0C /* MediaStreamAudioSource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MediaStreamAudioSource.h; sourceTree = "<group>"; };
    6815                 077664FA183E6B5C00133B92 /* JSQuickTimePluginReplacement.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = JSQuickTimePluginReplacement.cpp; path = JSQuickTimePluginReplacement.cpp; sourceTree = "<group>"; };
    6816                 077664FB183E6B5C00133B92 /* JSQuickTimePluginReplacement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = JSQuickTimePluginReplacement.h; path = JSQuickTimePluginReplacement.h; sourceTree = "<group>"; };
    68176817                07846340145B151A00A58DF1 /* JSTrackEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSTrackEvent.cpp; sourceTree = "<group>"; };
    68186818                07846341145B151A00A58DF1 /* JSTrackEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSTrackEvent.h; sourceTree = "<group>"; };
     
    1046910469                A80E6CE20A1989CA007FB8C5 /* CSSStyleRule.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CSSStyleRule.h; sourceTree = "<group>"; };
    1047010470                A80E6CE30A1989CA007FB8C5 /* CSSRule.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CSSRule.h; sourceTree = "<group>"; };
    10471                 A80E6DF90A199067007FB8C5 /* StylePropertySet.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = StylePropertySet.cpp; sourceTree = "<group>"; };
    10472                 A80E6DFA0A199067007FB8C5 /* StylePropertySet.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = StylePropertySet.h; sourceTree = "<group>"; };
     10471                A80E6DF90A199067007FB8C5 /* StyleProperties.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = StyleProperties.cpp; sourceTree = "<group>"; };
     10472                A80E6DFA0A199067007FB8C5 /* StyleProperties.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = StyleProperties.h; sourceTree = "<group>"; };
    1047310473                A80E6E0D0A19911C007FB8C5 /* CSSStyleDeclaration.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CSSStyleDeclaration.h; sourceTree = "<group>"; };
    1047410474                A80E73480A199C77007FB8C5 /* CSSSelector.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CSSSelector.cpp; sourceTree = "<group>"; };
     
    2088720887                                0FF5026F102BA96A0066F39A /* StyleMedia.h */,
    2088820888                                0FF50270102BA96A0066F39A /* StyleMedia.idl */,
    20889                                 A80E6DF90A199067007FB8C5 /* StylePropertySet.cpp */,
    20890                                 A80E6DFA0A199067007FB8C5 /* StylePropertySet.h */,
     20889                                A80E6DF90A199067007FB8C5 /* StyleProperties.cpp */,
     20890                                A80E6DFA0A199067007FB8C5 /* StyleProperties.h */,
    2089120891                                E1B25104152A0BAF0069B779 /* StylePropertyShorthand.cpp */,
    2089220892                                E1B25105152A0BAF0069B779 /* StylePropertyShorthand.h */,
     
    2463524635                                0FF50272102BA96A0066F39A /* StyleMedia.h in Headers */,
    2463624636                                BC5EB74E0E81E06700B25965 /* StyleMultiColData.h in Headers */,
    24637                                 A80E6DFC0A199067007FB8C5 /* StylePropertySet.h in Headers */,
     24637                                A80E6DFC0A199067007FB8C5 /* StyleProperties.h in Headers */,
    2463824638                                E1B25107152A0BB00069B779 /* StylePropertyShorthand.h in Headers */,
    2463924639                                BC2272E40E82EE9B00E7F975 /* StyleRareInheritedData.h in Headers */,
     
    2785027850                                0FF50271102BA96A0066F39A /* StyleMedia.cpp in Sources */,
    2785127851                                BC5EB74D0E81E06700B25965 /* StyleMultiColData.cpp in Sources */,
    27852                                 A80E6DFB0A199067007FB8C5 /* StylePropertySet.cpp in Sources */,
     27852                                A80E6DFB0A199067007FB8C5 /* StyleProperties.cpp in Sources */,
    2785327853                                E1B25106152A0BAF0069B779 /* StylePropertyShorthand.cpp in Sources */,
    2785427854                                BC2272E30E82EE9B00E7F975 /* StyleRareInheritedData.cpp in Sources */,
  • trunk/Source/WebCore/bindings/js/JSCSSStyleDeclarationCustom.cpp

    r157971 r159856  
    3636#include "RuntimeEnabledFeatures.h"
    3737#include "Settings.h"
    38 #include "StylePropertySet.h"
     38#include "StyleProperties.h"
    3939#include <runtime/StringPrototype.h>
    4040#include <wtf/ASCIICType.h>
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorCPP.pm

    r156550 r159856  
    317317
    318318    $implIncludes{"Node.h"} = 1 if $type eq "NodeList";
    319     $implIncludes{"StylePropertySet.h"} = 1 if $type eq "CSSStyleDeclaration";
     319    $implIncludes{"StyleProperties.h"} = 1 if $type eq "CSSStyleDeclaration";
    320320
    321321    # Default, include the same named file (the implementation) and the same name prefixed with "WebDOM".
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm

    r159648 r159856  
    34793479
    34803480    if ($type eq "CSSStyleDeclaration") {
    3481         AddToImplIncludes("StylePropertySet.h", $conditional);
     3481        AddToImplIncludes("StyleProperties.h", $conditional);
    34823482    }
    34833483
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm

    r156550 r159856  
    678678    # FIXME: won't compile without these
    679679    $implIncludes{"CSSImportRule.h"} = 1 if $type eq "CSSRule";
    680     $implIncludes{"StylePropertySet.h"} = 1 if $type eq "CSSStyleDeclaration";
     680    $implIncludes{"StyleProperties.h"} = 1 if $type eq "CSSStyleDeclaration";
    681681    $implIncludes{"NameNodeList.h"} = 1 if $type eq "NodeList";
    682682
  • trunk/Source/WebCore/css/CSSAllInOne.cpp

    r154391 r159856  
    8282#include "SelectorCheckerFastPath.cpp"
    8383#include "SelectorFilter.cpp"
    84 #include "StylePropertySet.cpp"
     84#include "StyleProperties.cpp"
    8585#include "StylePropertyShorthand.cpp"
    8686#include "StyleResolver.cpp"
  • trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp

    r159842 r159856  
    6060#include "RenderView.h"
    6161#include "StyleInheritedData.h"
    62 #include "StylePropertySet.h"
     62#include "StyleProperties.h"
    6363#include "StylePropertyShorthand.h"
    6464#include "StyleResolver.h"
     
    17101710}
    17111711
    1712 PassRef<MutableStylePropertySet> CSSComputedStyleDeclaration::copyProperties() const
     1712PassRef<MutableStyleProperties> CSSComputedStyleDeclaration::copyProperties() const
    17131713{
    17141714    return ComputedStyleExtractor(m_node, m_allowVisitedStyle, m_pseudoElementSpecifier).copyProperties();
     
    31813181}
    31823182
    3183 PassRef<MutableStylePropertySet> ComputedStyleExtractor::copyProperties() const
     3183PassRef<MutableStyleProperties> ComputedStyleExtractor::copyProperties() const
    31843184{
    31853185    return copyPropertiesInSet(computedProperties, numComputedProperties);
     
    32343234}
    32353235
    3236 PassRef<MutableStylePropertySet> ComputedStyleExtractor::copyPropertiesInSet(const CSSPropertyID* set, unsigned length) const
     3236PassRef<MutableStyleProperties> ComputedStyleExtractor::copyPropertiesInSet(const CSSPropertyID* set, unsigned length) const
    32373237{
    32383238    Vector<CSSProperty, 256> list;
     
    32433243            list.append(CSSProperty(set[i], value.release(), false));
    32443244    }
    3245     return MutableStylePropertySet::create(list.data(), list.size());
     3245    return MutableStyleProperties::create(list.data(), list.size());
    32463246}
    32473247
  • trunk/Source/WebCore/css/CSSComputedStyleDeclaration.h

    r157569 r159856  
    3333class Color;
    3434class FilterOperations;
    35 class MutableStylePropertySet;
     35class MutableStyleProperties;
    3636class Node;
    3737class RenderObject;
     
    3939class SVGPaint;
    4040class ShadowData;
    41 class StylePropertySet;
     41class StyleProperties;
    4242class StylePropertyShorthand;
    4343
     
    5858
    5959    // Helper methods for HTML editing.
    60     PassRef<MutableStylePropertySet> copyPropertiesInSet(const CSSPropertyID* set, unsigned length) const;
    61     PassRef<MutableStylePropertySet> copyProperties() const;
     60    PassRef<MutableStyleProperties> copyPropertiesInSet(const CSSPropertyID* set, unsigned length) const;
     61    PassRef<MutableStyleProperties> copyProperties() const;
    6262    PassRefPtr<CSSPrimitiveValue> getFontSizeCSSValuePreferringKeyword() const;
    6363    bool useFixedFontDefaultSize() const;
     
    125125    virtual String getPropertyValueInternal(CSSPropertyID) OVERRIDE;
    126126    virtual void setPropertyInternal(CSSPropertyID, const String& value, bool important, ExceptionCode&) OVERRIDE;
    127     virtual PassRef<MutableStylePropertySet> copyProperties() const OVERRIDE;
     127    virtual PassRef<MutableStyleProperties> copyProperties() const OVERRIDE;
    128128
    129129    PassRefPtr<CSSValue> getPropertyCSSValue(CSSPropertyID, EUpdateLayout = UpdateLayout) const;
  • trunk/Source/WebCore/css/CSSFontFaceRule.cpp

    r157575 r159856  
    2424
    2525#include "PropertySetCSSStyleDeclaration.h"
    26 #include "StylePropertySet.h"
     26#include "StyleProperties.h"
    2727#include "StyleRule.h"
    2828#include <wtf/text/StringBuilder.h>
  • trunk/Source/WebCore/css/CSSFontSelector.cpp

    r158088 r159856  
    4646#include "Settings.h"
    4747#include "SimpleFontData.h"
    48 #include "StylePropertySet.h"
     48#include "StyleProperties.h"
    4949#include "StyleResolver.h"
    5050#include "StyleRule.h"
     
    9191{
    9292    // Obtain the font-family property and the src property.  Both must be defined.
    93     const StylePropertySet& style = fontFaceRule->properties();
     93    const StyleProperties& style = fontFaceRule->properties();
    9494    RefPtr<CSSValue> fontFamily = style.getPropertyCSSValue(CSSPropertyFontFamily);
    9595    RefPtr<CSSValue> src = style.getPropertyCSSValue(CSSPropertySrc);
  • trunk/Source/WebCore/css/CSSPageRule.cpp

    r157575 r159856  
    2828#include "Document.h"
    2929#include "PropertySetCSSStyleDeclaration.h"
    30 #include "StylePropertySet.h"
     30#include "StyleProperties.h"
    3131#include "StyleRule.h"
    3232#include <wtf/Vector.h>
  • trunk/Source/WebCore/css/CSSParser.cpp

    r159842 r159856  
    7575#include "SVGParserUtilities.h"
    7676#include "Settings.h"
    77 #include "StylePropertySet.h"
     77#include "StyleProperties.h"
    7878#include "StylePropertyShorthand.h"
    7979#include "StyleRule.h"
     
    508508}
    509509
    510 static bool parseColorValue(MutableStylePropertySet* declaration, CSSPropertyID propertyId, const String& string, bool important, CSSParserMode cssParserMode)
     510static bool parseColorValue(MutableStyleProperties* declaration, CSSPropertyID propertyId, const String& string, bool important, CSSParserMode cssParserMode)
    511511{
    512512    ASSERT(!string.isEmpty());
     
    606606}
    607607
    608 static bool parseSimpleLengthValue(MutableStylePropertySet* declaration, CSSPropertyID propertyId, const String& string, bool important, CSSParserMode cssParserMode)
     608static bool parseSimpleLengthValue(MutableStyleProperties* declaration, CSSPropertyID propertyId, const String& string, bool important, CSSParserMode cssParserMode)
    609609{
    610610    ASSERT(!string.isEmpty());
     
    11711171}
    11721172
    1173 static bool parseKeywordValue(MutableStylePropertySet* declaration, CSSPropertyID propertyId, const String& string, bool important, const CSSParserContext& parserContext)
     1173static bool parseKeywordValue(MutableStyleProperties* declaration, CSSPropertyID propertyId, const String& string, bool important, const CSSParserContext& parserContext)
    11741174{
    11751175    ASSERT(!string.isEmpty());
     
    12281228}
    12291229
    1230 static bool parseTranslateTransformValue(MutableStylePropertySet* properties, CSSPropertyID propertyID, const String& string, bool important)
     1230static bool parseTranslateTransformValue(MutableStyleProperties* properties, CSSPropertyID propertyID, const String& string, bool important)
    12311231{
    12321232    if (propertyID != CSSPropertyWebkitTransform)
     
    12791279    if (string.isEmpty())
    12801280        return 0;
    1281     RefPtr<MutableStylePropertySet> dummyStyle = MutableStylePropertySet::create();
     1281    RefPtr<MutableStyleProperties> dummyStyle = MutableStyleProperties::create();
    12821282    if (!parseValue(dummyStyle.get(), CSSPropertyFontFamily, string, false, CSSQuirksMode, 0))
    12831283        return 0;
     
    12891289}
    12901290
    1291 bool CSSParser::parseValue(MutableStylePropertySet* declaration, CSSPropertyID propertyID, const String& string, bool important, CSSParserMode cssParserMode, StyleSheetContents* contextStyleSheet)
     1291bool CSSParser::parseValue(MutableStyleProperties* declaration, CSSPropertyID propertyID, const String& string, bool important, CSSParserMode cssParserMode, StyleSheetContents* contextStyleSheet)
    12921292{
    12931293    ASSERT(!string.isEmpty());
     
    13121312}
    13131313
    1314 bool CSSParser::parseValue(MutableStylePropertySet* declaration, CSSPropertyID propertyID, const String& string, bool important, StyleSheetContents* contextStyleSheet)
     1314bool CSSParser::parseValue(MutableStyleProperties* declaration, CSSPropertyID propertyID, const String& string, bool important, StyleSheetContents* contextStyleSheet)
    13151315{
    13161316    setStyleSheet(contextStyleSheet);
     
    13981398}
    13991399
    1400 PassRef<ImmutableStylePropertySet> CSSParser::parseInlineStyleDeclaration(const String& string, Element* element)
     1400PassRef<ImmutableStyleProperties> CSSParser::parseInlineStyleDeclaration(const String& string, Element* element)
    14011401{
    14021402    CSSParserContext context = element->document().elementSheet().contents().parserContext();
     
    14051405}
    14061406
    1407 PassRef<ImmutableStylePropertySet> CSSParser::parseDeclaration(const String& string, StyleSheetContents* contextStyleSheet)
     1407PassRef<ImmutableStyleProperties> CSSParser::parseDeclaration(const String& string, StyleSheetContents* contextStyleSheet)
    14081408{
    14091409    setStyleSheet(contextStyleSheet);
     
    14161416        deleteFontFaceOnlyValues();
    14171417
    1418     PassRef<ImmutableStylePropertySet> style = createStylePropertySet();
     1418    PassRef<ImmutableStyleProperties> style = createStyleProperties();
    14191419    clearProperties();
    14201420    return style;
     
    14221422
    14231423
    1424 bool CSSParser::parseDeclaration(MutableStylePropertySet* declaration, const String& string, PassRefPtr<CSSRuleSourceData> prpRuleSourceData, StyleSheetContents* contextStyleSheet)
     1424bool CSSParser::parseDeclaration(MutableStyleProperties* declaration, const String& string, PassRefPtr<CSSRuleSourceData> prpRuleSourceData, StyleSheetContents* contextStyleSheet)
    14251425{
    14261426    // Length of the "@-webkit-decls{" prefix.
     
    14951495}
    14961496
    1497 PassRef<ImmutableStylePropertySet> CSSParser::createStylePropertySet()
     1497PassRef<ImmutableStyleProperties> CSSParser::createStyleProperties()
    14981498{
    14991499    BitArray<numCSSProperties> seenProperties;
     
    15071507        results.remove(0, unusedEntries);
    15081508
    1509     return ImmutableStylePropertySet::create(results.data(), results.size(), m_context.mode);
     1509    return ImmutableStyleProperties::create(results.data(), results.size(), m_context.mode);
    15101510}
    15111511
     
    94869486PassRefPtr<StyleRuleBase> CSSParser::createFilterRule(const CSSParserString& filterName)
    94879487{
    9488     RefPtr<StyleRuleFilter> rule = StyleRuleFilter::create(filterName, createStylePropertySet());
     9488    RefPtr<StyleRuleFilter> rule = StyleRuleFilter::create(filterName, createStyleProperties());
    94899489    clearProperties();
    94909490    processAndAddNewRuleToSourceTreeIfNeeded();
     
    1190311903        if (m_hasFontFaceOnlyValues)
    1190411904            deleteFontFaceOnlyValues();
    11905         rule = StyleRule::create(m_lastSelectorLineNumber, createStylePropertySet());
     11905        rule = StyleRule::create(m_lastSelectorLineNumber, createStyleProperties());
    1190611906        rule->parserAdoptSelectorVector(*selectors);
    1190711907        processAndAddNewRuleToSourceTreeIfNeeded();
     
    1192911929        }
    1193011930    }
    11931     RefPtr<StyleRuleFontFace> rule = StyleRuleFontFace::create(createStylePropertySet());
     11931    RefPtr<StyleRuleFontFace> rule = StyleRuleFontFace::create(createStyleProperties());
    1193211932    clearProperties();
    1193311933    processAndAddNewRuleToSourceTreeIfNeeded();
     
    1203512035    RefPtr<StyleRulePage> rule;
    1203612036    if (pageSelector) {
    12037         rule = StyleRulePage::create(createStylePropertySet());
     12037        rule = StyleRulePage::create(createStyleProperties());
    1203812038        Vector<OwnPtr<CSSParserSelector>> selectorVector;
    1203912039        selectorVector.append(pageSelector);
     
    1214012140    }
    1214112141
    12142     RefPtr<StyleKeyframe> keyframe = StyleKeyframe::create(createStylePropertySet());
     12142    RefPtr<StyleKeyframe> keyframe = StyleKeyframe::create(createStyleProperties());
    1214312143    keyframe->setKeyText(keyString.toString());
    1214412144
     
    1235712357    m_allowImportRules = m_allowNamespaceDeclarations = false;
    1235812358
    12359     RefPtr<StyleRuleViewport> rule = StyleRuleViewport::create(createStylePropertySet());
     12359    RefPtr<StyleRuleViewport> rule = StyleRuleViewport::create(createStyleProperties());
    1236012360    clearProperties();
    1236112361
  • trunk/Source/WebCore/css/CSSParser.h

    r159842 r159856  
    5555class Document;
    5656class Element;
    57 class ImmutableStylePropertySet;
     57class ImmutableStyleProperties;
    5858class MediaQueryExp;
    5959class MediaQuerySet;
    60 class MutableStylePropertySet;
     60class MutableStyleProperties;
    6161class StyleKeyframe;
    6262class StylePropertyShorthand;
     
    9494    bool parseSupportsCondition(const String&);
    9595#endif
    96     static bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String&, bool important, CSSParserMode, StyleSheetContents*);
     96    static bool parseValue(MutableStyleProperties*, CSSPropertyID, const String&, bool important, CSSParserMode, StyleSheetContents*);
    9797    static bool parseColor(RGBA32& color, const String&, bool strict = false);
    9898    static bool parseSystemColor(RGBA32& color, const String&, Document*);
    9999    static PassRefPtr<CSSValueList> parseFontFaceValue(const AtomicString&);
    100100    PassRefPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ident, CSSParserValue*);
    101     bool parseDeclaration(MutableStylePropertySet*, const String&, PassRefPtr<CSSRuleSourceData>, StyleSheetContents* contextStyleSheet);
    102     static PassRef<ImmutableStylePropertySet> parseInlineStyleDeclaration(const String&, Element*);
     101    bool parseDeclaration(MutableStyleProperties*, const String&, PassRefPtr<CSSRuleSourceData>, StyleSheetContents* contextStyleSheet);
     102    static PassRef<ImmutableStyleProperties> parseInlineStyleDeclaration(const String&, Element*);
    103103    PassOwnPtr<MediaQuery> parseMediaQuery(const String&);
    104104
     
    354354    void clearProperties();
    355355
    356     PassRef<ImmutableStylePropertySet> createStylePropertySet();
     356    PassRef<ImmutableStyleProperties> createStyleProperties();
    357357
    358358    CSSParserContext m_context;
     
    527527    bool parseGeneratedImage(CSSParserValueList*, RefPtr<CSSValue>&);
    528528
    529     bool parseValue(MutableStylePropertySet*, CSSPropertyID, const String&, bool important, StyleSheetContents* contextStyleSheet);
    530     PassRef<ImmutableStylePropertySet> parseDeclaration(const String&, StyleSheetContents* contextStyleSheet);
     529    bool parseValue(MutableStyleProperties*, CSSPropertyID, const String&, bool important, StyleSheetContents* contextStyleSheet);
     530    PassRef<ImmutableStyleProperties> parseDeclaration(const String&, StyleSheetContents* contextStyleSheet);
    531531
    532532    enum SizeParameterType {
  • trunk/Source/WebCore/css/CSSStyleDeclaration.h

    r157569 r159856  
    3232class CSSStyleSheet;
    3333class CSSValue;
    34 class MutableStylePropertySet;
    35 class StylePropertySet;
     34class MutableStyleProperties;
     35class StyleProperties;
    3636class StyledElement;
    3737
     
    6666    virtual void setPropertyInternal(CSSPropertyID, const String& value, bool important, ExceptionCode&) = 0;
    6767
    68     virtual PassRef<MutableStylePropertySet> copyProperties() const = 0;
     68    virtual PassRef<MutableStyleProperties> copyProperties() const = 0;
    6969
    7070    virtual CSSStyleSheet* parentStyleSheet() const { return 0; }
  • trunk/Source/WebCore/css/CSSStyleRule.cpp

    r157575 r159856  
    2929#include "PropertySetCSSStyleDeclaration.h"
    3030#include "RuleSet.h"
    31 #include "StylePropertySet.h"
     31#include "StyleProperties.h"
    3232#include "StyleRule.h"
    3333#include <wtf/text/StringBuilder.h>
  • trunk/Source/WebCore/css/DOMWindowCSS.cpp

    r148395 r159856  
    3434
    3535#include "CSSParser.h"
    36 #include "StylePropertySet.h"
     36#include "StyleProperties.h"
    3737#include <wtf/text/WTFString.h>
    3838
     
    7474        return false;
    7575
    76     RefPtr<MutableStylePropertySet> dummyStyle = MutableStylePropertySet::create();
     76    RefPtr<MutableStyleProperties> dummyStyle = MutableStyleProperties::create();
    7777    return CSSParser::parseValue(dummyStyle.get(), propertyID, normalizedValue, false, CSSStrictMode, 0);
    7878}
  • trunk/Source/WebCore/css/ElementRuleCollector.cpp

    r157653 r159856  
    4141#include "SVGElement.h"
    4242#include "SelectorCheckerFastPath.h"
    43 #include "StylePropertySet.h"
     43#include "StyleProperties.h"
    4444#include "StyledElement.h"
    4545
     
    4848namespace WebCore {
    4949
    50 static const StylePropertySet& leftToRightDeclaration()
    51 {
    52     static NeverDestroyed<Ref<MutableStylePropertySet>> leftToRightDecl(MutableStylePropertySet::create());
     50static const StyleProperties& leftToRightDeclaration()
     51{
     52    static NeverDestroyed<Ref<MutableStyleProperties>> leftToRightDecl(MutableStyleProperties::create());
    5353    if (leftToRightDecl.get()->isEmpty())
    5454        leftToRightDecl.get()->setProperty(CSSPropertyDirection, CSSValueLtr);
     
    5656}
    5757
    58 static const StylePropertySet& rightToLeftDeclaration()
    59 {
    60     static NeverDestroyed<Ref<MutableStylePropertySet>> rightToLeftDecl(MutableStylePropertySet::create());
     58static const StyleProperties& rightToLeftDeclaration()
     59{
     60    static NeverDestroyed<Ref<MutableStyleProperties>> rightToLeftDecl(MutableStyleProperties::create());
    6161    if (rightToLeftDecl.get()->isEmpty())
    6262        rightToLeftDecl.get()->setProperty(CSSPropertyDirection, CSSValueRtl);
     
    101101}
    102102
    103 inline void ElementRuleCollector::addElementStyleProperties(const StylePropertySet* propertySet, bool isCacheable)
     103inline void ElementRuleCollector::addElementStyleProperties(const StyleProperties* propertySet, bool isCacheable)
    104104{
    105105    if (!propertySet)
     
    361361
    362362            // If the rule has no properties to apply, then ignore it in the non-debug mode.
    363             const StylePropertySet& properties = rule->properties();
     363            const StyleProperties& properties = rule->properties();
    364364            if (properties.isEmpty() && !matchRequest.includeEmptyRules) {
    365365                if (hasInspectorFrontends)
  • trunk/Source/WebCore/css/ElementRuleCollector.h

    r157653 r159856  
    7474private:
    7575    Document& document() { return m_state.document(); }
    76     void addElementStyleProperties(const StylePropertySet*, bool isCacheable = true);
     76    void addElementStyleProperties(const StyleProperties*, bool isCacheable = true);
    7777
    7878    void matchUARules(RuleSet*);
  • trunk/Source/WebCore/css/FontLoader.cpp

    r156241 r159856  
    3737#include "Document.h"
    3838#include "FrameView.h"
    39 #include "StylePropertySet.h"
     39#include "StyleProperties.h"
    4040#include "StyleResolver.h"
    4141
     
    262262}
    263263
    264 static void applyPropertyToCurrentStyle(StyleResolver* styleResolver, CSSPropertyID id, const RefPtr<StylePropertySet>& parsedStyle)
     264static void applyPropertyToCurrentStyle(StyleResolver* styleResolver, CSSPropertyID id, const RefPtr<StyleProperties>& parsedStyle)
    265265{
    266266    styleResolver->applyPropertyToCurrentStyle(id, parsedStyle->getPropertyCSSValue(id).get());
     
    270270{
    271271    // Interpret fontString in the same way as the 'font' attribute of CanvasRenderingContext2D.
    272     RefPtr<MutableStylePropertySet> parsedStyle = MutableStylePropertySet::create();
     272    RefPtr<MutableStyleProperties> parsedStyle = MutableStyleProperties::create();
    273273    CSSParser::parseValue(parsedStyle.get(), CSSPropertyFont, fontString, true, CSSStrictMode, 0);
    274274    if (parsedStyle->isEmpty())
  • trunk/Source/WebCore/css/PageRuleCollector.cpp

    r153880 r159856  
    3131
    3232#include "CSSDefaultStyleSheets.h"
    33 #include "StylePropertySet.h"
     33#include "StyleProperties.h"
    3434#include "StyleRule.h"
    3535
     
    119119
    120120        // If the rule has no properties to apply, then ignore it.
    121         const StylePropertySet& properties = rule->properties();
     121        const StyleProperties& properties = rule->properties();
    122122        if (properties.isEmpty())
    123123            continue;
  • trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp

    r158514 r159856  
    2929#include "MutationObserverInterestGroup.h"
    3030#include "MutationRecord.h"
    31 #include "StylePropertySet.h"
     31#include "StyleProperties.h"
    3232#include "StyledElement.h"
    3333
     
    289289}
    290290
    291 PassRef<MutableStylePropertySet> PropertySetCSSStyleDeclaration::copyProperties() const
     291PassRef<MutableStyleProperties> PropertySetCSSStyleDeclaration::copyProperties() const
    292292{
    293293    return m_propertySet->mutableCopy();
    294294}
    295295   
    296 StyleRuleCSSStyleDeclaration::StyleRuleCSSStyleDeclaration(MutableStylePropertySet& propertySet, CSSRule& parentRule)
     296StyleRuleCSSStyleDeclaration::StyleRuleCSSStyleDeclaration(MutableStyleProperties& propertySet, CSSRule& parentRule)
    297297    : PropertySetCSSStyleDeclaration(&propertySet)
    298298    , m_refCount(1)
     
    340340}
    341341
    342 void StyleRuleCSSStyleDeclaration::reattach(MutableStylePropertySet& propertySet)
     342void StyleRuleCSSStyleDeclaration::reattach(MutableStyleProperties& propertySet)
    343343{
    344344    m_propertySet->deref();
  • trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.h

    r157653 r159856  
    3737class CSSProperty;
    3838class CSSValue;
    39 class MutableStylePropertySet;
     39class MutableStyleProperties;
    4040class StyleSheetContents;
    4141class StyledElement;
     
    4343class PropertySetCSSStyleDeclaration : public CSSStyleDeclaration {
    4444public:
    45     PropertySetCSSStyleDeclaration(MutableStylePropertySet* propertySet) : m_propertySet(propertySet) { }
     45    PropertySetCSSStyleDeclaration(MutableStyleProperties* propertySet) : m_propertySet(propertySet) { }
    4646   
    4747    virtual StyledElement* parentElement() const { return 0; }
     
    6969    virtual void setPropertyInternal(CSSPropertyID, const String& value, bool important, ExceptionCode&) OVERRIDE;
    7070   
    71     virtual PassRef<MutableStylePropertySet> copyProperties() const OVERRIDE;
     71    virtual PassRef<MutableStyleProperties> copyProperties() const OVERRIDE;
    7272
    7373    CSSValue* cloneAndCacheForCSSOM(CSSValue*);
     
    7878    virtual void didMutate(MutationType) { }
    7979
    80     MutableStylePropertySet* m_propertySet;
     80    MutableStyleProperties* m_propertySet;
    8181    OwnPtr<HashMap<CSSValue*, RefPtr<CSSValue>>> m_cssomCSSValueClones;
    8282};
     
    8585{
    8686public:
    87     static PassRefPtr<StyleRuleCSSStyleDeclaration> create(MutableStylePropertySet& propertySet, CSSRule& parentRule)
     87    static PassRefPtr<StyleRuleCSSStyleDeclaration> create(MutableStyleProperties& propertySet, CSSRule& parentRule)
    8888    {
    8989        return adoptRef(new StyleRuleCSSStyleDeclaration(propertySet, parentRule));
     
    9696    virtual void deref() OVERRIDE;
    9797
    98     void reattach(MutableStylePropertySet&);
     98    void reattach(MutableStyleProperties&);
    9999
    100100private:
    101     StyleRuleCSSStyleDeclaration(MutableStylePropertySet&, CSSRule&);
     101    StyleRuleCSSStyleDeclaration(MutableStyleProperties&, CSSRule&);
    102102
    103103    virtual CSSStyleSheet* parentStyleSheet() const OVERRIDE;
     
    115115{
    116116public:
    117     InlineCSSStyleDeclaration(MutableStylePropertySet* propertySet, StyledElement* parentElement)
     117    InlineCSSStyleDeclaration(MutableStyleProperties* propertySet, StyledElement* parentElement)
    118118        : PropertySetCSSStyleDeclaration(propertySet)
    119119        , m_parentElement(parentElement)
  • trunk/Source/WebCore/css/StyleProperties.cpp

    r159842 r159856  
    2222
    2323#include "config.h"
    24 #include "StylePropertySet.h"
     24#include "StyleProperties.h"
    2525
    2626#include "CSSComputedStyleDeclaration.h"
     
    4444namespace WebCore {
    4545
    46 static size_t sizeForImmutableStylePropertySetWithPropertyCount(unsigned count)
    47 {
    48     return sizeof(ImmutableStylePropertySet) - sizeof(void*) + sizeof(CSSValue*) * count + sizeof(StylePropertyMetadata) * count;
     46static size_t sizeForImmutableStylePropertiesWithPropertyCount(unsigned count)
     47{
     48    return sizeof(ImmutableStyleProperties) - sizeof(void*) + sizeof(CSSValue*) * count + sizeof(StylePropertyMetadata) * count;
    4949}
    5050
     
    5656}
    5757
    58 PassRef<ImmutableStylePropertySet> ImmutableStylePropertySet::create(const CSSProperty* properties, unsigned count, CSSParserMode cssParserMode)
    59 {
    60     void* slot = WTF::fastMalloc(sizeForImmutableStylePropertySetWithPropertyCount(count));
    61     return adoptRef(*new (NotNull, slot) ImmutableStylePropertySet(properties, count, cssParserMode));
    62 }
    63 
    64 PassRef<ImmutableStylePropertySet> StylePropertySet::immutableCopyIfNeeded() const
     58PassRef<ImmutableStyleProperties> ImmutableStyleProperties::create(const CSSProperty* properties, unsigned count, CSSParserMode cssParserMode)
     59{
     60    void* slot = WTF::fastMalloc(sizeForImmutableStylePropertiesWithPropertyCount(count));
     61    return adoptRef(*new (NotNull, slot) ImmutableStyleProperties(properties, count, cssParserMode));
     62}
     63
     64PassRef<ImmutableStyleProperties> StyleProperties::immutableCopyIfNeeded() const
    6565{
    6666    if (!isMutable())
    67         return static_cast<ImmutableStylePropertySet&>(const_cast<StylePropertySet&>(*this));
    68     const MutableStylePropertySet& mutableThis = static_cast<const MutableStylePropertySet&>(*this);
    69     return ImmutableStylePropertySet::create(mutableThis.m_propertyVector.data(), mutableThis.m_propertyVector.size(), cssParserMode());
    70 }
    71 
    72 MutableStylePropertySet::MutableStylePropertySet(CSSParserMode cssParserMode)
    73     : StylePropertySet(cssParserMode)
    74 {
    75 }
    76 
    77 MutableStylePropertySet::MutableStylePropertySet(const CSSProperty* properties, unsigned length)
    78     : StylePropertySet(CSSStrictMode)
     67        return static_cast<ImmutableStyleProperties&>(const_cast<StyleProperties&>(*this));
     68    const MutableStyleProperties& mutableThis = static_cast<const MutableStyleProperties&>(*this);
     69    return ImmutableStyleProperties::create(mutableThis.m_propertyVector.data(), mutableThis.m_propertyVector.size(), cssParserMode());
     70}
     71
     72MutableStyleProperties::MutableStyleProperties(CSSParserMode cssParserMode)
     73    : StyleProperties(cssParserMode)
     74{
     75}
     76
     77MutableStyleProperties::MutableStyleProperties(const CSSProperty* properties, unsigned length)
     78    : StyleProperties(CSSStrictMode)
    7979{
    8080    m_propertyVector.reserveInitialCapacity(length);
     
    8383}
    8484
    85 MutableStylePropertySet::~MutableStylePropertySet()
    86 {
    87 }
    88 
    89 ImmutableStylePropertySet::ImmutableStylePropertySet(const CSSProperty* properties, unsigned length, CSSParserMode cssParserMode)
    90     : StylePropertySet(cssParserMode, length)
     85MutableStyleProperties::~MutableStyleProperties()
     86{
     87}
     88
     89ImmutableStyleProperties::ImmutableStyleProperties(const CSSProperty* properties, unsigned length, CSSParserMode cssParserMode)
     90    : StyleProperties(cssParserMode, length)
    9191{
    9292    StylePropertyMetadata* metadataArray = const_cast<StylePropertyMetadata*>(this->metadataArray());
     
    9999}
    100100
    101 ImmutableStylePropertySet::~ImmutableStylePropertySet()
     101ImmutableStyleProperties::~ImmutableStyleProperties()
    102102{
    103103    CSSValue** valueArray = const_cast<CSSValue**>(this->valueArray());
     
    106106}
    107107
    108 MutableStylePropertySet::MutableStylePropertySet(const StylePropertySet& other)
    109     : StylePropertySet(other.cssParserMode())
     108MutableStyleProperties::MutableStyleProperties(const StyleProperties& other)
     109    : StyleProperties(other.cssParserMode())
    110110{
    111111    if (other.isMutable())
    112         m_propertyVector = static_cast<const MutableStylePropertySet&>(other).m_propertyVector;
     112        m_propertyVector = static_cast<const MutableStyleProperties&>(other).m_propertyVector;
    113113    else {
    114114        m_propertyVector.reserveInitialCapacity(other.propertyCount());
     
    118118}
    119119
    120 String StylePropertySet::getPropertyValue(CSSPropertyID propertyID) const
     120String StyleProperties::getPropertyValue(CSSPropertyID propertyID) const
    121121{
    122122    RefPtr<CSSValue> value = getPropertyCSSValue(propertyID);
     
    209209        return get4Values(borderRadiusShorthand());
    210210    default:
    211           return String();
    212     }
    213 }
    214 
    215 String StylePropertySet::borderSpacingValue(const StylePropertyShorthand& shorthand) const
     211        return String();
     212    }
     213}
     214
     215String StyleProperties::borderSpacingValue(const StylePropertyShorthand& shorthand) const
    216216{
    217217    RefPtr<CSSValue> horizontalValue = getPropertyCSSValue(shorthand.properties()[0]);
     
    231231}
    232232
    233 void StylePropertySet::appendFontLonghandValueIfExplicit(CSSPropertyID propertyID, StringBuilder& result, String& commonValue) const
     233void StyleProperties::appendFontLonghandValueIfExplicit(CSSPropertyID propertyID, StringBuilder& result, String& commonValue) const
    234234{
    235235    int foundPropertyIndex = findPropertyIndex(propertyID);
     
    266266}
    267267
    268 String StylePropertySet::fontValue() const
     268String StyleProperties::fontValue() const
    269269{
    270270    int fontSizePropertyIndex = findPropertyIndex(CSSPropertyFontSize);
     
    295295}
    296296
    297 String StylePropertySet::get4Values(const StylePropertyShorthand& shorthand) const
     297String StyleProperties::get4Values(const StylePropertyShorthand& shorthand) const
    298298{
    299299    // Assume the properties are in the usual order top, right, bottom, left.
     
    349349}
    350350
    351 String StylePropertySet::getLayeredShorthandValue(const StylePropertyShorthand& shorthand) const
     351String StyleProperties::getLayeredShorthandValue(const StylePropertyShorthand& shorthand) const
    352352{
    353353    StringBuilder result;
     
    371371    bool commonValueInitialized = false;
    372372
    373     // Now stitch the properties together.  Implicit initial values are flagged as such and
     373    // Now stitch the properties together. Implicit initial values are flagged as such and
    374374    // can safely be omitted.
    375375    for (size_t i = 0; i < numLayers; i++) {
     
    391391                        if (i != numLayers - 1)
    392392                            value = 0;
    393                     } else if (i != 0) // Other singletons only belong in the first layer.
     393                    } else if (i) // Other singletons only belong in the first layer.
    394394                        value = 0;
    395395                }
     
    486486}
    487487
    488 String StylePropertySet::getShorthandValue(const StylePropertyShorthand& shorthand) const
     488String StyleProperties::getShorthandValue(const StylePropertyShorthand& shorthand) const
    489489{
    490490    String commonValue;
     
    516516
    517517// only returns a non-null value if all properties have the same, non-null value
    518 String StylePropertySet::getCommonValue(const StylePropertyShorthand& shorthand) const
     518String StyleProperties::getCommonValue(const StylePropertyShorthand& shorthand) const
    519519{
    520520    String res;
     
    541541}
    542542
    543 String StylePropertySet::borderPropertyValue(CommonValueMode valueMode) const
     543String StyleProperties::borderPropertyValue(CommonValueMode valueMode) const
    544544{
    545545    const StylePropertyShorthand properties[3] = { borderWidthShorthand(), borderStyleShorthand(), borderColorShorthand() };
     
    569569}
    570570
    571 PassRefPtr<CSSValue> StylePropertySet::getPropertyCSSValue(CSSPropertyID propertyID) const
     571PassRefPtr<CSSValue> StyleProperties::getPropertyCSSValue(CSSPropertyID propertyID) const
    572572{
    573573    int foundPropertyIndex = findPropertyIndex(propertyID);
     
    577577}
    578578
    579 bool MutableStylePropertySet::removeShorthandProperty(CSSPropertyID propertyID)
     579bool MutableStyleProperties::removeShorthandProperty(CSSPropertyID propertyID)
    580580{
    581581    StylePropertyShorthand shorthand = shorthandForProperty(propertyID);
     
    593593}
    594594
    595 bool MutableStylePropertySet::removeProperty(CSSPropertyID propertyID, String* returnText)
     595bool MutableStyleProperties::removeProperty(CSSPropertyID propertyID, String* returnText)
    596596{
    597597    if (removeShorthandProperty(propertyID)) {
     
    621621}
    622622
    623 void MutableStylePropertySet::removePrefixedOrUnprefixedProperty(CSSPropertyID propertyID)
     623void MutableStyleProperties::removePrefixedOrUnprefixedProperty(CSSPropertyID propertyID)
    624624{
    625625    int foundPropertyIndex = findPropertyIndex(prefixingVariantForPropertyId(propertyID));
     
    629629}
    630630
    631 bool StylePropertySet::propertyIsImportant(CSSPropertyID propertyID) const
     631bool StyleProperties::propertyIsImportant(CSSPropertyID propertyID) const
    632632{
    633633    int foundPropertyIndex = findPropertyIndex(propertyID);
     
    646646}
    647647
    648 String StylePropertySet::getPropertyShorthand(CSSPropertyID propertyID) const
     648String StyleProperties::getPropertyShorthand(CSSPropertyID propertyID) const
    649649{
    650650    int foundPropertyIndex = findPropertyIndex(propertyID);
     
    654654}
    655655
    656 bool StylePropertySet::isPropertyImplicit(CSSPropertyID propertyID) const
     656bool StyleProperties::isPropertyImplicit(CSSPropertyID propertyID) const
    657657{
    658658    int foundPropertyIndex = findPropertyIndex(propertyID);
     
    662662}
    663663
    664 bool MutableStylePropertySet::setProperty(CSSPropertyID propertyID, const String& value, bool important, StyleSheetContents* contextStyleSheet)
     664bool MutableStyleProperties::setProperty(CSSPropertyID propertyID, const String& value, bool important, StyleSheetContents* contextStyleSheet)
    665665{
    666666    // Setting the value to an empty string just removes the property in both IE and Gecko.
     
    674674}
    675675
    676 void MutableStylePropertySet::setProperty(CSSPropertyID propertyID, PassRefPtr<CSSValue> prpValue, bool important)
     676void MutableStyleProperties::setProperty(CSSPropertyID propertyID, PassRefPtr<CSSValue> prpValue, bool important)
    677677{
    678678    StylePropertyShorthand shorthand = shorthandForProperty(propertyID);
     
    689689}
    690690
    691 void MutableStylePropertySet::setProperty(const CSSProperty& property, CSSProperty* slot)
     691void MutableStyleProperties::setProperty(const CSSProperty& property, CSSProperty* slot)
    692692{
    693693    if (!removeShorthandProperty(property.id())) {
     
    711711}
    712712
    713 void MutableStylePropertySet::appendPrefixingVariantProperty(const CSSProperty& property)
     713void MutableStyleProperties::appendPrefixingVariantProperty(const CSSProperty& property)
    714714{
    715715    m_propertyVector.append(property);
     
    721721}
    722722
    723 void MutableStylePropertySet::setPrefixingVariantProperty(const CSSProperty& property)
     723void MutableStyleProperties::setPrefixingVariantProperty(const CSSProperty& property)
    724724{
    725725    CSSPropertyID prefixingVariant = prefixingVariantForPropertyId(property.id());
     
    729729}
    730730
    731 bool MutableStylePropertySet::setProperty(CSSPropertyID propertyID, CSSValueID identifier, bool important)
     731bool MutableStyleProperties::setProperty(CSSPropertyID propertyID, CSSValueID identifier, bool important)
    732732{
    733733    setProperty(CSSProperty(propertyID, cssValuePool().createIdentifierValue(identifier), important));
     
    735735}
    736736
    737 bool MutableStylePropertySet::setProperty(CSSPropertyID propertyID, CSSPropertyID identifier, bool important)
     737bool MutableStyleProperties::setProperty(CSSPropertyID propertyID, CSSPropertyID identifier, bool important)
    738738{
    739739    setProperty(CSSProperty(propertyID, cssValuePool().createIdentifierValue(identifier), important));
     
    741741}
    742742
    743 void MutableStylePropertySet::parseDeclaration(const String& styleDeclaration, StyleSheetContents* contextStyleSheet)
     743void MutableStyleProperties::parseDeclaration(const String& styleDeclaration, StyleSheetContents* contextStyleSheet)
    744744{
    745745    m_propertyVector.clear();
     
    754754}
    755755
    756 void MutableStylePropertySet::addParsedProperties(const Vector<CSSProperty>& properties)
     756void MutableStyleProperties::addParsedProperties(const Vector<CSSProperty>& properties)
    757757{
    758758    m_propertyVector.reserveCapacity(m_propertyVector.size() + properties.size());
     
    761761}
    762762
    763 void MutableStylePropertySet::addParsedProperty(const CSSProperty& property)
     763void MutableStyleProperties::addParsedProperty(const CSSProperty& property)
    764764{
    765765    // Only add properties that have no !important counterpart present
     
    768768}
    769769
    770 String StylePropertySet::asText() const
     770String StyleProperties::asText() const
    771771{
    772772    StringBuilder result;
     
    10181018}
    10191019
    1020 bool StylePropertySet::hasCSSOMWrapper() const
    1021 {
    1022     return m_isMutable && static_cast<const MutableStylePropertySet*>(this)->m_cssomWrapper;
    1023 }
    1024 
    1025 void MutableStylePropertySet::mergeAndOverrideOnConflict(const StylePropertySet& other)
     1020bool StyleProperties::hasCSSOMWrapper() const
     1021{
     1022    return m_isMutable && static_cast<const MutableStyleProperties*>(this)->m_cssomWrapper;
     1023}
     1024
     1025void MutableStyleProperties::mergeAndOverrideOnConflict(const StyleProperties& other)
    10261026{
    10271027    unsigned size = other.propertyCount();
     
    10301030}
    10311031
    1032 void StylePropertySet::addSubresourceStyleURLs(ListHashSet<URL>& urls, StyleSheetContents* contextStyleSheet) const
     1032void StyleProperties::addSubresourceStyleURLs(ListHashSet<URL>& urls, StyleSheetContents* contextStyleSheet) const
    10331033{
    10341034    unsigned size = propertyCount();
     
    10371037}
    10381038
    1039 bool StylePropertySet::hasFailedOrCanceledSubresources() const
     1039bool StyleProperties::hasFailedOrCanceledSubresources() const
    10401040{
    10411041    unsigned size = propertyCount();
     
    10791079};
    10801080
    1081 void MutableStylePropertySet::clear()
     1081void MutableStyleProperties::clear()
    10821082{
    10831083    m_propertyVector.clear();
     
    10861086const unsigned numBlockProperties = WTF_ARRAY_LENGTH(blockProperties);
    10871087
    1088 PassRef<MutableStylePropertySet> StylePropertySet::copyBlockProperties() const
     1088PassRef<MutableStyleProperties> StyleProperties::copyBlockProperties() const
    10891089{
    10901090    return copyPropertiesInSet(blockProperties, numBlockProperties);
    10911091}
    10921092
    1093 void MutableStylePropertySet::removeBlockProperties()
     1093void MutableStyleProperties::removeBlockProperties()
    10941094{
    10951095    removePropertiesInSet(blockProperties, numBlockProperties);
    10961096}
    10971097
    1098 bool MutableStylePropertySet::removePropertiesInSet(const CSSPropertyID* set, unsigned length)
     1098bool MutableStyleProperties::removePropertiesInSet(const CSSPropertyID* set, unsigned length)
    10991099{
    11001100    if (m_propertyVector.isEmpty())
     
    11251125}
    11261126
    1127 int StylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const
     1127int StyleProperties::findPropertyIndex(CSSPropertyID propertyID) const
    11281128{
    11291129    // Convert here propertyID into an uint16_t to compare it with the metadata's m_propertyID to avoid
     
    11371137}
    11381138
    1139 CSSProperty* MutableStylePropertySet::findCSSPropertyWithID(CSSPropertyID propertyID)
     1139CSSProperty* MutableStyleProperties::findCSSPropertyWithID(CSSPropertyID propertyID)
    11401140{
    11411141    int foundPropertyIndex = findPropertyIndex(propertyID);
     
    11451145}
    11461146
    1147 bool StylePropertySet::propertyMatches(CSSPropertyID propertyID, const CSSValue* propertyValue) const
     1147bool StyleProperties::propertyMatches(CSSPropertyID propertyID, const CSSValue* propertyValue) const
    11481148{
    11491149    int foundPropertyIndex = findPropertyIndex(propertyID);
     
    11531153}
    11541154
    1155 void MutableStylePropertySet::removeEquivalentProperties(const StylePropertySet* style)
     1155void MutableStyleProperties::removeEquivalentProperties(const StyleProperties* style)
    11561156{
    11571157    Vector<CSSPropertyID> propertiesToRemove;
     
    11671167}
    11681168
    1169 void MutableStylePropertySet::removeEquivalentProperties(const ComputedStyleExtractor* computedStyle)
     1169void MutableStyleProperties::removeEquivalentProperties(const ComputedStyleExtractor* computedStyle)
    11701170{
    11711171    Vector<CSSPropertyID> propertiesToRemove;
     
    11811181}
    11821182
    1183 PassRef<MutableStylePropertySet> StylePropertySet::mutableCopy() const
    1184 {
    1185     return adoptRef(*new MutableStylePropertySet(*this));
    1186 }
    1187 
    1188 PassRef<MutableStylePropertySet> StylePropertySet::copyPropertiesInSet(const CSSPropertyID* set, unsigned length) const
     1183PassRef<MutableStyleProperties> StyleProperties::mutableCopy() const
     1184{
     1185    return adoptRef(*new MutableStyleProperties(*this));
     1186}
     1187
     1188PassRef<MutableStyleProperties> StyleProperties::copyPropertiesInSet(const CSSPropertyID* set, unsigned length) const
    11891189{
    11901190    Vector<CSSProperty, 256> list;
     
    11951195            list.append(CSSProperty(set[i], value.release(), false));
    11961196    }
    1197     return MutableStylePropertySet::create(list.data(), list.size());
    1198 }
    1199 
    1200 PropertySetCSSStyleDeclaration* MutableStylePropertySet::cssStyleDeclaration()
     1197    return MutableStyleProperties::create(list.data(), list.size());
     1198}
     1199
     1200PropertySetCSSStyleDeclaration* MutableStyleProperties::cssStyleDeclaration()
    12011201{
    12021202    return m_cssomWrapper.get();
    12031203}
    12041204
    1205 CSSStyleDeclaration* MutableStylePropertySet::ensureCSSStyleDeclaration()
     1205CSSStyleDeclaration* MutableStyleProperties::ensureCSSStyleDeclaration()
    12061206{
    12071207    if (m_cssomWrapper) {
     
    12141214}
    12151215
    1216 CSSStyleDeclaration* MutableStylePropertySet::ensureInlineCSSStyleDeclaration(StyledElement* parentElement)
     1216CSSStyleDeclaration* MutableStyleProperties::ensureInlineCSSStyleDeclaration(StyledElement* parentElement)
    12171217{
    12181218    if (m_cssomWrapper) {
     
    12241224}
    12251225
    1226 unsigned StylePropertySet::averageSizeInBytes()
     1226unsigned StyleProperties::averageSizeInBytes()
    12271227{
    12281228    // Please update this if the storage scheme changes so that this longer reflects the actual size.
    1229     return sizeForImmutableStylePropertySetWithPropertyCount(4);
     1229    return sizeForImmutableStylePropertiesWithPropertyCount(4);
    12301230}
    12311231
    12321232// See the function above if you need to update this.
    1233 struct SameSizeAsStylePropertySet : public RefCounted<SameSizeAsStylePropertySet> {
     1233struct SameSizeAsStyleProperties : public RefCounted<SameSizeAsStyleProperties> {
    12341234    unsigned bitfield;
    12351235};
    1236 COMPILE_ASSERT(sizeof(StylePropertySet) == sizeof(SameSizeAsStylePropertySet), style_property_set_should_stay_small);
     1236COMPILE_ASSERT(sizeof(StyleProperties) == sizeof(SameSizeAsStyleProperties), style_property_set_should_stay_small);
    12371237
    12381238#ifndef NDEBUG
    1239 void StylePropertySet::showStyle()
     1239void StyleProperties::showStyle()
    12401240{
    12411241    fprintf(stderr, "%s\n", asText().ascii().data());
     
    12431243#endif
    12441244
    1245 PassRef<MutableStylePropertySet> MutableStylePropertySet::create(CSSParserMode cssParserMode)
    1246 {
    1247     return adoptRef(*new MutableStylePropertySet(cssParserMode));
    1248 }
    1249 
    1250 PassRef<MutableStylePropertySet> MutableStylePropertySet::create(const CSSProperty* properties, unsigned count)
    1251 {
    1252     return adoptRef(*new MutableStylePropertySet(properties, count));
    1253 }
    1254 
    1255 String StylePropertySet::PropertyReference::cssName() const
     1245PassRef<MutableStyleProperties> MutableStyleProperties::create(CSSParserMode cssParserMode)
     1246{
     1247    return adoptRef(*new MutableStyleProperties(cssParserMode));
     1248}
     1249
     1250PassRef<MutableStyleProperties> MutableStyleProperties::create(const CSSProperty* properties, unsigned count)
     1251{
     1252    return adoptRef(*new MutableStyleProperties(properties, count));
     1253}
     1254
     1255String StyleProperties::PropertyReference::cssName() const
    12561256{
    12571257    return getPropertyNameString(id());
    12581258}
    12591259
    1260 String StylePropertySet::PropertyReference::cssText() const
     1260String StyleProperties::PropertyReference::cssText() const
    12611261{
    12621262    StringBuilder result;
  • trunk/Source/WebCore/css/StyleProperties.h

    r159841 r159856  
    2020 */
    2121
    22 #ifndef StylePropertySet_h
    23 #define StylePropertySet_h
     22#ifndef StyleProperties_h
     23#define StyleProperties_h
    2424
    2525#include "CSSParserMode.h"
     
    3737class CSSStyleDeclaration;
    3838class ComputedStyleExtractor;
    39 class ImmutableStylePropertySet;
     39class ImmutableStyleProperties;
    4040class URL;
    41 class MutableStylePropertySet;
     41class MutableStyleProperties;
    4242class PropertySetCSSStyleDeclaration;
    4343class StyledElement;
     
    4545class StyleSheetContents;
    4646
    47 class StylePropertySet : public RefCounted<StylePropertySet> {
     47class StyleProperties : public RefCounted<StyleProperties> {
    4848    friend class PropertyReference;
    4949public:
     
    5454    class PropertyReference {
    5555    public:
    56         PropertyReference(const StylePropertySet& propertySet, unsigned index)
     56        PropertyReference(const StyleProperties& propertySet, unsigned index)
    5757            : m_propertySet(propertySet)
    5858            , m_index(index)
     
    8181        const CSSValue* propertyValue() const;
    8282
    83         const StylePropertySet& m_propertySet;
     83        const StyleProperties& m_propertySet;
    8484        unsigned m_index;
    8585    };
     
    9595    bool isPropertyImplicit(CSSPropertyID) const;
    9696
    97     PassRef<MutableStylePropertySet> copyBlockProperties() const;
     97    PassRef<MutableStyleProperties> copyBlockProperties() const;
    9898
    9999    CSSParserMode cssParserMode() const { return static_cast<CSSParserMode>(m_cssParserMode); }
     
    101101    void addSubresourceStyleURLs(ListHashSet<URL>&, StyleSheetContents* contextStyleSheet) const;
    102102
    103     PassRef<MutableStylePropertySet> mutableCopy() const;
    104     PassRef<ImmutableStylePropertySet> immutableCopyIfNeeded() const;
    105 
    106     PassRef<MutableStylePropertySet> copyPropertiesInSet(const CSSPropertyID* set, unsigned length) const;
     103    PassRef<MutableStyleProperties> mutableCopy() const;
     104    PassRef<ImmutableStyleProperties> immutableCopyIfNeeded() const;
     105
     106    PassRef<MutableStyleProperties> copyPropertiesInSet(const CSSPropertyID* set, unsigned length) const;
    107107   
    108108    String asText() const;
     
    122122
    123123protected:
    124     StylePropertySet(CSSParserMode cssParserMode)
     124    StyleProperties(CSSParserMode cssParserMode)
    125125        : m_cssParserMode(cssParserMode)
    126126        , m_isMutable(true)
     
    128128    { }
    129129
    130     StylePropertySet(CSSParserMode cssParserMode, unsigned immutableArraySize)
     130    StyleProperties(CSSParserMode cssParserMode, unsigned immutableArraySize)
    131131        : m_cssParserMode(cssParserMode)
    132132        , m_isMutable(false)
     
    154154};
    155155
    156 class ImmutableStylePropertySet : public StylePropertySet {
     156class ImmutableStyleProperties : public StyleProperties {
    157157public:
    158     ~ImmutableStylePropertySet();
    159     static PassRef<ImmutableStylePropertySet> create(const CSSProperty* properties, unsigned count, CSSParserMode);
     158    ~ImmutableStyleProperties();
     159    static PassRef<ImmutableStyleProperties> create(const CSSProperty* properties, unsigned count, CSSParserMode);
    160160
    161161    unsigned propertyCount() const { return m_arraySize; }
     
    167167
    168168private:
    169     ImmutableStylePropertySet(const CSSProperty*, unsigned count, CSSParserMode);
     169    ImmutableStyleProperties(const CSSProperty*, unsigned count, CSSParserMode);
    170170};
    171171
    172 inline const CSSValue** ImmutableStylePropertySet::valueArray() const
     172inline const CSSValue** ImmutableStyleProperties::valueArray() const
    173173{
    174174    return reinterpret_cast<const CSSValue**>(const_cast<const void**>((&(this->m_storage))));
    175175}
    176176
    177 inline const StylePropertyMetadata* ImmutableStylePropertySet::metadataArray() const
     177inline const StylePropertyMetadata* ImmutableStyleProperties::metadataArray() const
    178178{
    179179    return reinterpret_cast_ptr<const StylePropertyMetadata*>(&reinterpret_cast_ptr<const char*>(&(this->m_storage))[m_arraySize * sizeof(CSSValue*)]);
    180180}
    181181
    182 class MutableStylePropertySet : public StylePropertySet {
     182class MutableStyleProperties : public StyleProperties {
    183183public:
    184     static PassRef<MutableStylePropertySet> create(CSSParserMode = CSSQuirksMode);
    185     static PassRef<MutableStylePropertySet> create(const CSSProperty* properties, unsigned count);
    186 
    187     ~MutableStylePropertySet();
     184    static PassRef<MutableStyleProperties> create(CSSParserMode = CSSQuirksMode);
     185    static PassRef<MutableStyleProperties> create(const CSSProperty* properties, unsigned count);
     186
     187    ~MutableStyleProperties();
    188188
    189189    unsigned propertyCount() const { return m_propertyVector.size(); }
     
    211211
    212212    // FIXME: These two can be moved to EditingStyle.cpp
    213     void removeEquivalentProperties(const StylePropertySet*);
     213    void removeEquivalentProperties(const StyleProperties*);
    214214    void removeEquivalentProperties(const ComputedStyleExtractor*);
    215215
    216     void mergeAndOverrideOnConflict(const StylePropertySet&);
     216    void mergeAndOverrideOnConflict(const StyleProperties&);
    217217
    218218    void clear();
     
    225225
    226226private:
    227     explicit MutableStylePropertySet(CSSParserMode);
    228     explicit MutableStylePropertySet(const StylePropertySet&);
    229     MutableStylePropertySet(const CSSProperty* properties, unsigned count);
     227    explicit MutableStyleProperties(CSSParserMode);
     228    explicit MutableStyleProperties(const StyleProperties&);
     229    MutableStyleProperties(const CSSProperty* properties, unsigned count);
    230230
    231231    bool removeShorthandProperty(CSSPropertyID);
     
    233233    OwnPtr<PropertySetCSSStyleDeclaration> m_cssomWrapper;
    234234
    235     friend class StylePropertySet;
     235    friend class StyleProperties;
    236236};
    237237
    238 inline const StylePropertyMetadata& StylePropertySet::PropertyReference::propertyMetadata() const
     238inline const StylePropertyMetadata& StyleProperties::PropertyReference::propertyMetadata() const
    239239{
    240240    if (m_propertySet.isMutable())
    241         return static_cast<const MutableStylePropertySet&>(m_propertySet).m_propertyVector.at(m_index).metadata();
    242     return static_cast<const ImmutableStylePropertySet&>(m_propertySet).metadataArray()[m_index];
    243 }
    244 
    245 inline const CSSValue* StylePropertySet::PropertyReference::propertyValue() const
     241        return static_cast<const MutableStyleProperties&>(m_propertySet).m_propertyVector.at(m_index).metadata();
     242    return static_cast<const ImmutableStyleProperties&>(m_propertySet).metadataArray()[m_index];
     243}
     244
     245inline const CSSValue* StyleProperties::PropertyReference::propertyValue() const
    246246{
    247247    if (m_propertySet.isMutable())
    248         return static_cast<const MutableStylePropertySet&>(m_propertySet).m_propertyVector.at(m_index).value();
    249     return static_cast<const ImmutableStylePropertySet&>(m_propertySet).valueArray()[m_index];
    250 }
    251 
    252 inline unsigned StylePropertySet::propertyCount() const
     248        return static_cast<const MutableStyleProperties&>(m_propertySet).m_propertyVector.at(m_index).value();
     249    return static_cast<const ImmutableStyleProperties&>(m_propertySet).valueArray()[m_index];
     250}
     251
     252inline unsigned StyleProperties::propertyCount() const
    253253{
    254254    if (m_isMutable)
    255         return static_cast<const MutableStylePropertySet*>(this)->m_propertyVector.size();
     255        return static_cast<const MutableStyleProperties*>(this)->m_propertyVector.size();
    256256    return m_arraySize;
    257257}
    258258
    259 inline bool StylePropertySet::isEmpty() const
     259inline bool StyleProperties::isEmpty() const
    260260{
    261261    return !propertyCount();
    262262}
    263263
    264 inline void StylePropertySet::deref()
     264inline void StyleProperties::deref()
    265265{
    266266    if (!derefBase())
     
    268268
    269269    if (m_isMutable)
    270         delete static_cast<MutableStylePropertySet*>(this);
     270        delete static_cast<MutableStyleProperties*>(this);
    271271    else
    272         delete static_cast<ImmutableStylePropertySet*>(this);
     272        delete static_cast<ImmutableStyleProperties*>(this);
    273273}
    274274
    275275} // namespace WebCore
    276276
    277 #endif // StylePropertySet_h
     277#endif // StyleProperties_h
  • trunk/Source/WebCore/css/StyleResolver.cpp

    r159842 r159856  
    109109#include "StyleGeneratedImage.h"
    110110#include "StylePendingImage.h"
    111 #include "StylePropertySet.h"
     111#include "StyleProperties.h"
    112112#include "StylePropertyShorthand.h"
    113113#include "StyleRule.h"
     
    233233}
    234234
    235 void StyleResolver::MatchResult::addMatchedProperties(const StylePropertySet& properties, StyleRule* rule, unsigned linkMatchType, PropertyWhitelistType propertyWhitelistType)
     235void StyleResolver::MatchResult::addMatchedProperties(const StyleProperties& properties, StyleRule* rule, unsigned linkMatchType, PropertyWhitelistType propertyWhitelistType)
    236236{
    237237    matchedProperties.grow(matchedProperties.size() + 1);
    238238    StyleResolver::MatchedProperties& newProperties = matchedProperties.last();
    239     newProperties.properties = const_cast<StylePropertySet*>(&properties);
     239    newProperties.properties = const_cast<StyleProperties*>(&properties);
    240240    newProperties.linkMatchType = linkMatchType;
    241241    newProperties.whitelistType = propertyWhitelistType;
     
    947947        static StyleKeyframe* zeroPercentKeyframe;
    948948        if (!zeroPercentKeyframe) {
    949             zeroPercentKeyframe = StyleKeyframe::create(MutableStylePropertySet::create()).leakRef();
     949            zeroPercentKeyframe = StyleKeyframe::create(MutableStyleProperties::create()).leakRef();
    950950            zeroPercentKeyframe->setKeyText("0%");
    951951        }
     
    959959        static StyleKeyframe* hundredPercentKeyframe;
    960960        if (!hundredPercentKeyframe) {
    961             hundredPercentKeyframe = StyleKeyframe::create(MutableStylePropertySet::create()).leakRef();
     961            hundredPercentKeyframe = StyleKeyframe::create(MutableStyleProperties::create()).leakRef();
    962962            hundredPercentKeyframe->setKeyText("100%");
    963963        }
     
    15221522
    15231523template <StyleResolver::StyleApplicationPass pass>
    1524 void StyleResolver::applyProperties(const StylePropertySet* properties, StyleRule* rule, bool isImportant, bool inheritedOnly, PropertyWhitelistType propertyWhitelistType)
     1524void StyleResolver::applyProperties(const StyleProperties* properties, StyleRule* rule, bool isImportant, bool inheritedOnly, PropertyWhitelistType propertyWhitelistType)
    15251525{
    15261526    ASSERT((propertyWhitelistType != PropertyWhitelistRegion) || m_state.regionForStyling());
     
    15291529    unsigned propertyCount = properties->propertyCount();
    15301530    for (unsigned i = 0; i < propertyCount; ++i) {
    1531         StylePropertySet::PropertyReference current = properties->propertyAt(i);
     1531        StyleProperties::PropertyReference current = properties->propertyAt(i);
    15321532        if (isImportant != current.isImportant())
    15331533            continue;
  • trunk/Source/WebCore/css/StyleResolver.h

    r159842 r159856  
    9393class StyleKeyframe;
    9494class StylePendingImage;
    95 class StylePropertySet;
     95class StyleProperties;
    9696class StyleRule;
    9797#if ENABLE(SHADOW_DOM)
     
    317317        ~MatchedProperties();
    318318       
    319         RefPtr<StylePropertySet> properties;
     319        RefPtr<StyleProperties> properties;
    320320        union {
    321321            struct {
     
    335335        bool isCacheable;
    336336
    337         void addMatchedProperties(const StylePropertySet& properties, StyleRule* = 0, unsigned linkMatchType = SelectorChecker::MatchAll, PropertyWhitelistType = PropertyWhitelistNone);
     337        void addMatchedProperties(const StyleProperties&, StyleRule* = 0, unsigned linkMatchType = SelectorChecker::MatchAll, PropertyWhitelistType = PropertyWhitelistNone);
    338338    };
    339339
     
    360360    void applyMatchedProperties(const MatchResult&, bool important, int startIndex, int endIndex, bool inheritedOnly);
    361361    template <StyleApplicationPass pass>
    362     void applyProperties(const StylePropertySet* properties, StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelistNone);
     362    void applyProperties(const StyleProperties*, StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelistNone);
    363363    static bool isValidRegionStyleProperty(CSSPropertyID);
    364364#if ENABLE(VIDEO_TRACK)
  • trunk/Source/WebCore/css/StyleRule.cpp

    r157698 r159856  
    3232#include "CSSSupportsRule.h"
    3333#include "CSSUnknownRule.h"
    34 #include "StylePropertySet.h"
     34#include "StyleProperties.h"
    3535#include "StyleRuleImport.h"
    3636#include "WebKitCSSFilterRule.h"
     
    229229unsigned StyleRule::averageSizeInBytes()
    230230{
    231     return sizeof(StyleRule) + sizeof(CSSSelector) + StylePropertySet::averageSizeInBytes();
    232 }
    233 
    234 StyleRule::StyleRule(int sourceLine, PassRef<StylePropertySet> properties)
     231    return sizeof(StyleRule) + sizeof(CSSSelector) + StyleProperties::averageSizeInBytes();
     232}
     233
     234StyleRule::StyleRule(int sourceLine, PassRef<StyleProperties> properties)
    235235    : StyleRuleBase(Style, sourceLine)
    236236    , m_properties(std::move(properties))
     
    249249}
    250250
    251 MutableStylePropertySet& StyleRule::mutableProperties()
     251MutableStyleProperties& StyleRule::mutableProperties()
    252252{
    253253    if (!m_properties->isMutable())
    254254        m_properties = m_properties->mutableCopy();
    255     return static_cast<MutableStylePropertySet&>(m_properties.get());
    256 }
    257 
    258 PassRef<StyleRule> StyleRule::create(int sourceLine, const Vector<const CSSSelector*>& selectors, PassRef<StylePropertySet> properties)
     255    return static_cast<MutableStyleProperties&>(m_properties.get());
     256}
     257
     258PassRef<StyleRule> StyleRule::create(int sourceLine, const Vector<const CSSSelector*>& selectors, PassRef<StyleProperties> properties)
    259259{
    260260    CSSSelector* selectorListArray = reinterpret_cast<CSSSelector*>(fastMalloc(sizeof(CSSSelector) * selectors.size()));
     
    280280
    281281        if (componentsInThisSelector.size() + componentsSinceLastSplit.size() > maxCount) {
    282             rules.append(create(sourceLine(), componentsSinceLastSplit, const_cast<StylePropertySet&>(m_properties.get())));
     282            rules.append(create(sourceLine(), componentsSinceLastSplit, const_cast<StyleProperties&>(m_properties.get())));
    283283            componentsSinceLastSplit.clear();
    284284        }
     
    288288
    289289    if (!componentsSinceLastSplit.isEmpty())
    290         rules.append(create(sourceLine(), componentsSinceLastSplit, const_cast<StylePropertySet&>(m_properties.get())));
     290        rules.append(create(sourceLine(), componentsSinceLastSplit, const_cast<StyleProperties&>(m_properties.get())));
    291291
    292292    return rules;
    293293}
    294294
    295 StyleRulePage::StyleRulePage(PassRef<StylePropertySet> properties)
     295StyleRulePage::StyleRulePage(PassRef<StyleProperties> properties)
    296296    : StyleRuleBase(Page)
    297297    , m_properties(std::move(properties))
     
    310310}
    311311
    312 MutableStylePropertySet& StyleRulePage::mutableProperties()
     312MutableStyleProperties& StyleRulePage::mutableProperties()
    313313{
    314314    if (!m_properties->isMutable())
    315315        m_properties = m_properties->mutableCopy();
    316     return static_cast<MutableStylePropertySet&>(m_properties.get());
    317 }
    318 
    319 StyleRuleFontFace::StyleRuleFontFace(PassRef<StylePropertySet> properties)
     316    return static_cast<MutableStyleProperties&>(m_properties.get());
     317}
     318
     319StyleRuleFontFace::StyleRuleFontFace(PassRef<StyleProperties> properties)
    320320    : StyleRuleBase(FontFace, 0)
    321321    , m_properties(std::move(properties))
     
    333333}
    334334
    335 MutableStylePropertySet& StyleRuleFontFace::mutableProperties()
     335MutableStyleProperties& StyleRuleFontFace::mutableProperties()
    336336{
    337337    if (!m_properties->isMutable())
    338338        m_properties = m_properties->mutableCopy();
    339     return static_cast<MutableStylePropertySet&>(m_properties.get());
     339    return static_cast<MutableStyleProperties&>(m_properties.get());
    340340}
    341341
     
    409409
    410410#if ENABLE(CSS_DEVICE_ADAPTATION)
    411 StyleRuleViewport::StyleRuleViewport(PassRef<StylePropertySet> properties)
     411StyleRuleViewport::StyleRuleViewport(PassRef<StyleProperties> properties)
    412412    : StyleRuleBase(Viewport, 0)
    413413    , m_properties(std::move(properties))
     
    425425}
    426426
    427 MutableStylePropertySet& StyleRuleViewport::mutableProperties()
     427MutableStyleProperties& StyleRuleViewport::mutableProperties()
    428428{
    429429    if (!m_properties->isMutable())
    430430        m_properties = m_properties->mutableCopy();
    431     return static_cast<MutableStylePropertySet&>(m_properties.get());
     431    return static_cast<MutableStyleProperties&>(m_properties.get());
    432432}
    433433#endif // ENABLE(CSS_DEVICE_ADAPTATION)
    434434
    435435#if ENABLE(CSS_SHADERS)
    436 StyleRuleFilter::StyleRuleFilter(const String& filterName, PassRef<StylePropertySet> properties)
     436StyleRuleFilter::StyleRuleFilter(const String& filterName, PassRef<StyleProperties> properties)
    437437    : StyleRuleBase(Filter, 0)
    438438    , m_filterName(filterName)
     
    452452}
    453453
    454 MutableStylePropertySet& StyleRuleFilter::mutableProperties()
     454MutableStyleProperties& StyleRuleFilter::mutableProperties()
    455455{
    456456    if (!m_properties->isMutable())
    457457        m_properties = m_properties->mutableCopy();
    458     return static_cast<MutableStylePropertySet&>(m_properties.get());
     458    return static_cast<MutableStyleProperties&>(m_properties.get());
    459459}
    460460
  • trunk/Source/WebCore/css/StyleRule.h

    r157698 r159856  
    2525#include "CSSSelectorList.h"
    2626#include "MediaList.h"
    27 #include "StylePropertySet.h"
     27#include "StyleProperties.h"
    2828#include <wtf/RefPtr.h>
    2929
     
    3333class CSSStyleRule;
    3434class CSSStyleSheet;
    35 class MutableStylePropertySet;
    36 class StylePropertySet;
     35class MutableStyleProperties;
     36class StyleProperties;
    3737
    3838class StyleRuleBase : public WTF::RefCountedBase {
     
    119119    WTF_MAKE_FAST_ALLOCATED;
    120120public:
    121     static PassRef<StyleRule> create(int sourceLine, PassRef<StylePropertySet> properties)
     121    static PassRef<StyleRule> create(int sourceLine, PassRef<StyleProperties> properties)
    122122    {
    123123        return adoptRef(*new StyleRule(sourceLine, std::move(properties)));
     
    127127
    128128    const CSSSelectorList& selectorList() const { return m_selectorList; }
    129     const StylePropertySet& properties() const { return m_properties.get(); }
    130     MutableStylePropertySet& mutableProperties();
     129    const StyleProperties& properties() const { return m_properties.get(); }
     130    MutableStyleProperties& mutableProperties();
    131131   
    132132    void parserAdoptSelectorVector(Vector<OwnPtr<CSSParserSelector>>& selectors) { m_selectorList.adoptSelectorVector(selectors); }
     
    141141
    142142private:
    143     StyleRule(int sourceLine, PassRef<StylePropertySet>);
     143    StyleRule(int sourceLine, PassRef<StyleProperties>);
    144144    StyleRule(const StyleRule&);
    145145
    146     static PassRef<StyleRule> create(int sourceLine, const Vector<const CSSSelector*>&, PassRef<StylePropertySet>);
    147 
    148     Ref<StylePropertySet> m_properties;
     146    static PassRef<StyleRule> create(int sourceLine, const Vector<const CSSSelector*>&, PassRef<StyleProperties>);
     147
     148    Ref<StyleProperties> m_properties;
    149149    CSSSelectorList m_selectorList;
    150150};
     
    158158class StyleRuleFontFace : public StyleRuleBase {
    159159public:
    160     static PassRef<StyleRuleFontFace> create(PassRef<StylePropertySet> properties) { return adoptRef(*new StyleRuleFontFace(std::move(properties))); }
     160    static PassRef<StyleRuleFontFace> create(PassRef<StyleProperties> properties) { return adoptRef(*new StyleRuleFontFace(std::move(properties))); }
    161161   
    162162    ~StyleRuleFontFace();
    163163
    164     const StylePropertySet& properties() const { return m_properties.get(); }
    165     MutableStylePropertySet& mutableProperties();
     164    const StyleProperties& properties() const { return m_properties.get(); }
     165    MutableStyleProperties& mutableProperties();
    166166
    167167    PassRef<StyleRuleFontFace> copy() const { return adoptRef(*new StyleRuleFontFace(*this)); }
     
    169169
    170170private:
    171     StyleRuleFontFace(PassRef<StylePropertySet>);
     171    StyleRuleFontFace(PassRef<StyleProperties>);
    172172    StyleRuleFontFace(const StyleRuleFontFace&);
    173173
    174     Ref<StylePropertySet> m_properties;
     174    Ref<StyleProperties> m_properties;
    175175};
    176176
    177177class StyleRulePage : public StyleRuleBase {
    178178public:
    179     static PassRef<StyleRulePage> create(PassRef<StylePropertySet> properties) { return adoptRef(*new StyleRulePage(std::move(properties))); }
     179    static PassRef<StyleRulePage> create(PassRef<StyleProperties> properties) { return adoptRef(*new StyleRulePage(std::move(properties))); }
    180180
    181181    ~StyleRulePage();
    182182
    183183    const CSSSelector* selector() const { return m_selectorList.first(); }   
    184     const StylePropertySet& properties() const { return m_properties.get(); }
    185     MutableStylePropertySet& mutableProperties();
     184    const StyleProperties& properties() const { return m_properties.get(); }
     185    MutableStyleProperties& mutableProperties();
    186186
    187187    void parserAdoptSelectorVector(Vector<OwnPtr<CSSParserSelector>>& selectors) { m_selectorList.adoptSelectorVector(selectors); }
     
    191191
    192192private:
    193     StyleRulePage(PassRef<StylePropertySet>);
     193    StyleRulePage(PassRef<StyleProperties>);
    194194    StyleRulePage(const StyleRulePage&);
    195195   
    196     Ref<StylePropertySet> m_properties;
     196    Ref<StyleProperties> m_properties;
    197197    CSSSelectorList m_selectorList;
    198198};
     
    289289class StyleRuleViewport : public StyleRuleBase {
    290290public:
    291     static PassRef<StyleRuleViewport> create(PassRef<StylePropertySet> properties) { return adoptRef(*new StyleRuleViewport(std::move(properties))); }
     291    static PassRef<StyleRuleViewport> create(PassRef<StyleProperties> properties) { return adoptRef(*new StyleRuleViewport(std::move(properties))); }
    292292
    293293    ~StyleRuleViewport();
    294294
    295     const StylePropertySet& properties() const { return m_properties.get(); }
    296     MutableStylePropertySet& mutableProperties();
     295    const StyleProperties& properties() const { return m_properties.get(); }
     296    MutableStyleProperties& mutableProperties();
    297297
    298298    PassRef<StyleRuleViewport> copy() const { return adoptRef(*new StyleRuleViewport(*this)); }
    299299
    300300private:
    301     StyleRuleViewport(PassRef<StylePropertySet>);
     301    StyleRuleViewport(PassRef<StyleProperties>);
    302302    StyleRuleViewport(const StyleRuleViewport&);
    303303
    304     Ref<StylePropertySet> m_properties;
     304    Ref<StyleProperties> m_properties;
    305305};
    306306#endif // ENABLE(CSS_DEVICE_ADAPTATION)
     
    329329class StyleRuleFilter : public StyleRuleBase {
    330330public:
    331     static PassRef<StyleRuleFilter> create(const String& filterName, PassRef<StylePropertySet> properties)
     331    static PassRef<StyleRuleFilter> create(const String& filterName, PassRef<StyleProperties> properties)
    332332    {
    333333        return adoptRef(*new StyleRuleFilter(filterName, std::move(properties)));
     
    338338    const String& filterName() const { return m_filterName; }
    339339
    340     const StylePropertySet& properties() const { return m_properties.get(); }
    341     MutableStylePropertySet& mutableProperties();
     340    const StyleProperties& properties() const { return m_properties.get(); }
     341    MutableStyleProperties& mutableProperties();
    342342
    343343    PassRef<StyleRuleFilter> copy() const { return adoptRef(*new StyleRuleFilter(*this)); }
    344344
    345345private:
    346     StyleRuleFilter(const String&, PassRef<StylePropertySet>);
     346    StyleRuleFilter(const String&, PassRef<StyleProperties>);
    347347    StyleRuleFilter(const StyleRuleFilter&);
    348348
    349349    String m_filterName;
    350     Ref<StylePropertySet> m_properties;
     350    Ref<StyleProperties> m_properties;
    351351};
    352352#endif // ENABLE(CSS_SHADERS)
  • trunk/Source/WebCore/css/StyleSheetContents.cpp

    r157653 r159856  
    3131#include "RuleSet.h"
    3232#include "SecurityOrigin.h"
    33 #include "StylePropertySet.h"
     33#include "StyleProperties.h"
    3434#include "StyleRule.h"
    3535#include "StyleRuleImport.h"
  • trunk/Source/WebCore/css/ViewportStyleResolver.cpp

    r157575 r159856  
    3737#include "Page.h"
    3838#include "RenderView.h"
    39 #include "StylePropertySet.h"
     39#include "StyleProperties.h"
    4040#include "StyleRule.h"
    4141#include "ViewportArguments.h"
     
    5555void ViewportStyleResolver::addViewportRule(StyleRuleViewport* viewportRule)
    5656{
    57     StylePropertySet& propertySet = viewportRule->mutableProperties();
     57    StyleProperties& propertySet = viewportRule->mutableProperties();
    5858
    5959    unsigned propertyCount = propertySet.propertyCount();
  • trunk/Source/WebCore/css/ViewportStyleResolver.h

    r148400 r159856  
    4242class CSSPrimitiveValue;
    4343class Document;
    44 class MutableStylePropertySet;
     44class MutableStyleProperties;
    4545class StyleRuleViewport;
    4646
     
    6565
    6666    Document* m_document;
    67     RefPtr<MutableStylePropertySet> m_propertySet;
     67    RefPtr<MutableStyleProperties> m_propertySet;
    6868};
    6969
  • trunk/Source/WebCore/css/WebKitCSSFilterRule.cpp

    r157575 r159856  
    3434
    3535#include "PropertySetCSSStyleDeclaration.h"
    36 #include "StylePropertySet.h"
     36#include "StyleProperties.h"
    3737#include "StyleRule.h"
    3838#include <wtf/text/StringBuilder.h>
  • trunk/Source/WebCore/css/WebKitCSSKeyframeRule.cpp

    r157575 r159856  
    2828
    2929#include "PropertySetCSSStyleDeclaration.h"
    30 #include "StylePropertySet.h"
     30#include "StyleProperties.h"
    3131#include "WebKitCSSKeyframesRule.h"
    3232#include <wtf/text/StringBuilder.h>
     
    3434namespace WebCore {
    3535
    36 StyleKeyframe::StyleKeyframe(PassRef<StylePropertySet> properties)
     36StyleKeyframe::StyleKeyframe(PassRef<StyleProperties> properties)
    3737    : m_properties(std::move(properties))
    3838{
     
    4343}
    4444
    45 MutableStylePropertySet& StyleKeyframe::mutableProperties()
     45MutableStyleProperties& StyleKeyframe::mutableProperties()
    4646{
    4747    if (!m_properties->isMutable())
    4848        m_properties = m_properties->mutableCopy();
    49     return static_cast<MutableStylePropertySet&>(m_properties.get());
     49    return static_cast<MutableStyleProperties&>(m_properties.get());
    5050}
    5151
  • trunk/Source/WebCore/css/WebKitCSSKeyframeRule.h

    r157575 r159856  
    2828
    2929#include "CSSRule.h"
    30 #include "StylePropertySet.h"
     30#include "StyleProperties.h"
    3131
    3232namespace WebCore {
     
    3939    WTF_MAKE_FAST_ALLOCATED;
    4040public:
    41     static PassRefPtr<StyleKeyframe> create(PassRef<StylePropertySet> properties)
     41    static PassRefPtr<StyleKeyframe> create(PassRef<StyleProperties> properties)
    4242    {
    4343        return adoptRef(new StyleKeyframe(std::move(properties)));
     
    5050    void getKeys(Vector<double>& keys) const   { parseKeyString(m_key, keys); }
    5151   
    52     const StylePropertySet& properties() const { return m_properties.get(); }
    53     MutableStylePropertySet& mutableProperties();
     52    const StyleProperties& properties() const { return m_properties.get(); }
     53    MutableStyleProperties& mutableProperties();
    5454   
    5555    String cssText() const;
    5656
    5757private:
    58     explicit StyleKeyframe(PassRef<StylePropertySet>);
     58    explicit StyleKeyframe(PassRef<StyleProperties>);
    5959   
    6060    static void parseKeyString(const String&, Vector<double>& keys);
    6161   
    62     Ref<StylePropertySet> m_properties;
     62    Ref<StyleProperties> m_properties;
    6363    // FIXME: This should be a parsed vector of floats.
    6464    // comma separated list of keys
  • trunk/Source/WebCore/css/WebKitCSSKeyframesRule.cpp

    r158514 r159856  
    3030#include "CSSRuleList.h"
    3131#include "CSSStyleSheet.h"
    32 #include "StylePropertySet.h"
     32#include "StyleProperties.h"
    3333#include "StyleSheet.h"
    3434#include "WebKitCSSKeyframeRule.h"
  • trunk/Source/WebCore/css/WebKitCSSMatrix.cpp

    r156705 r159856  
    3131#include "CSSValueKeywords.h"
    3232#include "ExceptionCode.h"
    33 #include "StylePropertySet.h"
     33#include "StyleProperties.h"
    3434#include "TransformFunctions.h"
    3535#include <wtf/MathExtras.h>
     
    5656        return;
    5757
    58     RefPtr<MutableStylePropertySet> styleDeclaration = MutableStylePropertySet::create();
     58    RefPtr<MutableStyleProperties> styleDeclaration = MutableStyleProperties::create();
    5959    if (CSSParser::parseValue(styleDeclaration.get(), CSSPropertyWebkitTransform, string, true, CSSStrictMode, 0)) {
    6060        // Convert to TransformOperations. This can fail if a property
  • trunk/Source/WebCore/css/WebKitCSSViewportRule.cpp

    r157575 r159856  
    3535
    3636#include "PropertySetCSSStyleDeclaration.h"
    37 #include "StylePropertySet.h"
     37#include "StyleProperties.h"
    3838#include "StyleRule.h"
    3939#include <wtf/text/StringBuilder.h>
  • trunk/Source/WebCore/dom/Attr.cpp

    r159733 r159856  
    2626#include "ExceptionCode.h"
    2727#include "ScopedEventQueue.h"
    28 #include "StylePropertySet.h"
     28#include "StyleProperties.h"
    2929#include "StyledElement.h"
    3030#include "TextNodeTraversal.h"
     
    189189    if (!m_element || !m_element->isStyledElement())
    190190        return nullptr;
    191     m_style = MutableStylePropertySet::create();
     191    m_style = MutableStyleProperties::create();
    192192    toStyledElement(m_element)->collectStyleForPresentationAttribute(qualifiedName(), value(), *m_style);
    193193    return m_style->ensureCSSStyleDeclaration();
  • trunk/Source/WebCore/dom/Attr.h

    r158829 r159856  
    3232
    3333class CSSStyleDeclaration;
    34 class MutableStylePropertySet;
     34class MutableStyleProperties;
    3535
    3636// Attr can have Text and EntityReference children
     
    9696    AtomicString m_standaloneValue;
    9797
    98     RefPtr<MutableStylePropertySet> m_style;
     98    RefPtr<MutableStyleProperties> m_style;
    9999    unsigned m_ignoreChildrenChanged;
    100100};
  • trunk/Source/WebCore/dom/Document.cpp

    r159489 r159856  
    130130#include "Settings.h"
    131131#include "ShadowRoot.h"
    132 #include "StylePropertySet.h"
     132#include "StyleProperties.h"
    133133#include "StyleResolver.h"
    134134#include "StyleSheetContents.h"
     
    857857PassRefPtr<CSSStyleDeclaration> Document::createCSSStyleDeclaration()
    858858{
    859     Ref<MutableStylePropertySet> propertySet(MutableStylePropertySet::create());
     859    Ref<MutableStyleProperties> propertySet(MutableStyleProperties::create());
    860860    return propertySet->ensureCSSStyleDeclaration();
    861861}
  • trunk/Source/WebCore/dom/Element.cpp

    r159733 r159856  
    6868#include "SelectorQuery.h"
    6969#include "Settings.h"
    70 #include "StylePropertySet.h"
     70#include "StyleProperties.h"
    7171#include "StyleResolver.h"
    7272#include "TextIterator.h"
  • trunk/Source/WebCore/dom/ElementData.cpp

    r158250 r159856  
    2828
    2929#include "Attr.h"
    30 #include "StylePropertySet.h"
     30#include "StyleProperties.h"
    3131
    3232namespace WebCore {
     
    145145    : ElementData(other, true)
    146146{
    147     // An ShareableElementData should never have a mutable inline StylePropertySet attached.
     147    // An ShareableElementData should never have a mutable inline StyleProperties attached.
    148148    ASSERT(!other.m_inlineStyle || !other.m_inlineStyle->isMutable());
    149149    m_inlineStyle = other.m_inlineStyle;
  • trunk/Source/WebCore/dom/ElementData.h

    r158250 r159856  
    3535class Attr;
    3636class ShareableElementData;
    37 class StylePropertySet;
     37class StyleProperties;
    3838class UniqueElementData;
    3939
     
    5454    void setIdForStyleResolution(const AtomicString& newId) const { m_idForStyleResolution = newId; }
    5555
    56     const StylePropertySet* inlineStyle() const { return m_inlineStyle.get(); }
    57     const StylePropertySet* presentationAttributeStyle() const;
     56    const StyleProperties* inlineStyle() const { return m_inlineStyle.get(); }
     57    const StyleProperties* presentationAttributeStyle() const;
    5858
    5959    unsigned length() const;
     
    8888#endif
    8989
    90     mutable RefPtr<StylePropertySet> m_inlineStyle;
     90    mutable RefPtr<StyleProperties> m_inlineStyle;
    9191    mutable SpaceSplitString m_classNames;
    9292    mutable AtomicString m_idForStyleResolution;
     
    146146    explicit UniqueElementData(const UniqueElementData&);
    147147
    148     mutable RefPtr<StylePropertySet> m_presentationAttributeStyle;
     148    mutable RefPtr<StyleProperties> m_presentationAttributeStyle;
    149149    Vector<Attribute, 4> m_attributeVector;
    150150};
     
    171171}
    172172
    173 inline const StylePropertySet* ElementData::presentationAttributeStyle() const
     173inline const StyleProperties* ElementData::presentationAttributeStyle() const
    174174{
    175175    if (!m_isUnique)
  • trunk/Source/WebCore/dom/StyledElement.cpp

    r158985 r159856  
    3535#include "PropertySetCSSStyleDeclaration.h"
    3636#include "ScriptableDocumentParser.h"
    37 #include "StylePropertySet.h"
     37#include "StyleProperties.h"
    3838#include "StyleResolver.h"
    3939#include <wtf/HashFunctions.h>
     
    5656public:
    5757    PresentationAttributeCacheKey key;
    58     RefPtr<StylePropertySet> value;
     58    RefPtr<StyleProperties> value;
    5959};
    6060
     
    124124    ASSERT(elementData()->m_styleAttributeIsDirty);
    125125    elementData()->m_styleAttributeIsDirty = false;
    126     if (const StylePropertySet* inlineStyle = this->inlineStyle())
     126    if (const StyleProperties* inlineStyle = this->inlineStyle())
    127127        const_cast<StyledElement*>(this)->setSynchronizedLazyAttribute(styleAttr, inlineStyle->asText());
    128128}
     
    139139}
    140140
    141 MutableStylePropertySet& StyledElement::ensureMutableInlineStyle()
    142 {
    143     RefPtr<StylePropertySet>& inlineStyle = ensureUniqueElementData().m_inlineStyle;
     141MutableStyleProperties& StyledElement::ensureMutableInlineStyle()
     142{
     143    RefPtr<StyleProperties>& inlineStyle = ensureUniqueElementData().m_inlineStyle;
    144144    if (!inlineStyle)
    145         inlineStyle = MutableStylePropertySet::create(strictToCSSParserMode(isHTMLElement() && !document().inQuirksMode()));
     145        inlineStyle = MutableStyleProperties::create(strictToCSSParserMode(isHTMLElement() && !document().inQuirksMode()));
    146146    else if (!inlineStyle->isMutable())
    147147        inlineStyle = inlineStyle->mutableCopy();
    148148    ASSERT_WITH_SECURITY_IMPLICATION(inlineStyle->isMutable());
    149     return static_cast<MutableStylePropertySet&>(*inlineStyle);
     149    return static_cast<MutableStyleProperties&>(*inlineStyle);
    150150}
    151151
     
    173173inline void StyledElement::setInlineStyleFromString(const AtomicString& newStyleString)
    174174{
    175     RefPtr<StylePropertySet>& inlineStyle = elementData()->m_inlineStyle;
     175    RefPtr<StyleProperties>& inlineStyle = elementData()->m_inlineStyle;
    176176
    177177    // Avoid redundant work if we're using shared attribute data with already parsed inline style.
     
    188188    else {
    189189        ASSERT(inlineStyle->isMutable());
    190         static_pointer_cast<MutableStylePropertySet>(inlineStyle)->parseDeclaration(newStyleString, &document().elementSheet().contents());
     190        static_pointer_cast<MutableStyleProperties>(inlineStyle)->parseDeclaration(newStyleString, &document().elementSheet().contents());
    191191    }
    192192}
     
    268268void StyledElement::addSubresourceAttributeURLs(ListHashSet<URL>& urls) const
    269269{
    270     if (const StylePropertySet* inlineStyle = elementData() ? elementData()->inlineStyle() : 0)
     270    if (const StyleProperties* inlineStyle = elementData() ? elementData()->inlineStyle() : 0)
    271271        inlineStyle->addSubresourceStyleURLs(urls, &document().elementSheet().contents());
    272272}
     
    330330        cacheIterator = presentationAttributeCache().end();
    331331
    332     RefPtr<StylePropertySet> style;
     332    RefPtr<StyleProperties> style;
    333333    if (cacheHash && cacheIterator->value) {
    334334        style = cacheIterator->value->value;
    335335        presentationAttributeCacheCleaner().didHitPresentationAttributeCache();
    336336    } else {
    337         style = MutableStylePropertySet::create(isSVGElement() ? SVGAttributeMode : CSSQuirksMode);
     337        style = MutableStyleProperties::create(isSVGElement() ? SVGAttributeMode : CSSQuirksMode);
    338338        unsigned size = attributeCount();
    339339        for (unsigned i = 0; i < size; ++i) {
    340340            const Attribute& attribute = attributeAt(i);
    341             collectStyleForPresentationAttribute(attribute.name(), attribute.value(), static_cast<MutableStylePropertySet&>(*style));
     341            collectStyleForPresentationAttribute(attribute.name(), attribute.value(), static_cast<MutableStyleProperties&>(*style));
    342342        }
    343343    }
     
    365365}
    366366
    367 void StyledElement::addPropertyToPresentationAttributeStyle(MutableStylePropertySet& style, CSSPropertyID propertyID, CSSValueID identifier)
     367void StyledElement::addPropertyToPresentationAttributeStyle(MutableStyleProperties& style, CSSPropertyID propertyID, CSSValueID identifier)
    368368{
    369369    style.setProperty(propertyID, cssValuePool().createIdentifierValue(identifier));
    370370}
    371371
    372 void StyledElement::addPropertyToPresentationAttributeStyle(MutableStylePropertySet& style, CSSPropertyID propertyID, double value, CSSPrimitiveValue::UnitTypes unit)
     372void StyledElement::addPropertyToPresentationAttributeStyle(MutableStyleProperties& style, CSSPropertyID propertyID, double value, CSSPrimitiveValue::UnitTypes unit)
    373373{
    374374    style.setProperty(propertyID, cssValuePool().createValue(value, unit));
    375375}
    376376   
    377 void StyledElement::addPropertyToPresentationAttributeStyle(MutableStylePropertySet& style, CSSPropertyID propertyID, const String& value)
     377void StyledElement::addPropertyToPresentationAttributeStyle(MutableStyleProperties& style, CSSPropertyID propertyID, const String& value)
    378378{
    379379    style.setProperty(propertyID, value, false, &document().elementSheet().contents());
  • trunk/Source/WebCore/dom/StyledElement.h

    r158985 r159856  
    3434
    3535class Attribute;
    36 class MutableStylePropertySet;
     36class MutableStyleProperties;
    3737class PropertySetCSSStyleDeclaration;
    38 class StylePropertySet;
     38class StyleProperties;
    3939
    4040struct PresentationAttributeCacheKey;
     
    4444    virtual ~StyledElement();
    4545
    46     virtual const StylePropertySet* additionalPresentationAttributeStyle() { return 0; }
     46    virtual const StyleProperties* additionalPresentationAttributeStyle() { return 0; }
    4747    void invalidateStyleAttribute();
    4848
    49     const StylePropertySet* inlineStyle() const { return elementData() ? elementData()->m_inlineStyle.get() : 0; }
     49    const StyleProperties* inlineStyle() const { return elementData() ? elementData()->m_inlineStyle.get() : 0; }
    5050   
    5151    bool setInlineStyleProperty(CSSPropertyID, CSSValueID identifier, bool important = false);
     
    6060    virtual CSSStyleDeclaration* style() OVERRIDE FINAL;
    6161
    62     const StylePropertySet* presentationAttributeStyle();
    63     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) { }
     62    const StyleProperties* presentationAttributeStyle();
     63    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) { }
    6464
    6565protected:
     
    7373    virtual bool isPresentationAttribute(const QualifiedName&) const { return false; }
    7474
    75     void addPropertyToPresentationAttributeStyle(MutableStylePropertySet&, CSSPropertyID, CSSValueID identifier);
    76     void addPropertyToPresentationAttributeStyle(MutableStylePropertySet&, CSSPropertyID, double value, CSSPrimitiveValue::UnitTypes);
    77     void addPropertyToPresentationAttributeStyle(MutableStylePropertySet&, CSSPropertyID, const String& value);
     75    void addPropertyToPresentationAttributeStyle(MutableStyleProperties&, CSSPropertyID, CSSValueID identifier);
     76    void addPropertyToPresentationAttributeStyle(MutableStyleProperties&, CSSPropertyID, double value, CSSPrimitiveValue::UnitTypes);
     77    void addPropertyToPresentationAttributeStyle(MutableStyleProperties&, CSSPropertyID, const String& value);
    7878
    7979    virtual void addSubresourceAttributeURLs(ListHashSet<URL>&) const OVERRIDE;
     
    8585    PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper();
    8686    void setInlineStyleFromString(const AtomicString&);
    87     MutableStylePropertySet& ensureMutableInlineStyle();
     87    MutableStyleProperties& ensureMutableInlineStyle();
    8888
    8989    void makePresentationAttributeCacheKey(PresentationAttributeCacheKey&) const;
     
    9797}
    9898
    99 inline const StylePropertySet* StyledElement::presentationAttributeStyle()
     99inline const StyleProperties* StyledElement::presentationAttributeStyle()
    100100{
    101101    if (!elementData())
  • trunk/Source/WebCore/editing/ApplyStyleCommand.cpp

    r159733 r159856  
    4141#include "RenderObject.h"
    4242#include "RenderText.h"
    43 #include "StylePropertySet.h"
     43#include "StyleProperties.h"
    4444#include "StyleResolver.h"
    4545#include "Text.h"
     
    300300}
    301301
    302 static PassRefPtr<MutableStylePropertySet> copyStyleOrCreateEmpty(const StylePropertySet* style)
     302static PassRefPtr<MutableStyleProperties> copyStyleOrCreateEmpty(const StyleProperties* style)
    303303{
    304304    if (!style)
    305         return MutableStylePropertySet::create();
     305        return MutableStyleProperties::create();
    306306    return style->mutableCopy();
    307307}
     
    397397        lastStyledNode = node;
    398398
    399         RefPtr<MutableStylePropertySet> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle());
     399        RefPtr<MutableStyleProperties> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle());
    400400        float currentFontSize = computedFontSize(node);
    401401        float desiredFontSize = std::max(MinimumFontSize, startingFontSizes.get(node) + style->fontSizeDelta());
     
    526526            removeNodeAttribute(element, dirAttr);
    527527        } else {
    528             RefPtr<MutableStylePropertySet> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle());
     528            RefPtr<MutableStyleProperties> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle());
    529529            inlineStyle->setProperty(CSSPropertyUnicodeBidi, CSSValueNormal);
    530530            inlineStyle->removeProperty(CSSPropertyDirection);
     
    770770            // Add to this element's inline style and skip over its contents.
    771771            HTMLElement* element = toHTMLElement(node.get());
    772             RefPtr<MutableStylePropertySet> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle());
    773             if (MutableStylePropertySet* otherStyle = style->style())
     772            RefPtr<MutableStyleProperties> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle());
     773            if (MutableStyleProperties* otherStyle = style->style())
    774774                inlineStyle->mergeAndOverrideOnConflict(*otherStyle);
    775775            setNodeAttribute(element, styleAttr, inlineStyle->asText());
     
    13881388    StringBuilder cssText;
    13891389    cssText.append(cssStyle);
    1390     if (const StylePropertySet* decl = block->inlineStyle()) {
     1390    if (const StyleProperties* decl = block->inlineStyle()) {
    13911391        if (!cssStyle.isEmpty())
    13921392            cssText.append(' ');
     
    14681468    if (styleChange.cssStyle().length()) {
    14691469        if (styleContainer) {
    1470             if (const StylePropertySet* existingStyle = styleContainer->inlineStyle()) {
     1470            if (const StyleProperties* existingStyle = styleContainer->inlineStyle()) {
    14711471                String existingText = existingStyle->asText();
    14721472                StringBuilder cssText;
  • trunk/Source/WebCore/editing/DeleteButtonController.cpp

    r158350 r159856  
    4040#include "RemoveNodeCommand.h"
    4141#include "RenderBox.h"
    42 #include "StylePropertySet.h"
     42#include "StyleProperties.h"
    4343
    4444namespace WebCore {
  • trunk/Source/WebCore/editing/EditingStyle.cpp

    r159733 r159856  
    4545#include "RenderStyle.h"
    4646#include "StyleFontSizeFunctions.h"
    47 #include "StylePropertySet.h"
     47#include "StyleProperties.h"
    4848#include "StyleResolver.h"
    4949#include "StyleRule.h"
     
    9090enum EditingPropertiesToInclude { OnlyInheritableEditingProperties, AllEditingProperties };
    9191template <class StyleDeclarationType>
    92 static PassRefPtr<MutableStylePropertySet> copyEditingProperties(StyleDeclarationType* style, EditingPropertiesToInclude type)
     92static PassRefPtr<MutableStyleProperties> copyEditingProperties(StyleDeclarationType* style, EditingPropertiesToInclude type)
    9393{
    9494    if (type == AllEditingProperties)
     
    106106}
    107107
    108 static PassRefPtr<MutableStylePropertySet> copyPropertiesFromComputedStyle(ComputedStyleExtractor& computedStyle, EditingStyle::PropertiesToInclude propertiesToInclude)
     108static PassRefPtr<MutableStyleProperties> copyPropertiesFromComputedStyle(ComputedStyleExtractor& computedStyle, EditingStyle::PropertiesToInclude propertiesToInclude)
    109109{
    110110    switch (propertiesToInclude) {
     
    120120}
    121121
    122 static PassRefPtr<MutableStylePropertySet> copyPropertiesFromComputedStyle(Node* node, EditingStyle::PropertiesToInclude propertiesToInclude)
     122static PassRefPtr<MutableStyleProperties> copyPropertiesFromComputedStyle(Node* node, EditingStyle::PropertiesToInclude propertiesToInclude)
    123123{
    124124    ComputedStyleExtractor computedStyle(node);
     
    126126}
    127127
    128 static PassRefPtr<CSSValue> extractPropertyValue(const StylePropertySet* style, CSSPropertyID propertyID)
     128static PassRefPtr<CSSValue> extractPropertyValue(const StyleProperties* style, CSSPropertyID propertyID)
    129129{
    130130    return style ? style->getPropertyCSSValue(propertyID) : PassRefPtr<CSSValue>();
     
    145145}
    146146
    147 template<typename T> PassRefPtr<MutableStylePropertySet> getPropertiesNotIn(StylePropertySet* styleWithRedundantProperties, T* baseStyle);
     147template<typename T> PassRefPtr<MutableStyleProperties> getPropertiesNotIn(StyleProperties* styleWithRedundantProperties, T* baseStyle);
    148148enum LegacyFontSizeMode { AlwaysUseLegacyFontSize, UseLegacyFontSizeOnlyIfPixelValuesMatch };
    149149static int legacyFontSizeFromCSSValue(Document*, CSSPrimitiveValue*, bool shouldUseFixedFontDefaultSize, LegacyFontSizeMode);
    150150static bool isTransparentColorValue(CSSValue*);
    151 static bool hasTransparentBackgroundColor(StylePropertySet*);
     151static bool hasTransparentBackgroundColor(StyleProperties*);
    152152static PassRefPtr<CSSValue> backgroundColorInEffect(Node*);
    153153
     
    163163    virtual bool matches(const Element* element) const { return !m_tagName || element->hasTagName(*m_tagName); }
    164164    virtual bool hasAttribute() const { return false; }
    165     virtual bool propertyExistsInStyle(const StylePropertySet* style) const { return style->getPropertyCSSValue(m_propertyID); }
    166     virtual bool valueIsPresentInStyle(Element*, StylePropertySet*) const;
     165    virtual bool propertyExistsInStyle(const StyleProperties* style) const { return style->getPropertyCSSValue(m_propertyID); }
     166    virtual bool valueIsPresentInStyle(Element*, StyleProperties*) const;
    167167    virtual void addToStyle(Element*, EditingStyle*) const;
    168168
     
    196196}
    197197
    198 bool HTMLElementEquivalent::valueIsPresentInStyle(Element* element, StylePropertySet* style) const
     198bool HTMLElementEquivalent::valueIsPresentInStyle(Element* element, StyleProperties* style) const
    199199{
    200200    RefPtr<CSSValue> value = style->getPropertyCSSValue(m_propertyID);
     
    213213        return adoptPtr(new HTMLTextDecorationEquivalent(primitiveValue, tagName));
    214214    }
    215     virtual bool propertyExistsInStyle(const StylePropertySet*) const;
    216     virtual bool valueIsPresentInStyle(Element*, StylePropertySet*) const;
     215    virtual bool propertyExistsInStyle(const StyleProperties*) const;
     216    virtual bool valueIsPresentInStyle(Element*, StyleProperties*) const;
    217217
    218218private:
     
    226226}
    227227
    228 bool HTMLTextDecorationEquivalent::propertyExistsInStyle(const StylePropertySet* style) const
     228bool HTMLTextDecorationEquivalent::propertyExistsInStyle(const StyleProperties* style) const
    229229{
    230230    return style->getPropertyCSSValue(CSSPropertyWebkitTextDecorationsInEffect) || style->getPropertyCSSValue(CSSPropertyTextDecoration);
    231231}
    232232
    233 bool HTMLTextDecorationEquivalent::valueIsPresentInStyle(Element* element, StylePropertySet* style) const
     233bool HTMLTextDecorationEquivalent::valueIsPresentInStyle(Element* element, StyleProperties* style) const
    234234{
    235235    RefPtr<CSSValue> styleValue = style->getPropertyCSSValue(CSSPropertyWebkitTextDecorationsInEffect);
     
    252252    bool matches(const Element* elem) const { return HTMLElementEquivalent::matches(elem) && elem->hasAttribute(m_attrName); }
    253253    virtual bool hasAttribute() const { return true; }
    254     virtual bool valueIsPresentInStyle(Element*, StylePropertySet*) const;
     254    virtual bool valueIsPresentInStyle(Element*, StyleProperties*) const;
    255255    virtual void addToStyle(Element*, EditingStyle*) const;
    256256    virtual PassRefPtr<CSSValue> attributeValueAsCSSValue(Element*) const;
     
    275275}
    276276
    277 bool HTMLAttributeEquivalent::valueIsPresentInStyle(Element* element, StylePropertySet* style) const
     277bool HTMLAttributeEquivalent::valueIsPresentInStyle(Element* element, StyleProperties* style) const
    278278{
    279279    RefPtr<CSSValue> value = attributeValueAsCSSValue(element);
     
    295295        return 0;
    296296   
    297     RefPtr<MutableStylePropertySet> dummyStyle;
    298     dummyStyle = MutableStylePropertySet::create();
     297    RefPtr<MutableStyleProperties> dummyStyle;
     298    dummyStyle = MutableStyleProperties::create();
    299299    dummyStyle->setProperty(m_propertyID, element->getAttribute(m_attrName));
    300300    return dummyStyle->getPropertyCSSValue(m_propertyID);
     
    351351}
    352352
    353 EditingStyle::EditingStyle(const StylePropertySet* style)
     353EditingStyle::EditingStyle(const StyleProperties* style)
    354354    : m_shouldUseFixedDefaultFontSize(false)
    355355    , m_fontSizeDelta(NoFontDelta)
     
    476476{
    477477    if (!m_mutableStyle)
    478         m_mutableStyle = MutableStylePropertySet::create();
     478        m_mutableStyle = MutableStyleProperties::create();
    479479
    480480    m_mutableStyle->setProperty(propertyID, value, important);
     
    541541}
    542542
    543 void EditingStyle::setStyle(PassRefPtr<MutableStylePropertySet> style)
     543void EditingStyle::setStyle(PassRefPtr<MutableStyleProperties> style)
    544544{
    545545    m_mutableStyle = style;
     
    550550}
    551551
    552 void EditingStyle::overrideWithStyle(const StylePropertySet* style)
     552void EditingStyle::overrideWithStyle(const StyleProperties* style)
    553553{
    554554    return mergeStyle(style, OverrideValues);
     
    587587{
    588588    RefPtr<EditingStyle> textDirection = EditingStyle::create();
    589     textDirection->m_mutableStyle = MutableStylePropertySet::create();
     589    textDirection->m_mutableStyle = MutableStyleProperties::create();
    590590    textDirection->m_mutableStyle->setProperty(CSSPropertyUnicodeBidi, CSSValueEmbed, m_mutableStyle->propertyIsImportant(CSSPropertyUnicodeBidi));
    591591    textDirection->m_mutableStyle->setProperty(CSSPropertyDirection, m_mutableStyle->getPropertyValue(CSSPropertyDirection),
     
    610610    if (!node || !node->parentNode())
    611611        return;
    612     RefPtr<MutableStylePropertySet> parentStyle = copyPropertiesFromComputedStyle(node->parentNode(), EditingPropertiesInEffect);
    613     RefPtr<MutableStylePropertySet> nodeStyle = copyPropertiesFromComputedStyle(node, EditingPropertiesInEffect);
     612    RefPtr<MutableStyleProperties> parentStyle = copyPropertiesFromComputedStyle(node->parentNode(), EditingPropertiesInEffect);
     613    RefPtr<MutableStyleProperties> nodeStyle = copyPropertiesFromComputedStyle(node, EditingPropertiesInEffect);
    614614    nodeStyle->removeEquivalentProperties(parentStyle.get());
    615615    m_mutableStyle->removeEquivalentProperties(nodeStyle.get());
     
    621621        return;
    622622
    623     RefPtr<MutableStylePropertySet> parentStyle = copyPropertiesFromComputedStyle(node->parentNode(), EditingPropertiesInEffect);
    624     RefPtr<MutableStylePropertySet> nodeStyle = copyPropertiesFromComputedStyle(node, EditingPropertiesInEffect);
     623    RefPtr<MutableStyleProperties> parentStyle = copyPropertiesFromComputedStyle(node->parentNode(), EditingPropertiesInEffect);
     624    RefPtr<MutableStyleProperties> nodeStyle = copyPropertiesFromComputedStyle(node, EditingPropertiesInEffect);
    625625    nodeStyle->removeEquivalentProperties(parentStyle.get());
    626626
     
    665665TriState EditingStyle::triStateOfStyle(T* styleToCompare, ShouldIgnoreTextOnlyProperties shouldIgnoreTextOnlyProperties) const
    666666{
    667     RefPtr<MutableStylePropertySet> difference = getPropertiesNotIn(m_mutableStyle.get(), styleToCompare);
     667    RefPtr<MutableStyleProperties> difference = getPropertiesNotIn(m_mutableStyle.get(), styleToCompare);
    668668
    669669    if (shouldIgnoreTextOnlyProperties == IgnoreTextOnlyProperties)
     
    713713    ASSERT(!conflictingProperties || conflictingProperties->isEmpty());
    714714
    715     const StylePropertySet* inlineStyle = element->inlineStyle();
     715    const StyleProperties* inlineStyle = element->inlineStyle();
    716716    if (!m_mutableStyle || !inlineStyle)
    717717        return false;
     
    902902
    903903    if (element->hasAttribute(HTMLNames::styleAttr)) {
    904         if (const StylePropertySet* style = element->inlineStyle()) {
     904        if (const StyleProperties* style = element->inlineStyle()) {
    905905            unsigned propertyCount = style->propertyCount();
    906906            for (unsigned i = 0; i < propertyCount; ++i) {
     
    926926    // which one of editingStyleAtPosition or computedStyle is called.
    927927    RefPtr<EditingStyle> editingStyleAtPosition = EditingStyle::create(position, EditingPropertiesInEffect);
    928     StylePropertySet* styleAtPosition = editingStyleAtPosition->m_mutableStyle.get();
     928    StyleProperties* styleAtPosition = editingStyleAtPosition->m_mutableStyle.get();
    929929
    930930    RefPtr<CSSValue> unicodeBidi;
     
    983983
    984984static inline bool elementMatchesAndPropertyIsNotInInlineStyleDecl(const HTMLElementEquivalent* equivalent, const StyledElement* element,
    985     EditingStyle::CSSPropertyOverrideMode mode, StylePropertySet* style)
     985    EditingStyle::CSSPropertyOverrideMode mode, StyleProperties* style)
    986986{
    987987    return equivalent->matches(element) && (!element->inlineStyle() || !equivalent->propertyExistsInStyle(element->inlineStyle()))
     
    989989}
    990990
    991 static PassRefPtr<MutableStylePropertySet> extractEditingProperties(const StylePropertySet* style, EditingStyle::PropertiesToInclude propertiesToInclude)
     991static PassRefPtr<MutableStyleProperties> extractEditingProperties(const StyleProperties* style, EditingStyle::PropertiesToInclude propertiesToInclude)
    992992{
    993993    if (!style)
     
    10751075}
    10761076
    1077 void EditingStyle::mergeStyle(const StylePropertySet* style, CSSPropertyOverrideMode mode)
     1077void EditingStyle::mergeStyle(const StyleProperties* style, CSSPropertyOverrideMode mode)
    10781078{
    10791079    if (!style)
     
    10871087    unsigned propertyCount = style->propertyCount();
    10881088    for (unsigned i = 0; i < propertyCount; ++i) {
    1089         StylePropertySet::PropertyReference property = style->propertyAt(i);
     1089        StyleProperties::PropertyReference property = style->propertyAt(i);
    10901090        RefPtr<CSSValue> value = m_mutableStyle->getPropertyCSSValue(property.id());
    10911091
     
    11081108}
    11091109
    1110 static PassRefPtr<MutableStylePropertySet> styleFromMatchedRulesForElement(Element* element, unsigned rulesToInclude)
    1111 {
    1112     RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
     1110static PassRefPtr<MutableStyleProperties> styleFromMatchedRulesForElement(Element* element, unsigned rulesToInclude)
     1111{
     1112    RefPtr<MutableStyleProperties> style = MutableStyleProperties::create();
    11131113    Vector<RefPtr<StyleRuleBase>> matchedRules = element->document().ensureStyleResolver().styleRulesForElement(element, rulesToInclude);
    11141114    for (unsigned i = 0; i < matchedRules.size(); ++i) {
     
    11221122void EditingStyle::mergeStyleFromRules(StyledElement* element)
    11231123{
    1124     RefPtr<MutableStylePropertySet> styleFromMatchedRules = styleFromMatchedRulesForElement(element,
     1124    RefPtr<MutableStyleProperties> styleFromMatchedRules = styleFromMatchedRulesForElement(element,
    11251125        StyleResolver::AuthorCSSRules | StyleResolver::CrossOriginCSSRules);
    11261126    // Styles from the inline style declaration, held in the variable "style", take precedence
     
    11401140    // For example: style="height: 1%; overflow: visible;" in quirksmode
    11411141    // FIXME: There are others like this, see <rdar://problem/5195123> Slashdot copy/paste fidelity problem
    1142     RefPtr<MutableStylePropertySet> fromComputedStyle = MutableStylePropertySet::create();
     1142    RefPtr<MutableStyleProperties> fromComputedStyle = MutableStyleProperties::create();
    11431143    ComputedStyleExtractor computedStyle(element);
    11441144
     
    11461146        unsigned propertyCount = m_mutableStyle->propertyCount();
    11471147        for (unsigned i = 0; i < propertyCount; ++i) {
    1148             StylePropertySet::PropertyReference property = m_mutableStyle->propertyAt(i);
     1148            StyleProperties::PropertyReference property = m_mutableStyle->propertyAt(i);
    11491149            CSSValue* value = property.value();
    11501150            if (!value->isPrimitiveValue())
     
    11591159}
    11601160
    1161 static void removePropertiesInStyle(MutableStylePropertySet* styleToRemovePropertiesFrom, StylePropertySet* style)
     1161static void removePropertiesInStyle(MutableStyleProperties* styleToRemovePropertiesFrom, StyleProperties* style)
    11621162{
    11631163    unsigned propertyCount = style->propertyCount();
     
    11761176
    11771177    // 1. Remove style from matched rules because style remain without repeating it in inline style declaration
    1178     RefPtr<MutableStylePropertySet> styleFromMatchedRules = styleFromMatchedRulesForElement(element, StyleResolver::AllButEmptyCSSRules);
     1178    RefPtr<MutableStyleProperties> styleFromMatchedRules = styleFromMatchedRulesForElement(element, StyleResolver::AllButEmptyCSSRules);
    11791179    if (styleFromMatchedRules && !styleFromMatchedRules->isEmpty())
    11801180        m_mutableStyle = getPropertiesNotIn(m_mutableStyle.get(), styleFromMatchedRules.get());
     
    12051205        return;
    12061206
    1207     RefPtr<StylePropertySet> defaultStyle = styleFromMatchedRulesForElement(element, StyleResolver::UAAndUserCSSRules);
     1207    RefPtr<StyleProperties> defaultStyle = styleFromMatchedRulesForElement(element, StyleResolver::UAAndUserCSSRules);
    12081208
    12091209    removePropertiesInStyle(m_mutableStyle.get(), defaultStyle.get());
     
    12131213{
    12141214    if (!m_mutableStyle)
    1215         m_mutableStyle = MutableStylePropertySet::create();
     1215        m_mutableStyle = MutableStyleProperties::create();
    12161216    const bool propertyIsImportant = true;
    12171217    m_mutableStyle->setProperty(CSSPropertyDisplay, CSSValueInline, propertyIsImportant);
     
    13451345}
    13461346
    1347 static void reconcileTextDecorationProperties(MutableStylePropertySet* style)
     1347static void reconcileTextDecorationProperties(MutableStyleProperties* style)
    13481348{   
    13491349    RefPtr<CSSValue> textDecorationsInEffect = style->getPropertyCSSValue(CSSPropertyWebkitTextDecorationsInEffect);
     
    13811381
    13821382    // FIXME: take care of background-color in effect
    1383     RefPtr<MutableStylePropertySet> mutableStyle = getPropertiesNotIn(style->style(), &computedStyle);
     1383    RefPtr<MutableStyleProperties> mutableStyle = getPropertiesNotIn(style->style(), &computedStyle);
    13841384
    13851385    reconcileTextDecorationProperties(mutableStyle.get());
     
    14001400}
    14011401
    1402 static void setTextDecorationProperty(MutableStylePropertySet* style, const CSSValueList* newTextDecoration, CSSPropertyID propertyID)
     1402static void setTextDecorationProperty(MutableStyleProperties* style, const CSSValueList* newTextDecoration, CSSPropertyID propertyID)
    14031403{
    14041404    if (newTextDecoration->length())
     
    14101410}
    14111411
    1412 void StyleChange::extractTextStyles(Document* document, MutableStylePropertySet* style, bool shouldUseFixedFontDefaultSize)
     1412void StyleChange::extractTextStyles(Document* document, MutableStyleProperties* style, bool shouldUseFixedFontDefaultSize)
    14131413{
    14141414    ASSERT(style);
     
    14751475}
    14761476
    1477 static void diffTextDecorations(MutableStylePropertySet* style, CSSPropertyID propertID, CSSValue* refTextDecoration)
     1477static void diffTextDecorations(MutableStyleProperties* style, CSSPropertyID propertID, CSSValue* refTextDecoration)
    14781478{
    14791479    RefPtr<CSSValue> textDecoration = style->getPropertyCSSValue(propertID);
     
    15281528
    15291529template<typename T>
    1530 static PassRefPtr<MutableStylePropertySet> extractPropertiesNotIn(StylePropertySet* styleWithRedundantProperties, T* baseStyle)
     1530static PassRefPtr<MutableStyleProperties> extractPropertiesNotIn(StyleProperties* styleWithRedundantProperties, T* baseStyle)
    15311531{
    15321532    ASSERT(styleWithRedundantProperties);
    1533     RefPtr<MutableStylePropertySet> result = styleWithRedundantProperties->mutableCopy();
     1533    RefPtr<MutableStyleProperties> result = styleWithRedundantProperties->mutableCopy();
    15341534
    15351535    result->removeEquivalentProperties(baseStyle);
     
    15561556
    15571557template<typename T>
    1558 PassRefPtr<MutableStylePropertySet> getPropertiesNotIn(StylePropertySet* styleWithRedundantProperties, T* baseStyle)
     1558PassRefPtr<MutableStyleProperties> getPropertiesNotIn(StyleProperties* styleWithRedundantProperties, T* baseStyle)
    15591559{
    15601560    return extractPropertiesNotIn(styleWithRedundantProperties, baseStyle);
     
    15991599}
    16001600
    1601 bool hasTransparentBackgroundColor(StylePropertySet* style)
     1601bool hasTransparentBackgroundColor(StyleProperties* style)
    16021602{
    16031603    RefPtr<CSSValue> cssValue = style->getPropertyCSSValue(CSSPropertyBackgroundColor);
  • trunk/Source/WebCore/editing/EditingStyle.h

    r154938 r159856  
    5252class Element;
    5353class HTMLElement;
    54 class MutableStylePropertySet;
     54class MutableStyleProperties;
    5555class Node;
    5656class Position;
    5757class QualifiedName;
    5858class RenderStyle;
    59 class StylePropertySet;
     59class StyleProperties;
    6060class StyledElement;
    6161class VisibleSelection;
     
    8585    }
    8686
    87     static PassRefPtr<EditingStyle> create(const StylePropertySet* style)
     87    static PassRefPtr<EditingStyle> create(const StyleProperties* style)
    8888    {
    8989        return adoptRef(new EditingStyle(style));
     
    9797    ~EditingStyle();
    9898
    99     MutableStylePropertySet* style() { return m_mutableStyle.get(); }
     99    MutableStyleProperties* style() { return m_mutableStyle.get(); }
    100100    bool textDirection(WritingDirection&) const;
    101101    bool isEmpty() const;
    102     void setStyle(PassRefPtr<MutableStylePropertySet>);
    103     void overrideWithStyle(const StylePropertySet*);
     102    void setStyle(PassRefPtr<MutableStyleProperties>);
     103    void overrideWithStyle(const StyleProperties*);
    104104    void clear();
    105105    PassRefPtr<EditingStyle> copy() const;
     
    148148    EditingStyle(Node*, PropertiesToInclude);
    149149    EditingStyle(const Position&, PropertiesToInclude);
    150     explicit EditingStyle(const StylePropertySet*);
     150    explicit EditingStyle(const StyleProperties*);
    151151    EditingStyle(CSSPropertyID, const String& value);
    152152    void init(Node*, PropertiesToInclude);
     
    158158    bool conflictsWithInlineStyleOfElement(StyledElement*, EditingStyle* extractedStyle, Vector<CSSPropertyID>* conflictingProperties) const;
    159159    void mergeInlineAndImplicitStyleOfElement(StyledElement*, CSSPropertyOverrideMode, PropertiesToInclude);
    160     void mergeStyle(const StylePropertySet*, CSSPropertyOverrideMode);
    161 
    162     RefPtr<MutableStylePropertySet> m_mutableStyle;
     160    void mergeStyle(const StyleProperties*, CSSPropertyOverrideMode);
     161
     162    RefPtr<MutableStyleProperties> m_mutableStyle;
    163163    bool m_shouldUseFixedDefaultFontSize;
    164164    float m_fontSizeDelta;
     
    214214    }
    215215private:
    216     void extractTextStyles(Document*, MutableStylePropertySet*, bool shouldUseFixedFontDefaultSize);
     216    void extractTextStyles(Document*, MutableStyleProperties*, bool shouldUseFixedFontDefaultSize);
    217217
    218218    String m_cssStyle;
  • trunk/Source/WebCore/editing/Editor.cpp

    r159733 r159856  
    7878#include "SpellChecker.h"
    7979#include "SpellingCorrectionCommand.h"
    80 #include "StylePropertySet.h"
     80#include "StyleProperties.h"
    8181#include "Text.h"
    8282#include "TextCheckerClient.h"
     
    747747}
    748748
    749 void Editor::applyStyle(StylePropertySet* style, EditAction editingAction)
     749void Editor::applyStyle(StyleProperties* style, EditAction editingAction)
    750750{
    751751    switch (m_frame.selection().selectionType()) {
     
    763763}
    764764   
    765 bool Editor::shouldApplyStyle(StylePropertySet* style, Range* range)
     765bool Editor::shouldApplyStyle(StyleProperties* style, Range* range)
    766766{   
    767767    return client()->shouldApplyStyle(style, range);
    768768}
    769769   
    770 void Editor::applyParagraphStyle(StylePropertySet* style, EditAction editingAction)
     770void Editor::applyParagraphStyle(StyleProperties* style, EditAction editingAction)
    771771{
    772772    switch (m_frame.selection().selectionType()) {
     
    782782}
    783783
    784 void Editor::applyStyleToSelection(StylePropertySet* style, EditAction editingAction)
     784void Editor::applyStyleToSelection(StyleProperties* style, EditAction editingAction)
    785785{
    786786    if (!style || style->isEmpty() || !canEditRichly())
     
    791791}
    792792
    793 void Editor::applyParagraphStyleToSelection(StylePropertySet* style, EditAction editingAction)
     793void Editor::applyParagraphStyleToSelection(StyleProperties* style, EditAction editingAction)
    794794{
    795795    if (!style || style->isEmpty() || !canEditRichly())
     
    14241424    }
    14251425
    1426     RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
     1426    RefPtr<MutableStyleProperties> style = MutableStyleProperties::create();
    14271427    style->setProperty(CSSPropertyDirection, direction == LeftToRightWritingDirection ? "ltr" : direction == RightToLeftWritingDirection ? "rtl" : "inherit", false);
    14281428    applyParagraphStyleToSelection(style.get(), EditActionSetWritingDirection);
     
    27312731}
    27322732
    2733 void Editor::computeAndSetTypingStyle(StylePropertySet* style, EditAction editingAction)
     2733void Editor::computeAndSetTypingStyle(StyleProperties* style, EditAction editingAction)
    27342734{
    27352735    if (!style || style->isEmpty()) {
  • trunk/Source/WebCore/editing/Editor.h

    r157653 r159856  
    6767class SpellCheckRequest;
    6868class SpellChecker;
    69 class StylePropertySet;
     69class StyleProperties;
    7070class Text;
    7171class TextCheckerClient;
     
    140140    bool shouldInsertText(const String&, Range*, EditorInsertAction) const;
    141141    bool shouldDeleteRange(Range*) const;
    142     bool shouldApplyStyle(StylePropertySet*, Range*);
     142    bool shouldApplyStyle(StyleProperties*, Range*);
    143143
    144144    void respondToChangedContents(const VisibleSelection& endingSelection);
     
    167167    bool dispatchCPPEvent(const AtomicString&, ClipboardAccessPolicy);
    168168   
    169     void applyStyle(StylePropertySet*, EditAction = EditActionUnspecified);
    170     void applyParagraphStyle(StylePropertySet*, EditAction = EditActionUnspecified);
    171     void applyStyleToSelection(StylePropertySet*, EditAction);
    172     void applyParagraphStyleToSelection(StylePropertySet*, EditAction);
     169    void applyStyle(StyleProperties*, EditAction = EditActionUnspecified);
     170    void applyParagraphStyle(StyleProperties*, EditAction = EditActionUnspecified);
     171    void applyStyleToSelection(StyleProperties*, EditAction);
     172    void applyParagraphStyleToSelection(StyleProperties*, EditAction);
    173173
    174174    void appliedEditing(PassRefPtr<CompositeEditCommand>);
     
    333333    void setMark(const VisibleSelection&);
    334334
    335     void computeAndSetTypingStyle(StylePropertySet* , EditAction = EditActionUnspecified);
     335    void computeAndSetTypingStyle(StyleProperties* , EditAction = EditActionUnspecified);
    336336    void applyEditingStyleToBodyElement() const;
    337337    void applyEditingStyleToElement(Element*) const;
  • trunk/Source/WebCore/editing/EditorCommand.cpp

    r158350 r159856  
    5555#include "Settings.h"
    5656#include "Sound.h"
    57 #include "StylePropertySet.h"
     57#include "StyleProperties.h"
    5858#include "TypingCommand.h"
    5959#include "UnlinkCommand.h"
     
    9999}
    100100
    101 static bool applyCommandToFrame(Frame& frame, EditorCommandSource source, EditAction action, StylePropertySet* style)
     101static bool applyCommandToFrame(Frame& frame, EditorCommandSource source, EditAction action, StyleProperties* style)
    102102{
    103103    // FIXME: We don't call shouldApplyStyle when the source is DOM; is there a good reason for that?
     
    117117static bool executeApplyStyle(Frame& frame, EditorCommandSource source, EditAction action, CSSPropertyID propertyID, const String& propertyValue)
    118118{
    119     RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
     119    RefPtr<MutableStyleProperties> style = MutableStyleProperties::create();
    120120    style->setProperty(propertyID, propertyValue);
    121121    return applyCommandToFrame(frame, source, action, style.get());
     
    124124static bool executeApplyStyle(Frame& frame, EditorCommandSource source, EditAction action, CSSPropertyID propertyID, CSSValueID propertyValue)
    125125{
    126     RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
     126    RefPtr<MutableStyleProperties> style = MutableStyleProperties::create();
    127127    style->setProperty(propertyID, propertyValue);
    128128    return applyCommandToFrame(frame, source, action, style.get());
     
    151151
    152152    // FIXME: We shouldn't be having to convert new style into text.  We should have setPropertyCSSValue.
    153     RefPtr<MutableStylePropertySet> newMutableStyle = MutableStylePropertySet::create();
     153    RefPtr<MutableStyleProperties> newMutableStyle = MutableStyleProperties::create();
    154154    newMutableStyle->setProperty(propertyID, newStyle);
    155155    return applyCommandToFrame(frame, source, action, newMutableStyle.get());
     
    174174static bool executeApplyParagraphStyle(Frame& frame, EditorCommandSource source, EditAction action, CSSPropertyID propertyID, const String& propertyValue)
    175175{
    176     RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
     176    RefPtr<MutableStyleProperties> style = MutableStyleProperties::create();
    177177    style->setProperty(propertyID, propertyValue);
    178178    // FIXME: We don't call shouldApplyStyle when the source is DOM; is there a good reason for that?
     
    591591static bool executeMakeTextWritingDirectionLeftToRight(Frame& frame, Event*, EditorCommandSource, const String&)
    592592{
    593     RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
     593    RefPtr<MutableStyleProperties> style = MutableStyleProperties::create();
    594594    style->setProperty(CSSPropertyUnicodeBidi, CSSValueEmbed);
    595595    style->setProperty(CSSPropertyDirection, CSSValueLtr);
     
    600600static bool executeMakeTextWritingDirectionNatural(Frame& frame, Event*, EditorCommandSource, const String&)
    601601{
    602     RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
     602    RefPtr<MutableStyleProperties> style = MutableStyleProperties::create();
    603603    style->setProperty(CSSPropertyUnicodeBidi, CSSValueNormal);
    604604    frame.editor().applyStyle(style.get(), EditActionSetWritingDirection);
     
    608608static bool executeMakeTextWritingDirectionRightToLeft(Frame& frame, Event*, EditorCommandSource, const String&)
    609609{
    610     RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
     610    RefPtr<MutableStyleProperties> style = MutableStyleProperties::create();
    611611    style->setProperty(CSSPropertyUnicodeBidi, CSSValueEmbed);
    612612    style->setProperty(CSSPropertyDirection, CSSValueRtl);
  • trunk/Source/WebCore/editing/FrameSelection.cpp

    r158537 r159856  
    5959#include "Settings.h"
    6060#include "SpatialNavigation.h"
    61 #include "StylePropertySet.h"
     61#include "StyleProperties.h"
    6262#include "TypingCommand.h"
    6363#include "VisibleUnits.h"
     
    19071907}
    19081908
    1909 PassRefPtr<MutableStylePropertySet> FrameSelection::copyTypingStyle() const
     1909PassRefPtr<MutableStyleProperties> FrameSelection::copyTypingStyle() const
    19101910{
    19111911    if (!m_typingStyle || !m_typingStyle->style())
  • trunk/Source/WebCore/editing/FrameSelection.h

    r156982 r159856  
    4242class GraphicsContext;
    4343class HTMLFormElement;
    44 class MutableStylePropertySet;
     44class MutableStyleProperties;
    4545class RenderObject;
    4646class RenderView;
     
    238238
    239239    EditingStyle* typingStyle() const;
    240     PassRefPtr<MutableStylePropertySet> copyTypingStyle() const;
     240    PassRefPtr<MutableStyleProperties> copyTypingStyle() const;
    241241    void setTypingStyle(PassRefPtr<EditingStyle>);
    242242    void clearTypingStyle();
  • trunk/Source/WebCore/editing/RemoveCSSPropertyCommand.cpp

    r154938 r159856  
    2929#include "CSSStyleDeclaration.h"
    3030#include "ExceptionCodePlaceholder.h"
    31 #include "StylePropertySet.h"
     31#include "StyleProperties.h"
    3232#include "StyledElement.h"
    3333#include <wtf/Assertions.h>
     
    5050void RemoveCSSPropertyCommand::doApply()
    5151{
    52     const StylePropertySet* style = m_element->inlineStyle();
     52    const StyleProperties* style = m_element->inlineStyle();
    5353    m_oldValue = style->getPropertyValue(m_property);
    5454    m_important = style->propertyIsImportant(m_property);
  • trunk/Source/WebCore/editing/RemoveFormatCommand.cpp

    r158350 r159856  
    3333#include "FrameSelection.h"
    3434#include "HTMLNames.h"
    35 #include "StylePropertySet.h"
     35#include "StyleProperties.h"
    3636
    3737namespace WebCore {
  • trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp

    r159733 r159856  
    5050#include "SimplifyMarkupCommand.h"
    5151#include "SmartReplace.h"
    52 #include "StylePropertySet.h"
     52#include "StyleProperties.h"
    5353#include "Text.h"
    5454#include "TextIterator.h"
     
    484484        StyledElement* element = toStyledElement(node.get());
    485485
    486         const StylePropertySet* inlineStyle = element->inlineStyle();
     486        const StyleProperties* inlineStyle = element->inlineStyle();
    487487        RefPtr<EditingStyle> newInlineStyle = EditingStyle::create(inlineStyle);
    488488        if (inlineStyle) {
  • trunk/Source/WebCore/editing/ios/EditorIOS.mm

    r159416 r159856  
    5151#include "SharedBuffer.h"
    5252#include "SoftLinking.h"
    53 #include "StylePropertySet.h"
     53#include "StyleProperties.h"
    5454#include "Text.h"
    5555#include "TypingCommand.h"
     
    171171    }
    172172
    173     RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
     173    RefPtr<MutableStyleProperties> style = MutableStyleProperties::create();
    174174    style->setProperty(CSSPropertyTextAlign, newValue);
    175175    applyParagraphStyle(style.get());
     
    278278   
    279279    RefPtr<EditingStyle> editingStyle = EditingStyle::create(m_frame.document()->body());
    280     RefPtr<MutableStylePropertySet> defaultStyle = editingStyle.get()->style()->mutableCopy();
     280    RefPtr<MutableStyleProperties> defaultStyle = editingStyle.get()->style()->mutableCopy();
    281281   
    282282    // Text widgets implement background color via the UIView property. Their body element will not have one.
  • trunk/Source/WebCore/editing/mac/EditorMac.mm

    r158163 r159856  
    5555#import "RuntimeApplicationChecks.h"
    5656#import "Sound.h"
    57 #import "StylePropertySet.h"
     57#import "StyleProperties.h"
    5858#import "Text.h"
    5959#import "TypingCommand.h"
  • trunk/Source/WebCore/editing/markup.cpp

    r159649 r159856  
    5353#include "Range.h"
    5454#include "RenderBlock.h"
    55 #include "StylePropertySet.h"
     55#include "StyleProperties.h"
    5656#include "TextIterator.h"
    5757#include "VisibleSelection.h"
     
    6969using namespace HTMLNames;
    7070
    71 static bool propertyMissingOrEqualToNone(StylePropertySet*, CSSPropertyID);
     71static bool propertyMissingOrEqualToNone(StyleProperties*, CSSPropertyID);
    7272
    7373class AttributeChange {
     
    125125    Node* serializeNodes(Node* startNode, Node* pastEnd);
    126126    void wrapWithNode(Node&, bool convertBlocksToInlines = false, RangeFullySelectsNode = DoesFullySelectNode);
    127     void wrapWithStyleNode(StylePropertySet*, Document&, bool isBlock = false);
     127    void wrapWithStyleNode(StyleProperties*, Document&, bool isBlock = false);
    128128    String takeResults();
    129129
     
    131131
    132132private:
    133     void appendStyleNodeOpenTag(StringBuilder&, StylePropertySet*, Document&, bool isBlock = false);
     133    void appendStyleNodeOpenTag(StringBuilder&, StyleProperties*, Document&, bool isBlock = false);
    134134    const String& styleNodeCloseTag(bool isBlock = false);
    135135
     
    185185}
    186186
    187 void StyledMarkupAccumulator::wrapWithStyleNode(StylePropertySet* style, Document& document, bool isBlock)
     187void StyledMarkupAccumulator::wrapWithStyleNode(StyleProperties* style, Document& document, bool isBlock)
    188188{
    189189    StringBuilder openTag;
     
    193193}
    194194
    195 void StyledMarkupAccumulator::appendStyleNodeOpenTag(StringBuilder& out, StylePropertySet* style, Document& document, bool isBlock)
     195void StyledMarkupAccumulator::appendStyleNodeOpenTag(StringBuilder& out, StyleProperties* style, Document& document, bool isBlock)
    196196{
    197197    // wrappingStyleForSerialization should have removed -webkit-text-decorations-in-effect
     
    455455}
    456456
    457 static bool propertyMissingOrEqualToNone(StylePropertySet* style, CSSPropertyID propertyID)
     457static bool propertyMissingOrEqualToNone(StyleProperties* style, CSSPropertyID propertyID)
    458458{
    459459    if (!style)
  • trunk/Source/WebCore/html/HTMLBRElement.cpp

    r158985 r159856  
    5757}
    5858
    59 void HTMLBRElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     59void HTMLBRElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    6060{
    6161    if (name == clearAttr) {
  • trunk/Source/WebCore/html/HTMLBRElement.h

    r158985 r159856  
    4040
    4141    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    42     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     42    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    4343
    4444    virtual RenderElement* createRenderer(PassRef<RenderStyle>) OVERRIDE;
  • trunk/Source/WebCore/html/HTMLBodyElement.cpp

    r158985 r159856  
    3636#include "HTMLParserIdioms.h"
    3737#include "Page.h"
    38 #include "StylePropertySet.h"
     38#include "StyleProperties.h"
    3939
    4040namespace WebCore {
     
    6969}
    7070
    71 void HTMLBodyElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     71void HTMLBodyElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    7272{
    7373    if (name == backgroundAttr) {
  • trunk/Source/WebCore/html/HTMLBodyElement.h

    r159416 r159856  
    7373    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    7474    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    75     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     75    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    7676
    7777    virtual InsertionNotificationRequest insertedInto(ContainerNode&) OVERRIDE;
  • trunk/Source/WebCore/html/HTMLDivElement.cpp

    r158985 r159856  
    5656}
    5757
    58 void HTMLDivElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     58void HTMLDivElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    5959{
    6060    if (name == alignAttr) {
  • trunk/Source/WebCore/html/HTMLDivElement.h

    r158985 r159856  
    3838private:
    3939    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    40     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     40    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    4141};
    4242
  • trunk/Source/WebCore/html/HTMLElement.cpp

    r158985 r159856  
    5353#include "ScriptController.h"
    5454#include "Settings.h"
    55 #include "StylePropertySet.h"
     55#include "StyleProperties.h"
    5656#include "SubframeLoader.h"
    5757#include "Text.h"
     
    139139}
    140140
    141 void HTMLElement::applyBorderAttributeToStyle(const AtomicString& value, MutableStylePropertySet& style)
     141void HTMLElement::applyBorderAttributeToStyle(const AtomicString& value, MutableStyleProperties& style)
    142142{
    143143    addPropertyToPresentationAttributeStyle(style, CSSPropertyBorderWidth, parseBorderWidthAttribute(value), CSSPrimitiveValue::CSS_PX);
     
    145145}
    146146
    147 void HTMLElement::mapLanguageAttributeToLocale(const AtomicString& value, MutableStylePropertySet& style)
     147void HTMLElement::mapLanguageAttributeToLocale(const AtomicString& value, MutableStyleProperties& style)
    148148{
    149149    if (!value.isEmpty()) {
     
    163163}
    164164
    165 void HTMLElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     165void HTMLElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    166166{
    167167    if (name == alignAttr) {
     
    603603}
    604604
    605 void HTMLElement::applyAlignmentAttributeToStyle(const AtomicString& alignment, MutableStylePropertySet& style)
     605void HTMLElement::applyAlignmentAttributeToStyle(const AtomicString& alignment, MutableStyleProperties& style)
    606606{
    607607    // Vertical alignment with respect to the current baseline of the text
     
    966966}
    967967
    968 void HTMLElement::addHTMLLengthToStyle(MutableStylePropertySet& style, CSSPropertyID propertyID, const String& value)
     968void HTMLElement::addHTMLLengthToStyle(MutableStyleProperties& style, CSSPropertyID propertyID, const String& value)
    969969{
    970970    // FIXME: This function should not spin up the CSS parser, but should instead just figure out the correct
     
    10551055
    10561056// Color parsing that matches HTML's "rules for parsing a legacy color value"
    1057 void HTMLElement::addHTMLColorToStyle(MutableStylePropertySet& style, CSSPropertyID propertyID, const String& attributeValue)
     1057void HTMLElement::addHTMLColorToStyle(MutableStyleProperties& style, CSSPropertyID propertyID, const String& attributeValue)
    10581058{
    10591059    // An empty string doesn't apply a color. (One containing only whitespace does, which is why this check occurs before stripping.)
  • trunk/Source/WebCore/html/HTMLElement.h

    r158985 r159856  
    9999    HTMLElement(const QualifiedName& tagName, Document&, ConstructionType);
    100100
    101     void addHTMLLengthToStyle(MutableStylePropertySet&, CSSPropertyID, const String& value);
    102     void addHTMLColorToStyle(MutableStylePropertySet&, CSSPropertyID, const String& color);
     101    void addHTMLLengthToStyle(MutableStyleProperties&, CSSPropertyID, const String& value);
     102    void addHTMLColorToStyle(MutableStyleProperties&, CSSPropertyID, const String& color);
    103103
    104     void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropertySet&);
    105     void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropertySet&);
     104    void applyAlignmentAttributeToStyle(const AtomicString&, MutableStyleProperties&);
     105    void applyBorderAttributeToStyle(const AtomicString&, MutableStyleProperties&);
    106106
    107107    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    108108    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    109     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     109    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    110110    unsigned parseBorderWidthAttribute(const AtomicString&) const;
    111111
     
    118118    virtual String nodeName() const OVERRIDE FINAL;
    119119
    120     void mapLanguageAttributeToLocale(const AtomicString&, MutableStylePropertySet&);
     120    void mapLanguageAttributeToLocale(const AtomicString&, MutableStyleProperties&);
    121121
    122122    virtual HTMLFormElement* virtualForm() const;
  • trunk/Source/WebCore/html/HTMLEmbedElement.cpp

    r159827 r159856  
    8484}
    8585
    86 void HTMLEmbedElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     86void HTMLEmbedElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    8787{
    8888    if (name == hiddenAttr) {
  • trunk/Source/WebCore/html/HTMLEmbedElement.h

    r159417 r159856  
    3737    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    3838    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    39     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     39    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    4040
    4141    virtual bool rendererIsNeeded(const RenderStyle&);
  • trunk/Source/WebCore/html/HTMLFontElement.cpp

    r158985 r159856  
    3232#include "HTMLNames.h"
    3333#include "HTMLParserIdioms.h"
    34 #include "StylePropertySet.h"
     34#include "StyleProperties.h"
    3535#include <wtf/text/StringBuilder.h>
    3636
     
    187187}
    188188
    189 void HTMLFontElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     189void HTMLFontElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    190190{
    191191    if (name == sizeAttr) {
  • trunk/Source/WebCore/html/HTMLFontElement.h

    r158985 r159856  
    3939
    4040    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    41     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     41    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    4242};
    4343
  • trunk/Source/WebCore/html/HTMLFrameSetElement.cpp

    r158985 r159856  
    7171}
    7272
    73 void HTMLFrameSetElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     73void HTMLFrameSetElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    7474{
    7575    if (name == bordercolorAttr)
  • trunk/Source/WebCore/html/HTMLFrameSetElement.h

    r158985 r159856  
    7272    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    7373    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    74     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     74    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    7575
    7676    virtual void willAttachRenderers() OVERRIDE;
  • trunk/Source/WebCore/html/HTMLHRElement.cpp

    r158985 r159856  
    2929#include "CSSValuePool.h"
    3030#include "HTMLNames.h"
    31 #include "StylePropertySet.h"
     31#include "StyleProperties.h"
    3232
    3333namespace WebCore {
     
    5858}
    5959
    60 void HTMLHRElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     60void HTMLHRElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    6161{
    6262    if (name == alignAttr) {
  • trunk/Source/WebCore/html/HTMLHRElement.h

    r158985 r159856  
    3939
    4040    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    41     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     41    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    4242};
    4343
  • trunk/Source/WebCore/html/HTMLIFrameElement.cpp

    r158985 r159856  
    5757}
    5858
    59 void HTMLIFrameElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     59void HTMLIFrameElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    6060{
    6161    if (name == widthAttr)
  • trunk/Source/WebCore/html/HTMLIFrameElement.h

    r158985 r159856  
    4040    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    4141    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    42     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     42    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    4343
    4444    virtual bool rendererIsNeeded(const RenderStyle&);
  • trunk/Source/WebCore/html/HTMLImageElement.cpp

    r159489 r159856  
    8686}
    8787
    88 void HTMLImageElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     88void HTMLImageElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    8989{
    9090    if (name == widthAttr)
  • trunk/Source/WebCore/html/HTMLImageElement.h

    r158985 r159856  
    9696    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    9797    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    98     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     98    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    9999
    100100    virtual void didAttachRenderers() OVERRIDE;
  • trunk/Source/WebCore/html/HTMLInputElement.cpp

    r159417 r159856  
    594594}
    595595
    596 void HTMLInputElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     596void HTMLInputElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    597597{
    598598    if (name == vspaceAttr) {
  • trunk/Source/WebCore/html/HTMLInputElement.h

    r158985 r159856  
    362362    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    363363    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    364     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     364    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    365365    virtual void finishParsingChildren() OVERRIDE;
    366366
  • trunk/Source/WebCore/html/HTMLLIElement.cpp

    r158985 r159856  
    5858}
    5959
    60 void HTMLLIElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     60void HTMLLIElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    6161{
    6262    if (name == typeAttr) {
  • trunk/Source/WebCore/html/HTMLLIElement.h

    r158985 r159856  
    3838    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    3939    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    40     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     40    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    4141
    4242    virtual void didAttachRenderers() OVERRIDE;
  • trunk/Source/WebCore/html/HTMLMarqueeElement.cpp

    r158985 r159856  
    6666}
    6767
    68 void HTMLMarqueeElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     68void HTMLMarqueeElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    6969{
    7070    if (name == widthAttr) {
  • trunk/Source/WebCore/html/HTMLMarqueeElement.h

    r159733 r159856  
    5555
    5656    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    57     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     57    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    5858
    5959    // ActiveDOMObject
  • trunk/Source/WebCore/html/HTMLOListElement.cpp

    r158985 r159856  
    6262}
    6363
    64 void HTMLOListElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     64void HTMLOListElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    6565{
    6666    if (name == typeAttr) {
  • trunk/Source/WebCore/html/HTMLOListElement.h

    r159733 r159856  
    5656    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    5757    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    58     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     58    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    5959
    6060    int m_start;
  • trunk/Source/WebCore/html/HTMLObjectElement.cpp

    r159827 r159856  
    9090}
    9191
    92 void HTMLObjectElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     92void HTMLObjectElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    9393{
    9494    if (name == borderAttr)
  • trunk/Source/WebCore/html/HTMLObjectElement.h

    r158985 r159856  
    7171    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    7272    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    73     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     73    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    7474
    7575    virtual InsertionNotificationRequest insertedInto(ContainerNode&) OVERRIDE;
  • trunk/Source/WebCore/html/HTMLParagraphElement.cpp

    r158985 r159856  
    5757}
    5858
    59 void HTMLParagraphElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     59void HTMLParagraphElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    6060{
    6161    if (name == alignAttr) {
  • trunk/Source/WebCore/html/HTMLParagraphElement.h

    r158985 r159856  
    3737
    3838    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    39     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     39    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    4040};
    4141
  • trunk/Source/WebCore/html/HTMLPlugInElement.cpp

    r159827 r159856  
    180180}
    181181
    182 void HTMLPlugInElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     182void HTMLPlugInElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    183183{
    184184    if (name == widthAttr)
  • trunk/Source/WebCore/html/HTMLPlugInElement.h

    r159827 r159856  
    9191    virtual void willDetachRenderers() OVERRIDE;
    9292    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    93     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     93    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    9494
    9595    virtual bool useFallbackContent() const { return false; }
  • trunk/Source/WebCore/html/HTMLPreElement.cpp

    r158985 r159856  
    2828#include "CSSValueKeywords.h"
    2929#include "HTMLNames.h"
    30 #include "StylePropertySet.h"
     30#include "StyleProperties.h"
    3131
    3232namespace WebCore {
     
    5151}
    5252
    53 void HTMLPreElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     53void HTMLPreElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    5454{
    5555    if (name == wrapAttr)
  • trunk/Source/WebCore/html/HTMLPreElement.h

    r158985 r159856  
    3636
    3737    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    38     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     38    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    3939};
    4040
  • trunk/Source/WebCore/html/HTMLTableCaptionElement.cpp

    r158985 r159856  
    5252}
    5353
    54 void HTMLTableCaptionElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     54void HTMLTableCaptionElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    5555{
    5656    if (name == alignAttr) {
  • trunk/Source/WebCore/html/HTMLTableCaptionElement.h

    r159604 r159856  
    3939
    4040    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    41     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     41    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    4242};
    4343
  • trunk/Source/WebCore/html/HTMLTableCellElement.cpp

    r158985 r159856  
    8383}
    8484
    85 void HTMLTableCellElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     85void HTMLTableCellElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    8686{
    8787    if (name == nowrapAttr)
     
    115115}
    116116
    117 const StylePropertySet* HTMLTableCellElement::additionalPresentationAttributeStyle()
     117const StyleProperties* HTMLTableCellElement::additionalPresentationAttributeStyle()
    118118{
    119119    if (HTMLTableElement* table = findParentTable())
  • trunk/Source/WebCore/html/HTMLTableCellElement.h

    r158985 r159856  
    5555    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    5656    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    57     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
    58     virtual const StylePropertySet* additionalPresentationAttributeStyle() OVERRIDE;
     57    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
     58    virtual const StyleProperties* additionalPresentationAttributeStyle() OVERRIDE;
    5959
    6060    virtual bool isURLAttribute(const Attribute&) const OVERRIDE;
  • trunk/Source/WebCore/html/HTMLTableColElement.cpp

    r158985 r159856  
    5555}
    5656
    57 void HTMLTableColElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     57void HTMLTableColElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    5858{
    5959    if (name == widthAttr)
     
    8282}
    8383
    84 const StylePropertySet* HTMLTableColElement::additionalPresentationAttributeStyle()
     84const StyleProperties* HTMLTableColElement::additionalPresentationAttributeStyle()
    8585{
    8686    if (!hasLocalName(colgroupTag))
  • trunk/Source/WebCore/html/HTMLTableColElement.h

    r158985 r159856  
    4545    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    4646    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    47     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
    48     virtual const StylePropertySet* additionalPresentationAttributeStyle() OVERRIDE;
     47    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
     48    virtual const StyleProperties* additionalPresentationAttributeStyle() OVERRIDE;
    4949
    5050    int m_span;
  • trunk/Source/WebCore/html/HTMLTableElement.cpp

    r159604 r159856  
    4040#include "HTMLTableSectionElement.h"
    4141#include "RenderTable.h"
    42 #include "StylePropertySet.h"
     42#include "StyleProperties.h"
    4343#include <wtf/Ref.h>
    4444
     
    300300}
    301301
    302 void HTMLTableElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     302void HTMLTableElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    303303{
    304304    if (name == widthAttr)
     
    413413}
    414414
    415 static StylePropertySet* leakBorderStyle(CSSValueID value)
    416 {
    417     RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
     415static StyleProperties* leakBorderStyle(CSSValueID value)
     416{
     417    RefPtr<MutableStyleProperties> style = MutableStyleProperties::create();
    418418    style->setProperty(CSSPropertyBorderTopStyle, value);
    419419    style->setProperty(CSSPropertyBorderBottomStyle, value);
     
    423423}
    424424
    425 const StylePropertySet* HTMLTableElement::additionalPresentationAttributeStyle()
     425const StyleProperties* HTMLTableElement::additionalPresentationAttributeStyle()
    426426{
    427427    if (m_frameAttr)
     
    432432        // set on the table's cells during border-conflict resolution.
    433433        if (m_rulesAttr != UnsetRules) {
    434             static StylePropertySet* solidBorderStyle = leakBorderStyle(CSSValueHidden);
     434            static StyleProperties* solidBorderStyle = leakBorderStyle(CSSValueHidden);
    435435            return solidBorderStyle;
    436436        }
     
    439439
    440440    if (m_borderColorAttr) {
    441         static StylePropertySet* solidBorderStyle = leakBorderStyle(CSSValueSolid);
     441        static StyleProperties* solidBorderStyle = leakBorderStyle(CSSValueSolid);
    442442        return solidBorderStyle;
    443443    }
    444     static StylePropertySet* outsetBorderStyle = leakBorderStyle(CSSValueOutset);
     444    static StyleProperties* outsetBorderStyle = leakBorderStyle(CSSValueOutset);
    445445    return outsetBorderStyle;
    446446}
     
    469469}
    470470
    471 PassRefPtr<StylePropertySet> HTMLTableElement::createSharedCellStyle()
    472 {
    473     RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
     471PassRefPtr<StyleProperties> HTMLTableElement::createSharedCellStyle()
     472{
     473    RefPtr<MutableStyleProperties> style = MutableStyleProperties::create();
    474474
    475475    switch (cellBorders()) {
     
    509509}
    510510
    511 const StylePropertySet* HTMLTableElement::additionalCellStyle()
     511const StyleProperties* HTMLTableElement::additionalCellStyle()
    512512{
    513513    if (!m_sharedCellStyle)
     
    516516}
    517517
    518 static StylePropertySet* leakGroupBorderStyle(int rows)
    519 {
    520     RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
     518static StyleProperties* leakGroupBorderStyle(int rows)
     519{
     520    RefPtr<MutableStyleProperties> style = MutableStyleProperties::create();
    521521    if (rows) {
    522522        style->setProperty(CSSPropertyBorderTopWidth, CSSValueThin);
     
    533533}
    534534
    535 const StylePropertySet* HTMLTableElement::additionalGroupStyle(bool rows)
     535const StyleProperties* HTMLTableElement::additionalGroupStyle(bool rows)
    536536{
    537537    if (m_rulesAttr != GroupsRules)
     
    539539
    540540    if (rows) {
    541         static StylePropertySet* rowBorderStyle = leakGroupBorderStyle(true);
     541        static StyleProperties* rowBorderStyle = leakGroupBorderStyle(true);
    542542        return rowBorderStyle;
    543543    }
    544     static StylePropertySet* columnBorderStyle = leakGroupBorderStyle(false);
     544    static StyleProperties* columnBorderStyle = leakGroupBorderStyle(false);
    545545    return columnBorderStyle;
    546546}
  • trunk/Source/WebCore/html/HTMLTableElement.h

    r158985 r159856  
    6666    String summary() const;
    6767
    68     const StylePropertySet* additionalCellStyle();
    69     const StylePropertySet* additionalGroupStyle(bool rows);
     68    const StyleProperties* additionalCellStyle();
     69    const StyleProperties* additionalGroupStyle(bool rows);
    7070
    7171private:
     
    7474    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    7575    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    76     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     76    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    7777    virtual bool isURLAttribute(const Attribute&) const OVERRIDE;
    7878
    7979    // Used to obtain either a solid or outset border decl and to deal with the frame and rules attributes.
    80     virtual const StylePropertySet* additionalPresentationAttributeStyle() OVERRIDE;
     80    virtual const StyleProperties* additionalPresentationAttributeStyle() OVERRIDE;
    8181
    8282    virtual void addSubresourceAttributeURLs(ListHashSet<URL>&) const OVERRIDE;
     
    8787    CellBorders cellBorders() const;
    8888
    89     PassRefPtr<StylePropertySet> createSharedCellStyle();
     89    PassRefPtr<StyleProperties> createSharedCellStyle();
    9090
    9191    HTMLTableSectionElement* lastBody() const;
     
    9898
    9999    unsigned short m_padding;
    100     RefPtr<StylePropertySet> m_sharedCellStyle;
     100    RefPtr<StyleProperties> m_sharedCellStyle;
    101101};
    102102
  • trunk/Source/WebCore/html/HTMLTablePartElement.cpp

    r158985 r159856  
    3434#include "HTMLParserIdioms.h"
    3535#include "HTMLTableElement.h"
    36 #include "StylePropertySet.h"
     36#include "StyleProperties.h"
    3737
    3838namespace WebCore {
     
    4747}
    4848
    49 void HTMLTablePartElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     49void HTMLTablePartElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    5050{
    5151    if (name == bgcolorAttr)
  • trunk/Source/WebCore/html/HTMLTablePartElement.h

    r158985 r159856  
    4141
    4242    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    43     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     43    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    4444
    4545    HTMLTableElement* findParentTable() const;
  • trunk/Source/WebCore/html/HTMLTableSectionElement.cpp

    r155791 r159856  
    4848}
    4949
    50 const StylePropertySet* HTMLTableSectionElement::additionalPresentationAttributeStyle()
     50const StyleProperties* HTMLTableSectionElement::additionalPresentationAttributeStyle()
    5151{
    5252    if (HTMLTableElement* table = findParentTable())
  • trunk/Source/WebCore/html/HTMLTableSectionElement.h

    r159570 r159856  
    5757    HTMLTableSectionElement(const QualifiedName& tagName, Document&);
    5858
    59     virtual const StylePropertySet* additionalPresentationAttributeStyle() OVERRIDE;
     59    virtual const StyleProperties* additionalPresentationAttributeStyle() OVERRIDE;
    6060};
    6161
  • trunk/Source/WebCore/html/HTMLTextAreaElement.cpp

    r158985 r159856  
    152152}
    153153
    154 void HTMLTextAreaElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     154void HTMLTextAreaElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    155155{
    156156    if (name == wrapAttr) {
  • trunk/Source/WebCore/html/HTMLTextAreaElement.h

    r158985 r159856  
    100100    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    101101    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    102     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     102    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    103103    virtual RenderElement* createRenderer(PassRef<RenderStyle>) OVERRIDE;
    104104    virtual bool appendFormData(FormDataList&, bool) OVERRIDE;
  • trunk/Source/WebCore/html/HTMLUListElement.cpp

    r158985 r159856  
    5555}
    5656
    57 void HTMLUListElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     57void HTMLUListElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    5858{
    5959    if (name == typeAttr)
  • trunk/Source/WebCore/html/HTMLUListElement.h

    r158985 r159856  
    3737
    3838    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    39     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     39    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    4040};
    4141
  • trunk/Source/WebCore/html/HTMLVideoElement.cpp

    r159518 r159856  
    9797}
    9898
    99 void HTMLVideoElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     99void HTMLVideoElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    100100{
    101101    if (name == widthAttr)
  • trunk/Source/WebCore/html/HTMLVideoElement.h

    r159827 r159856  
    8282    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    8383    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    84     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     84    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    8585    virtual bool isVideo() const OVERRIDE { return true; }
    8686    virtual bool hasVideo() const OVERRIDE { return player() && player()->hasVideo(); }
  • trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp

    r159791 r159856  
    5151#include "SecurityOrigin.h"
    5252#include "StrokeStyleApplier.h"
    53 #include "StylePropertySet.h"
     53#include "StyleProperties.h"
    5454#include "StyleResolver.h"
    5555#include "TextMetrics.h"
     
    19941994        return;
    19951995
    1996     RefPtr<MutableStylePropertySet> parsedStyle = MutableStylePropertySet::create();
     1996    RefPtr<MutableStyleProperties> parsedStyle = MutableStyleProperties::create();
    19971997    CSSParser::parseValue(parsedStyle.get(), CSSPropertyFont, newFont, true, strictToCSSParserMode(!m_usesCSSCompatibilityParseMode), 0);
    19981998    if (parsedStyle->isEmpty())
  • trunk/Source/WebCore/html/canvas/CanvasStyle.cpp

    r158650 r159856  
    3636#include "GraphicsContext.h"
    3737#include "HTMLCanvasElement.h"
    38 #include "StylePropertySet.h"
     38#include "StyleProperties.h"
    3939
    4040#if USE(CG)
  • trunk/Source/WebCore/html/shadow/MediaControlElementTypes.cpp

    r159363 r159856  
    3939#include "RenderMedia.h"
    4040#include "RenderMediaControlElements.h"
    41 #include "StylePropertySet.h"
     41#include "StyleProperties.h"
    4242
    4343namespace WebCore {
     
    9393bool MediaControlElement::isShowing() const
    9494{
    95     const StylePropertySet* propertySet = m_element->inlineStyle();
     95    const StyleProperties* propertySet = m_element->inlineStyle();
    9696    // Following the code from show() and hide() above, we only have
    9797    // to check for the presense of inline display.
  • trunk/Source/WebCore/html/shadow/MeterShadowElement.cpp

    r158163 r159856  
    3939#include "RenderTheme.h"
    4040#include "ShadowRoot.h"
    41 #include "StylePropertySet.h"
     41#include "StyleProperties.h"
    4242
    4343namespace WebCore {
  • trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp

    r159733 r159856  
    5252#include "RenderRegion.h"
    5353#include "SVGStyleElement.h"
    54 #include "StylePropertySet.h"
     54#include "StyleProperties.h"
    5555#include "StylePropertyShorthand.h"
    5656#include "StyleResolver.h"
     
    13491349
    13501350    // FIXME: Ugliness below.
    1351     StylePropertySet* attributeStyle = const_cast<StylePropertySet*>(toStyledElement(element)->presentationAttributeStyle());
     1351    StyleProperties* attributeStyle = const_cast<StyleProperties*>(toStyledElement(element)->presentationAttributeStyle());
    13521352    if (!attributeStyle)
    13531353        return 0;
    13541354
    13551355    ASSERT_WITH_SECURITY_IMPLICATION(attributeStyle->isMutable());
    1356     MutableStylePropertySet* mutableAttributeStyle = static_cast<MutableStylePropertySet*>(attributeStyle);
     1356    MutableStyleProperties* mutableAttributeStyle = static_cast<MutableStyleProperties*>(attributeStyle);
    13571357
    13581358    RefPtr<InspectorStyle> inspectorStyle = InspectorStyle::create(InspectorCSSId(), mutableAttributeStyle->ensureCSSStyleDeclaration(), 0);
  • trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp

    r159416 r159856  
    8989#include "Settings.h"
    9090#include "ShadowRoot.h"
    91 #include "StylePropertySet.h"
     91#include "StyleProperties.h"
    9292#include "StyleResolver.h"
    9393#include "StyleSheetList.h"
  • trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp

    r158514 r159856  
    5454#include "RegularExpression.h"
    5555#include "SVGNames.h"
    56 #include "StylePropertySet.h"
     56#include "StyleProperties.h"
    5757#include "StyleResolver.h"
    5858#include "StyleRule.h"
     
    367367
    368368    if (propertyText.stripWhiteSpace().length()) {
    369         RefPtr<MutableStylePropertySet> tempMutableStyle = MutableStylePropertySet::create();
     369        RefPtr<MutableStyleProperties> tempMutableStyle = MutableStyleProperties::create();
    370370        RefPtr<CSSRuleSourceData> sourceData = CSSRuleSourceData::create(CSSRuleSourceData::STYLE_RULE);
    371371        Document* ownerDocument = m_parentStyleSheet->pageStyleSheet() ? m_parentStyleSheet->pageStyleSheet()->ownerDocument() : 0;
     
    15481548    }
    15491549
    1550     RefPtr<MutableStylePropertySet> tempDeclaration = MutableStylePropertySet::create();
     1550    RefPtr<MutableStyleProperties> tempDeclaration = MutableStyleProperties::create();
    15511551    createCSSParser(&m_element->document())->parseDeclaration(tempDeclaration.get(), m_styleText, result, &m_element->document().elementSheet().contents());
    15521552    return true;
  • trunk/Source/WebCore/loader/EmptyClients.h

    r157764 r159856  
    417417    virtual bool shouldChangeSelectedRange(Range*, Range*, EAffinity, bool) OVERRIDE { return false; }
    418418
    419     virtual bool shouldApplyStyle(StylePropertySet*, Range*) OVERRIDE { return false; }
     419    virtual bool shouldApplyStyle(StyleProperties*, Range*) OVERRIDE { return false; }
    420420    virtual bool shouldMoveRangeAfterDelete(Range*, Range*) OVERRIDE { return false; }
    421421
  • trunk/Source/WebCore/mathml/MathMLElement.cpp

    r159680 r159856  
    8484}
    8585
    86 void MathMLElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     86void MathMLElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    8787{
    8888    if (name == mathbackgroundAttr)
  • trunk/Source/WebCore/mathml/MathMLElement.h

    r159680 r159856  
    4949private:   
    5050    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    51     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     51    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    5252
    5353    virtual bool childShouldCreateRenderer(const Node&) const OVERRIDE;
  • trunk/Source/WebCore/page/DragController.cpp

    r159604 r159856  
    7474#include "Settings.h"
    7575#include "ShadowRoot.h"
    76 #include "StylePropertySet.h"
     76#include "StyleProperties.h"
    7777#include "Text.h"
    7878#include "TextEvent.h"
     
    455455            return false;
    456456        RefPtr<Range> innerRange = innerFrame->selection().toNormalizedRange();
    457         RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create();
     457        RefPtr<MutableStyleProperties> style = MutableStyleProperties::create();
    458458        style->setProperty(CSSPropertyColor, color.serialized(), false);
    459459        if (!innerFrame->editor().shouldApplyStyle(style.get(), innerRange.get()))
  • trunk/Source/WebCore/page/EditorClient.h

    r157653 r159856  
    5454class Range;
    5555class SharedBuffer;
    56 class StylePropertySet;
     56class StyleProperties;
    5757class TextCheckerClient;
    5858class VisibleSelection;
     
    8181    virtual bool shouldChangeSelectedRange(Range* fromRange, Range* toRange, EAffinity, bool stillSelecting) = 0;
    8282   
    83     virtual bool shouldApplyStyle(StylePropertySet*, Range*) = 0;
     83    virtual bool shouldApplyStyle(StyleProperties*, Range*) = 0;
    8484    virtual bool shouldMoveRangeAfterDelete(Range*, Range*) = 0;
    8585
  • trunk/Source/WebCore/page/Frame.cpp

    r159791 r159856  
    9090#include "ScrollingCoordinator.h"
    9191#include "Settings.h"
    92 #include "StylePropertySet.h"
     92#include "StyleProperties.h"
    9393#include "TextIterator.h"
    9494#include "TextNodeTraversal.h"
  • trunk/Source/WebCore/page/PageSerializer.cpp

    r159733 r159856  
    5454#include "StyleCachedImage.h"
    5555#include "StyleImage.h"
    56 #include "StylePropertySet.h"
     56#include "StyleProperties.h"
    5757#include "StyleRule.h"
    5858#include "StyleSheetContents.h"
     
    318318}
    319319
    320 void PageSerializer::retrieveResourcesForProperties(const StylePropertySet* styleDeclaration, Document* document)
     320void PageSerializer::retrieveResourcesForProperties(const StyleProperties* styleDeclaration, Document* document)
    321321{
    322322    if (!styleDeclaration)
  • trunk/Source/WebCore/page/PageSerializer.h

    r156622 r159856  
    4747class Page;
    4848class RenderElement;
    49 class StylePropertySet;
     49class StyleProperties;
    5050class StyleRule;
    5151
     
    7979
    8080    void addImageToResources(CachedImage*, RenderElement*, const URL&);
    81     void retrieveResourcesForProperties(const StylePropertySet*, Document*);
     81    void retrieveResourcesForProperties(const StyleProperties*, Document*);
    8282    void retrieveResourcesForRule(StyleRule*, Document*);
    8383
  • trunk/Source/WebCore/rendering/RenderLayer.cpp

    r159733 r159856  
    103103#include "ShadowRoot.h"
    104104#include "SourceGraphic.h"
    105 #include "StylePropertySet.h"
     105#include "StyleProperties.h"
    106106#include "StyleResolver.h"
    107107#include "TextStream.h"
  • trunk/Source/WebCore/rendering/RenderTableCell.cpp

    r159027 r159856  
    3434#include "RenderTableCol.h"
    3535#include "RenderView.h"
    36 #include "StylePropertySet.h"
     36#include "StyleProperties.h"
    3737#include "TransformState.h"
    3838#include <wtf/StackStats.h>
  • trunk/Source/WebCore/rendering/RenderTreeAsText.cpp

    r159553 r159856  
    5555#include "ShadowRoot.h"
    5656#include "SimpleLineLayoutResolver.h"
    57 #include "StylePropertySet.h"
     57#include "StyleProperties.h"
    5858#include <wtf/HexNumber.h>
    5959#include <wtf/Vector.h>
     
    140140        return true;
    141141
    142     const StylePropertySet* inlineStyleDecl = elem->inlineStyle();
     142    const StyleProperties* inlineStyleDecl = elem->inlineStyle();
    143143    return (!inlineStyleDecl || inlineStyleDecl->isEmpty());
    144144}
  • trunk/Source/WebCore/svg/SVGAnimateElement.cpp

    r159503 r159856  
    3333#include "SVGElement.h"
    3434#include "SVGNames.h"
    35 #include "StylePropertySet.h"
     35#include "StyleProperties.h"
    3636
    3737namespace WebCore {
  • trunk/Source/WebCore/svg/SVGElement.cpp

    r159036 r159856  
    760760}
    761761
    762 MutableStylePropertySet* SVGElement::animatedSMILStyleProperties() const
     762MutableStyleProperties* SVGElement::animatedSMILStyleProperties() const
    763763{
    764764    if (m_svgRareData)
     
    767767}
    768768
    769 MutableStylePropertySet& SVGElement::ensureAnimatedSMILStyleProperties()
     769MutableStyleProperties& SVGElement::ensureAnimatedSMILStyleProperties()
    770770{
    771771    return ensureSVGRareData().ensureAnimatedSMILStyleProperties();
     
    967967}
    968968
    969 void SVGElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     969void SVGElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    970970{
    971971    CSSPropertyID propertyID = cssPropertyIdForSVGAttributeName(name);
     
    10551055        return 0;
    10561056
    1057     RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(SVGAttributeMode);
     1057    RefPtr<MutableStyleProperties> style = MutableStyleProperties::create(SVGAttributeMode);
    10581058    CSSPropertyID propertyID = cssPropertyIdForSVGAttributeName(attribute->name());
    10591059    style->setProperty(propertyID, attribute->value());
  • trunk/Source/WebCore/svg/SVGElement.h

    r159036 r159856  
    127127#endif
    128128
    129     MutableStylePropertySet* animatedSMILStyleProperties() const;
    130     MutableStylePropertySet& ensureAnimatedSMILStyleProperties();
     129    MutableStyleProperties* animatedSMILStyleProperties() const;
     130    MutableStyleProperties& ensureAnimatedSMILStyleProperties();
    131131    void setUseOverrideComputedStyle(bool);
    132132
     
    157157
    158158    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    159     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     159    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    160160    virtual InsertionNotificationRequest insertedInto(ContainerNode&) OVERRIDE;
    161161    virtual void removedFrom(ContainerNode&) OVERRIDE;
  • trunk/Source/WebCore/svg/SVGElementRareData.h

    r156819 r159856  
    2121#define SVGElementRareData_h
    2222
    23 #include "StylePropertySet.h"
     23#include "StyleProperties.h"
    2424#include "StyleResolver.h"
    2525#include <wtf/HashSet.h>
     
    6262    void setCursorImageValue(CSSCursorImageValue* cursorImageValue) { m_cursorImageValue = cursorImageValue; }
    6363
    64     MutableStylePropertySet* animatedSMILStyleProperties() const { return m_animatedSMILStyleProperties.get(); }
    65     MutableStylePropertySet& ensureAnimatedSMILStyleProperties()
     64    MutableStyleProperties* animatedSMILStyleProperties() const { return m_animatedSMILStyleProperties.get(); }
     65    MutableStyleProperties& ensureAnimatedSMILStyleProperties()
    6666    {
    6767        if (!m_animatedSMILStyleProperties)
    68             m_animatedSMILStyleProperties = MutableStylePropertySet::create(SVGAttributeMode);
     68            m_animatedSMILStyleProperties = MutableStyleProperties::create(SVGAttributeMode);
    6969        return *m_animatedSMILStyleProperties;
    7070    }
     
    101101    bool m_useOverrideComputedStyle : 1;
    102102    bool m_needsOverrideComputedStyleUpdate : 1;
    103     RefPtr<MutableStylePropertySet> m_animatedSMILStyleProperties;
     103    RefPtr<MutableStyleProperties> m_animatedSMILStyleProperties;
    104104    RefPtr<RenderStyle> m_overrideComputedStyle;
    105105};
  • trunk/Source/WebCore/svg/SVGFontFaceElement.cpp

    r157924 r159856  
    4040#include "SVGGlyphElement.h"
    4141#include "SVGNames.h"
    42 #include "StylePropertySet.h"
     42#include "StyleProperties.h"
    4343#include "StyleResolver.h"
    4444#include "StyleRule.h"
     
    5151inline SVGFontFaceElement::SVGFontFaceElement(const QualifiedName& tagName, Document& document)
    5252    : SVGElement(tagName, document)
    53     , m_fontFaceRule(StyleRuleFontFace::create(MutableStylePropertySet::create(CSSStrictMode)))
     53    , m_fontFaceRule(StyleRuleFontFace::create(MutableStyleProperties::create(CSSStrictMode)))
    5454    , m_fontElement(0)
    5555{
  • trunk/Source/WebCore/svg/SVGImageElement.cpp

    r158985 r159856  
    9696}
    9797
    98 void SVGImageElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     98void SVGImageElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    9999{
    100100    if (!isSupportedAttribute(name))
  • trunk/Source/WebCore/svg/SVGImageElement.h

    r158985 r159856  
    4848    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    4949    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    50     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     50    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    5151    virtual void svgAttributeChanged(const QualifiedName&);
    5252
  • trunk/Source/WebCore/svg/SVGTextContentElement.cpp

    r158985 r159856  
    229229}
    230230
    231 void SVGTextContentElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet& style)
     231void SVGTextContentElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style)
    232232{
    233233    if (!isSupportedAttribute(name))
  • trunk/Source/WebCore/svg/SVGTextContentElement.h

    r158985 r159856  
    101101    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
    102102    virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
    103     virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet&) OVERRIDE;
     103    virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE;
    104104    virtual void svgAttributeChanged(const QualifiedName&);
    105105
  • trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.cpp

    r155971 r159856  
    107107}
    108108
    109 bool EditorClientEfl::shouldApplyStyle(StylePropertySet* style, Range* range)
     109bool EditorClientEfl::shouldApplyStyle(StyleProperties* style, Range* range)
    110110{
    111111    Ewk_Should_Apply_Style_Event shouldApplyStyleEvent = { style, range };
  • trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.h

    r155971 r159856  
    6262
    6363struct Ewk_Should_Apply_Style_Event {
    64     WebCore::StylePropertySet* style;
     64    WebCore::StyleProperties* style;
    6565    WebCore::Range* range;
    6666};
     
    9797    virtual bool shouldChangeSelectedRange(Range* fromRange, Range* toRange, EAffinity, bool stillSelecting);
    9898
    99     virtual bool shouldApplyStyle(StylePropertySet*, Range*);
     99    virtual bool shouldApplyStyle(StyleProperties*, Range*);
    100100
    101101    virtual bool shouldMoveRangeAfterDelete(Range*, Range*);
  • trunk/Source/WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp

    r157570 r159856  
    3939#include "PlatformKeyboardEvent.h"
    4040#include "Settings.h"
    41 #include "StylePropertySet.h"
     41#include "StyleProperties.h"
    4242#include "UndoStep.h"
    4343#include "WebKitDOMCSSStyleDeclarationPrivate.h"
     
    178178}
    179179
    180 bool EditorClient::shouldApplyStyle(WebCore::StylePropertySet* set, WebCore::Range* range)
    181 {
    182     gboolean accept = TRUE;
    183     Ref<MutableStylePropertySet> mutableStyle(set->mutableCopy());
     180bool EditorClient::shouldApplyStyle(WebCore::StyleProperties* set, WebCore::Range* range)
     181{
     182    gboolean accept = TRUE;
     183    Ref<MutableStyleProperties> mutableStyle(set->mutableCopy());
    184184    GRefPtr<WebKitDOMCSSStyleDeclaration> kitDeclaration(kit(mutableStyle->ensureCSSStyleDeclaration()));
    185185    GRefPtr<WebKitDOMRange> kitRange(adoptGRef(kit(range)));
  • trunk/Source/WebKit/gtk/WebCoreSupport/EditorClientGtk.h

    r155971 r159856  
    8888        virtual bool shouldChangeSelectedRange(WebCore::Range* fromRange, WebCore::Range* toRange, WebCore::EAffinity, bool stillSelecting);
    8989
    90         virtual bool shouldApplyStyle(WebCore::StylePropertySet*, WebCore::Range*);
     90        virtual bool shouldApplyStyle(WebCore::StyleProperties*, WebCore::Range*);
    9191
    9292        virtual bool shouldMoveRangeAfterDelete(WebCore::Range*, WebCore::Range*);
  • trunk/Source/WebKit/mac/WebCoreSupport/WebEditorClient.h

    r157653 r159856  
    6060    virtual bool shouldChangeSelectedRange(WebCore::Range* fromRange, WebCore::Range* toRange, WebCore::EAffinity, bool stillSelecting) OVERRIDE;
    6161
    62     virtual bool shouldApplyStyle(WebCore::StylePropertySet*, WebCore::Range*) OVERRIDE;
     62    virtual bool shouldApplyStyle(WebCore::StyleProperties*, WebCore::Range*) OVERRIDE;
    6363   
    6464    virtual bool shouldMoveRangeAfterDelete(WebCore::Range*, WebCore::Range* rangeToBeReplaced) OVERRIDE;
  • trunk/Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm

    r159001 r159856  
    6464#import <WebCore/Settings.h>
    6565#import <WebCore/SpellChecker.h>
    66 #import <WebCore/StylePropertySet.h>
     66#import <WebCore/StyleProperties.h>
    6767#import <WebCore/UndoStep.h>
    6868#import <WebCore/UserTypingGestureIndicator.h>
     
    245245}
    246246
    247 bool WebEditorClient::shouldApplyStyle(StylePropertySet* style, Range* range)
    248 {
    249     Ref<MutableStylePropertySet> mutableStyle(style->isMutable() ? static_cast<MutableStylePropertySet&>(*style) : style->mutableCopy());
     247bool WebEditorClient::shouldApplyStyle(StyleProperties* style, Range* range)
     248{
     249    Ref<MutableStyleProperties> mutableStyle(style->isMutable() ? static_cast<MutableStyleProperties&>(*style) : style->mutableCopy());
    250250    return [[m_webView _editingDelegateForwarder] webView:m_webView
    251251        shouldApplyStyle:kit(mutableStyle->ensureCSSStyleDeclaration()) toElementsInDOMRange:kit(range)];
  • trunk/Source/WebKit/mac/WebView/WebFrame.mm

    r158163 r159856  
    9393#import <WebCore/SecurityOrigin.h>
    9494#import <WebCore/SmartReplace.h>
    95 #import <WebCore/StylePropertySet.h>
     95#import <WebCore/StyleProperties.h>
    9696#import <WebCore/SubframeLoader.h>
    9797#import <WebCore/TextIterator.h>
     
    782782    if (!_private->coreFrame)
    783783        return nil;
    784     RefPtr<MutableStylePropertySet> typingStyle = _private->coreFrame->selection().copyTypingStyle();
     784    RefPtr<MutableStyleProperties> typingStyle = _private->coreFrame->selection().copyTypingStyle();
    785785    if (!typingStyle)
    786786        return nil;
     
    793793        return;
    794794    // FIXME: We shouldn't have to create a copy here.
    795     Ref<MutableStylePropertySet> properties(core(style)->copyProperties());
     795    Ref<MutableStyleProperties> properties(core(style)->copyProperties());
    796796    _private->coreFrame->editor().computeAndSetTypingStyle(&properties.get(), undoAction);
    797797}
  • trunk/Source/WebKit/mac/WebView/WebHTMLView.mm

    r159663 r159856  
    115115#import <WebCore/SharedBuffer.h>
    116116#import <WebCore/SimpleFontData.h>
    117 #import <WebCore/StylePropertySet.h>
     117#import <WebCore/StyleProperties.h>
    118118#import <WebCore/Text.h>
    119119#import <WebCore/TextAlternativeWithRange.h>
     
    43704370{
    43714371    if (Frame* coreFrame = core([self _frame])) {
    4372         // FIXME: We shouldn't have to make a copy here. We want callers of this function to work directly with StylePropertySet eventually.
    4373         Ref<MutableStylePropertySet> properties(core(style)->copyProperties());
     4372        // FIXME: We shouldn't have to make a copy here. We want callers of this function to work directly with StyleProperties eventually.
     4373        Ref<MutableStyleProperties> properties(core(style)->copyProperties());
    43744374        coreFrame->editor().applyStyleToSelection(&properties.get(), undoAction);
    43754375    }
     
    46744674        if (Frame* coreFrame = core([self _frame])) {
    46754675            // FIXME: We shouldn't have to make a copy here.
    4676             Ref<MutableStylePropertySet> properties(core(style)->copyProperties());
     4676            Ref<MutableStyleProperties> properties(core(style)->copyProperties());
    46774677            coreFrame->editor().applyStyle(&properties.get(), [self _undoActionFromColorPanelWithSelector:selector]);
    46784678        }
  • trunk/Source/WebKit/mac/WebView/WebView.mm

    r159460 r159856  
    174174#import <WebCore/SecurityPolicy.h>
    175175#import <WebCore/Settings.h>
    176 #import <WebCore/StylePropertySet.h>
     176#import <WebCore/StyleProperties.h>
    177177#import <WebCore/SystemVersionMac.h>
    178178#import <WebCore/TextResourceDecoder.h>
     
    59565956    if (Frame* coreFrame = core(webFrame)) {
    59575957        // FIXME: We shouldn't have to make a copy here.
    5958         Ref<MutableStylePropertySet> properties(core(style)->copyProperties());
     5958        Ref<MutableStyleProperties> properties(core(style)->copyProperties());
    59595959        coreFrame->editor().applyStyle(&properties.get());
    59605960    }
  • trunk/Source/WebKit/win/WebCoreSupport/WebEditorClient.cpp

    r155971 r159856  
    284284//{ notImplemented(); return false; }
    285285
    286 bool WebEditorClient::shouldApplyStyle(StylePropertySet* /*style*/, Range* /*toElementsInDOMRange*/)
     286bool WebEditorClient::shouldApplyStyle(StyleProperties* /*style*/, Range* /*toElementsInDOMRange*/)
    287287{ notImplemented(); return true; }
    288288
     
    290290{ notImplemented(); return true; }
    291291
    292 bool WebEditorClient::shouldChangeTypingStyle(StylePropertySet* /*currentStyle*/, StylePropertySet* /*toProposedStyle*/)
     292bool WebEditorClient::shouldChangeTypingStyle(StyleProperties* /*currentStyle*/, StyleProperties* /*toProposedStyle*/)
    293293{ notImplemented(); return false; }
    294294
  • trunk/Source/WebKit/win/WebCoreSupport/WebEditorClient.h

    r155971 r159856  
    6565
    6666    bool shouldInsertNode(WebCore::Node*, WebCore::Range* replacingRange, WebCore::EditorInsertAction);
    67     bool shouldApplyStyle(WebCore::StylePropertySet*, WebCore::Range*);
     67    bool shouldApplyStyle(WebCore::StyleProperties*, WebCore::Range*);
    6868    bool shouldMoveRangeAfterDelete(WebCore::Range*, WebCore::Range*);
    69     bool shouldChangeTypingStyle(WebCore::StylePropertySet* currentStyle, WebCore::StylePropertySet* toProposedStyle);
     69    bool shouldChangeTypingStyle(WebCore::StyleProperties* currentStyle, WebCore::StyleProperties* toProposedStyle);
    7070
    7171    void webViewDidChangeTypingStyle(WebNotification*);
  • trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp

    r157569 r159856  
    4747#include <WebCore/Page.h>
    4848#include <WebCore/SpellChecker.h>
    49 #include <WebCore/StylePropertySet.h>
     49#include <WebCore/StyleProperties.h>
    5050#include <WebCore/TextIterator.h>
    5151#include <WebCore/UndoStep.h>
     
    154154}
    155155   
    156 bool WebEditorClient::shouldApplyStyle(StylePropertySet* style, Range* range)
    157 {
    158     Ref<MutableStylePropertySet> mutableStyle(style->isMutable() ? static_cast<MutableStylePropertySet&>(*style) : style->mutableCopy());
     156bool WebEditorClient::shouldApplyStyle(StyleProperties* style, Range* range)
     157{
     158    Ref<MutableStyleProperties> mutableStyle(style->isMutable() ? static_cast<MutableStyleProperties&>(*style) : style->mutableCopy());
    159159    bool result = m_page->injectedBundleEditorClient().shouldApplyStyle(m_page, mutableStyle->ensureCSSStyleDeclaration(), range);
    160160    notImplemented();
  • trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.h

    r159724 r159856  
    5959    virtual bool shouldChangeSelectedRange(WebCore::Range* fromRange, WebCore::Range* toRange, WebCore::EAffinity, bool stillSelecting) OVERRIDE;
    6060   
    61     virtual bool shouldApplyStyle(WebCore::StylePropertySet*, WebCore::Range*) OVERRIDE;
     61    virtual bool shouldApplyStyle(WebCore::StyleProperties*, WebCore::Range*) OVERRIDE;
    6262    virtual bool shouldMoveRangeAfterDelete(WebCore::Range*, WebCore::Range*) OVERRIDE;
    6363
  • trunk/Tools/DumpRenderTree/efl/EditingCallbacks.cpp

    r125516 r159856  
    3636#include "Node.h"
    3737#include "Range.h"
    38 #include "StylePropertySet.h"
     38#include "StyleProperties.h"
    3939#include "TestRunner.h"
    4040#include "TextAffinity.h"
Note: See TracChangeset for help on using the changeset viewer.