Changeset 159856 in webkit
- Timestamp:
- Nov 28, 2013, 12:53:22 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 158 edited
- 2 moved
-
Source/WebCore/CMakeLists.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/GNUmakefile.list.am (modified) (1 diff)
-
Source/WebCore/WebCore.exp.in (modified) (8 diffs)
-
Source/WebCore/WebCore.vcxproj/WebCore.vcxproj (modified) (2 diffs)
-
Source/WebCore/WebCore.xcodeproj/project.pbxproj (modified) (9 diffs)
-
Source/WebCore/bindings/js/JSCSSStyleDeclarationCustom.cpp (modified) (1 diff)
-
Source/WebCore/bindings/scripts/CodeGeneratorCPP.pm (modified) (1 diff)
-
Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (modified) (1 diff)
-
Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm (modified) (1 diff)
-
Source/WebCore/css/CSSAllInOne.cpp (modified) (1 diff)
-
Source/WebCore/css/CSSComputedStyleDeclaration.cpp (modified) (5 diffs)
-
Source/WebCore/css/CSSComputedStyleDeclaration.h (modified) (4 diffs)
-
Source/WebCore/css/CSSFontFaceRule.cpp (modified) (1 diff)
-
Source/WebCore/css/CSSFontSelector.cpp (modified) (2 diffs)
-
Source/WebCore/css/CSSPageRule.cpp (modified) (1 diff)
-
Source/WebCore/css/CSSParser.cpp (modified) (20 diffs)
-
Source/WebCore/css/CSSParser.h (modified) (4 diffs)
-
Source/WebCore/css/CSSStyleDeclaration.h (modified) (2 diffs)
-
Source/WebCore/css/CSSStyleRule.cpp (modified) (1 diff)
-
Source/WebCore/css/DOMWindowCSS.cpp (modified) (2 diffs)
-
Source/WebCore/css/ElementRuleCollector.cpp (modified) (5 diffs)
-
Source/WebCore/css/ElementRuleCollector.h (modified) (1 diff)
-
Source/WebCore/css/FontLoader.cpp (modified) (3 diffs)
-
Source/WebCore/css/PageRuleCollector.cpp (modified) (2 diffs)
-
Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp (modified) (3 diffs)
-
Source/WebCore/css/PropertySetCSSStyleDeclaration.h (modified) (7 diffs)
-
Source/WebCore/css/StyleProperties.cpp (moved) (moved from trunk/Source/WebCore/css/StylePropertySet.cpp ) (50 diffs)
-
Source/WebCore/css/StyleProperties.h (moved) (moved from trunk/Source/WebCore/css/StylePropertySet.h ) (15 diffs)
-
Source/WebCore/css/StyleResolver.cpp (modified) (6 diffs)
-
Source/WebCore/css/StyleResolver.h (modified) (4 diffs)
-
Source/WebCore/css/StyleRule.cpp (modified) (10 diffs)
-
Source/WebCore/css/StyleRule.h (modified) (11 diffs)
-
Source/WebCore/css/StyleSheetContents.cpp (modified) (1 diff)
-
Source/WebCore/css/ViewportStyleResolver.cpp (modified) (2 diffs)
-
Source/WebCore/css/ViewportStyleResolver.h (modified) (2 diffs)
-
Source/WebCore/css/WebKitCSSFilterRule.cpp (modified) (1 diff)
-
Source/WebCore/css/WebKitCSSKeyframeRule.cpp (modified) (3 diffs)
-
Source/WebCore/css/WebKitCSSKeyframeRule.h (modified) (3 diffs)
-
Source/WebCore/css/WebKitCSSKeyframesRule.cpp (modified) (1 diff)
-
Source/WebCore/css/WebKitCSSMatrix.cpp (modified) (2 diffs)
-
Source/WebCore/css/WebKitCSSViewportRule.cpp (modified) (1 diff)
-
Source/WebCore/dom/Attr.cpp (modified) (2 diffs)
-
Source/WebCore/dom/Attr.h (modified) (2 diffs)
-
Source/WebCore/dom/Document.cpp (modified) (2 diffs)
-
Source/WebCore/dom/Element.cpp (modified) (1 diff)
-
Source/WebCore/dom/ElementData.cpp (modified) (2 diffs)
-
Source/WebCore/dom/ElementData.h (modified) (5 diffs)
-
Source/WebCore/dom/StyledElement.cpp (modified) (9 diffs)
-
Source/WebCore/dom/StyledElement.h (modified) (6 diffs)
-
Source/WebCore/editing/ApplyStyleCommand.cpp (modified) (7 diffs)
-
Source/WebCore/editing/DeleteButtonController.cpp (modified) (1 diff)
-
Source/WebCore/editing/EditingStyle.cpp (modified) (44 diffs)
-
Source/WebCore/editing/EditingStyle.h (modified) (6 diffs)
-
Source/WebCore/editing/Editor.cpp (modified) (7 diffs)
-
Source/WebCore/editing/Editor.h (modified) (4 diffs)
-
Source/WebCore/editing/EditorCommand.cpp (modified) (9 diffs)
-
Source/WebCore/editing/FrameSelection.cpp (modified) (2 diffs)
-
Source/WebCore/editing/FrameSelection.h (modified) (2 diffs)
-
Source/WebCore/editing/RemoveCSSPropertyCommand.cpp (modified) (2 diffs)
-
Source/WebCore/editing/RemoveFormatCommand.cpp (modified) (1 diff)
-
Source/WebCore/editing/ReplaceSelectionCommand.cpp (modified) (2 diffs)
-
Source/WebCore/editing/ios/EditorIOS.mm (modified) (3 diffs)
-
Source/WebCore/editing/mac/EditorMac.mm (modified) (1 diff)
-
Source/WebCore/editing/markup.cpp (modified) (7 diffs)
-
Source/WebCore/html/HTMLBRElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLBRElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLBodyElement.cpp (modified) (2 diffs)
-
Source/WebCore/html/HTMLBodyElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLDivElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLDivElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLElement.cpp (modified) (7 diffs)
-
Source/WebCore/html/HTMLElement.h (modified) (2 diffs)
-
Source/WebCore/html/HTMLEmbedElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLEmbedElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLFontElement.cpp (modified) (2 diffs)
-
Source/WebCore/html/HTMLFontElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLFrameSetElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLFrameSetElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLHRElement.cpp (modified) (2 diffs)
-
Source/WebCore/html/HTMLHRElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLIFrameElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLIFrameElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLImageElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLImageElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLInputElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLInputElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLLIElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLLIElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLMarqueeElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLMarqueeElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLOListElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLOListElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLObjectElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLObjectElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLParagraphElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLParagraphElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLPlugInElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLPlugInElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLPreElement.cpp (modified) (2 diffs)
-
Source/WebCore/html/HTMLPreElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLTableCaptionElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLTableCaptionElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLTableCellElement.cpp (modified) (2 diffs)
-
Source/WebCore/html/HTMLTableCellElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLTableColElement.cpp (modified) (2 diffs)
-
Source/WebCore/html/HTMLTableColElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLTableElement.cpp (modified) (11 diffs)
-
Source/WebCore/html/HTMLTableElement.h (modified) (4 diffs)
-
Source/WebCore/html/HTMLTablePartElement.cpp (modified) (2 diffs)
-
Source/WebCore/html/HTMLTablePartElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLTableSectionElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLTableSectionElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLTextAreaElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLTextAreaElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLUListElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLUListElement.h (modified) (1 diff)
-
Source/WebCore/html/HTMLVideoElement.cpp (modified) (1 diff)
-
Source/WebCore/html/HTMLVideoElement.h (modified) (1 diff)
-
Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp (modified) (2 diffs)
-
Source/WebCore/html/canvas/CanvasStyle.cpp (modified) (1 diff)
-
Source/WebCore/html/shadow/MediaControlElementTypes.cpp (modified) (2 diffs)
-
Source/WebCore/html/shadow/MeterShadowElement.cpp (modified) (1 diff)
-
Source/WebCore/inspector/InspectorCSSAgent.cpp (modified) (2 diffs)
-
Source/WebCore/inspector/InspectorDOMAgent.cpp (modified) (1 diff)
-
Source/WebCore/inspector/InspectorStyleSheet.cpp (modified) (3 diffs)
-
Source/WebCore/loader/EmptyClients.h (modified) (1 diff)
-
Source/WebCore/mathml/MathMLElement.cpp (modified) (1 diff)
-
Source/WebCore/mathml/MathMLElement.h (modified) (1 diff)
-
Source/WebCore/page/DragController.cpp (modified) (2 diffs)
-
Source/WebCore/page/EditorClient.h (modified) (2 diffs)
-
Source/WebCore/page/Frame.cpp (modified) (1 diff)
-
Source/WebCore/page/PageSerializer.cpp (modified) (2 diffs)
-
Source/WebCore/page/PageSerializer.h (modified) (2 diffs)
-
Source/WebCore/rendering/RenderLayer.cpp (modified) (1 diff)
-
Source/WebCore/rendering/RenderTableCell.cpp (modified) (1 diff)
-
Source/WebCore/rendering/RenderTreeAsText.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGAnimateElement.cpp (modified) (1 diff)
-
Source/WebCore/svg/SVGElement.cpp (modified) (4 diffs)
-
Source/WebCore/svg/SVGElement.h (modified) (2 diffs)
-
Source/WebCore/svg/SVGElementRareData.h (modified) (3 diffs)
-
Source/WebCore/svg/SVGFontFaceElement.cpp (modified) (2 diffs)
-
Source/WebCore/svg/SVGImageElement.cpp (modified) (1 diff)
-
Source/WebCore/svg/SVGImageElement.h (modified) (1 diff)
-
Source/WebCore/svg/SVGTextContentElement.cpp (modified) (1 diff)
-
Source/WebCore/svg/SVGTextContentElement.h (modified) (1 diff)
-
Source/WebKit/efl/WebCoreSupport/EditorClientEfl.cpp (modified) (1 diff)
-
Source/WebKit/efl/WebCoreSupport/EditorClientEfl.h (modified) (2 diffs)
-
Source/WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp (modified) (2 diffs)
-
Source/WebKit/gtk/WebCoreSupport/EditorClientGtk.h (modified) (1 diff)
-
Source/WebKit/mac/WebCoreSupport/WebEditorClient.h (modified) (1 diff)
-
Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm (modified) (2 diffs)
-
Source/WebKit/mac/WebView/WebFrame.mm (modified) (3 diffs)
-
Source/WebKit/mac/WebView/WebHTMLView.mm (modified) (3 diffs)
-
Source/WebKit/mac/WebView/WebView.mm (modified) (2 diffs)
-
Source/WebKit/win/WebCoreSupport/WebEditorClient.cpp (modified) (2 diffs)
-
Source/WebKit/win/WebCoreSupport/WebEditorClient.h (modified) (1 diff)
-
Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp (modified) (2 diffs)
-
Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.h (modified) (1 diff)
-
Tools/DumpRenderTree/efl/EditingCallbacks.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/CMakeLists.txt
r159827 r159856 1088 1088 css/StyleInvalidationAnalysis.cpp 1089 1089 css/StyleMedia.cpp 1090 css/StylePropert ySet.cpp1090 css/StyleProperties.cpp 1091 1091 css/StylePropertyShorthand.cpp 1092 1092 css/StyleResolver.cpp -
trunk/Source/WebCore/ChangeLog
r159854 r159856 1 2013-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 1 10 2013-11-28 Thiago de Barros Lacerda <thiago.lacerda@openbossa.org> 2 11 -
trunk/Source/WebCore/GNUmakefile.list.am
r159842 r159856 2675 2675 Source/WebCore/css/StyleMedia.cpp \ 2676 2676 Source/WebCore/css/StyleMedia.h \ 2677 Source/WebCore/css/StylePropert ySet.cpp \2678 Source/WebCore/css/StylePropert ySet.h \2677 Source/WebCore/css/StyleProperties.cpp \ 2678 Source/WebCore/css/StyleProperties.h \ 2679 2679 Source/WebCore/css/StylePropertyShorthand.cpp \ 2680 2680 Source/WebCore/css/StylePropertyShorthand.h \ -
trunk/Source/WebCore/WebCore.exp.in
r159679 r159856 824 824 __ZN7WebCore22HTMLPlugInImageElement24restartSnapshottedPlugInEv 825 825 __ZN7WebCore22HTMLPlugInImageElement29setIsPrimarySnapshottedPlugInEb 826 __ZN7WebCore22MutableStyleProperties25ensureCSSStyleDeclarationEv 827 __ZN7WebCore22MutableStylePropertiesD1Ev 826 828 __ZN7WebCore22RuntimeEnabledFeatures14sharedFeaturesEv 827 829 __ZN7WebCore22ScriptExecutionContext26canSuspendActiveDOMObjectsEv … … 848 850 __ZN7WebCore23AuthenticationChallenge23setAuthenticationClientEPNS_20AuthenticationClientE 849 851 __ZN7WebCore23AuthenticationChallengeC1ERKNS_15ProtectionSpaceERKNS_10CredentialEjRKNS_16ResourceResponseERKNS_13ResourceErrorE 850 __ZN7WebCore23MutableStylePropertySet25ensureCSSStyleDeclarationEv851 __ZN7WebCore23MutableStylePropertySetD1Ev852 852 __ZN7WebCore23SynchronousLoaderClient24platformBadResponseErrorEv 853 853 __ZN7WebCore23dataForURLComponentTypeEP5NSURLl … … 866 866 __ZN7WebCore24FrameDestructionObserverC2EPNS_5FrameE 867 867 __ZN7WebCore24FrameDestructionObserverD2Ev 868 __ZN7WebCore24ImmutableStylePropertiesD1Ev 868 869 __ZN7WebCore24ReferenceFilterOperationC1ERKN3WTF6StringES4_NS_15FilterOperation13OperationTypeE 869 870 __ZN7WebCore24createFragmentFromMarkupERNS_8DocumentERKN3WTF6StringES5_NS_19ParserContentPolicyE … … 873 874 __ZN7WebCore24notifyHistoryItemChangedE 874 875 __ZN7WebCore24pathByAppendingComponentERKN3WTF6StringES3_ 875 __ZN7WebCore25ImmutableStylePropertySetD1Ev876 876 __ZN7WebCore25addLanguageChangeObserverEPvPFvS0_E 877 877 __ZN7WebCore25computeViewportAttributesENS_17ViewportArgumentsEiiifNS_7IntSizeE … … 1028 1028 __ZN7WebCore6Chrome16setStatusbarTextEPNS_5FrameERKN3WTF6StringE 1029 1029 __ZN7WebCore6Chrome5printEPNS_5FrameE 1030 __ZN7WebCore6Editor10applyStyleEPNS_1 6StylePropertySetENS_10EditActionE1030 __ZN7WebCore6Editor10applyStyleEPNS_15StylePropertiesENS_10EditActionE 1031 1031 __ZN7WebCore6Editor10findStringERKN3WTF6StringEj 1032 1032 __ZN7WebCore6Editor10insertTextERKN3WTF6StringEPNS_5EventE … … 1045 1045 __ZN7WebCore6Editor19deleteWithDirectionENS_18SelectionDirectionENS_15TextGranularityEbb 1046 1046 __ZN7WebCore6Editor19insertUnorderedListEv 1047 __ZN7WebCore6Editor21applyStyleToSelectionEPNS_1 6StylePropertySetENS_10EditActionE1047 __ZN7WebCore6Editor21applyStyleToSelectionEPNS_15StylePropertiesENS_10EditActionE 1048 1048 __ZN7WebCore6Editor23setBaseWritingDirectionE16WritingDirection 1049 __ZN7WebCore6Editor24computeAndSetTypingStyleEPNS_1 6StylePropertySetENS_10EditActionE1049 __ZN7WebCore6Editor24computeAndSetTypingStyleEPNS_15StylePropertiesENS_10EditActionE 1050 1050 __ZN7WebCore6Editor24isSelectionUngrammaticalEv 1051 1051 __ZN7WebCore6Editor24replaceSelectionWithTextERKN3WTF6StringEbb … … 1556 1556 __ZNK7WebCore15ResourceRequest12cfURLRequestENS_20HTTPBodyUpdatePolicyE 1557 1557 __ZNK7WebCore15ResourceRequest12nsURLRequestENS_20HTTPBodyUpdatePolicyE 1558 __ZNK7WebCore15StyleProperties11mutableCopyEv 1558 1559 __ZNK7WebCore15VisiblePosition14characterAfterEv 1559 1560 __ZNK7WebCore15VisiblePosition14localCaretRectERPNS_12RenderObjectE … … 1571 1572 __ZNK7WebCore16ResourceResponse13nsURLResponseEv 1572 1573 __ZNK7WebCore16ResourceResponse16certificateChainEv 1573 __ZNK7WebCore16StylePropertySet11mutableCopyEv1574 1574 __ZNK7WebCore16VisibleSelection17isContentEditableEv 1575 1575 __ZNK7WebCore16VisibleSelection17toNormalizedRangeEv -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
r159827 r159856 9410 9410 <ClCompile Include="..\css\StyleInvalidationAnalysis.cpp" /> 9411 9411 <ClCompile Include="..\css\StyleMedia.cpp" /> 9412 <ClCompile Include="..\css\StylePropert ySet.cpp">9412 <ClCompile Include="..\css\StyleProperties.cpp"> 9413 9413 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</ExcludedFromBuild> 9414 9414 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</ExcludedFromBuild> … … 19785 19785 <ClInclude Include="..\css\StyleInvalidationAnalysis.h" /> 19786 19786 <ClInclude Include="..\css\StyleMedia.h" /> 19787 <ClInclude Include="..\css\StylePropert ySet.h" />19787 <ClInclude Include="..\css\StyleProperties.h" /> 19788 19788 <ClInclude Include="..\css\StylePropertyShorthand.h" /> 19789 19789 <ClInclude Include="..\css\StyleResolver.h" /> -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r159842 r159856 184 184 076970871463AD8700F502CF /* TextTrackList.h in Headers */ = {isa = PBXBuildFile; fileRef = 076970851463AD8700F502CF /* TextTrackList.h */; }; 185 185 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 */; }; 186 188 0779BF0D18453168000B6AE7 /* HTMLMediaElementMediaStream.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 0779BF0A18453168000B6AE7 /* HTMLMediaElementMediaStream.cpp */; }; 187 189 0779BF0E18453168000B6AE7 /* HTMLMediaElementMediaStream.h in Headers */ = {isa = PBXBuildFile; fileRef = 0779BF0B18453168000B6AE7 /* HTMLMediaElementMediaStream.h */; }; … … 191 193 07846343145B151A00A58DF1 /* JSTrackEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = 07846341145B151A00A58DF1 /* JSTrackEvent.h */; }; 192 194 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 */; };195 195 078E08FE17D14CEE00420AA1 /* MediaConstraintsImpl.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221B4A17CEC32700848E51 /* MediaConstraintsImpl.cpp */; }; 196 196 078E08FF17D14CEE00420AA1 /* MediaStream.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 07221B4C17CEC32700848E51 /* MediaStream.cpp */; }; … … 3654 3654 A80E6D0C0A1989CA007FB8C5 /* CSSStyleRule.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6CE20A1989CA007FB8C5 /* CSSStyleRule.h */; }; 3655 3655 A80E6D0D0A1989CA007FB8C5 /* CSSRule.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6CE30A1989CA007FB8C5 /* CSSRule.h */; settings = {ATTRIBUTES = (Private, ); }; }; 3656 A80E6DFB0A199067007FB8C5 /* StylePropert ySet.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A80E6DF90A199067007FB8C5 /* StylePropertySet.cpp */; };3657 A80E6DFC0A199067007FB8C5 /* StylePropert ySet.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, ); }; }; 3658 3658 A80E6E0F0A19911C007FB8C5 /* CSSStyleDeclaration.h in Headers */ = {isa = PBXBuildFile; fileRef = A80E6E0D0A19911C007FB8C5 /* CSSStyleDeclaration.h */; settings = {ATTRIBUTES = (Private, ); }; }; 3659 3659 A80E734F0A199C77007FB8C5 /* CSSSelector.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A80E73480A199C77007FB8C5 /* CSSSelector.cpp */; }; … … 6808 6808 076F0D0912B8192700C26AA4 /* MediaPlayerPrivateAVFoundation.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MediaPlayerPrivateAVFoundation.cpp; sourceTree = "<group>"; }; 6809 6809 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>"; }; 6810 6812 0779BF0A18453168000B6AE7 /* HTMLMediaElementMediaStream.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HTMLMediaElementMediaStream.cpp; sourceTree = "<group>"; }; 6811 6813 0779BF0B18453168000B6AE7 /* HTMLMediaElementMediaStream.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLMediaElementMediaStream.h; sourceTree = "<group>"; }; … … 6813 6815 0783228218013ED700999E0C /* MediaStreamAudioSource.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MediaStreamAudioSource.cpp; sourceTree = "<group>"; }; 6814 6816 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>"; };6817 6817 07846340145B151A00A58DF1 /* JSTrackEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSTrackEvent.cpp; sourceTree = "<group>"; }; 6818 6818 07846341145B151A00A58DF1 /* JSTrackEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSTrackEvent.h; sourceTree = "<group>"; }; … … 10469 10469 A80E6CE20A1989CA007FB8C5 /* CSSStyleRule.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CSSStyleRule.h; sourceTree = "<group>"; }; 10470 10470 A80E6CE30A1989CA007FB8C5 /* CSSRule.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CSSRule.h; sourceTree = "<group>"; }; 10471 A80E6DF90A199067007FB8C5 /* StylePropert ySet.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = StylePropertySet.cpp; sourceTree = "<group>"; };10472 A80E6DFA0A199067007FB8C5 /* StylePropert ySet.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>"; }; 10473 10473 A80E6E0D0A19911C007FB8C5 /* CSSStyleDeclaration.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = CSSStyleDeclaration.h; sourceTree = "<group>"; }; 10474 10474 A80E73480A199C77007FB8C5 /* CSSSelector.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = CSSSelector.cpp; sourceTree = "<group>"; }; … … 20887 20887 0FF5026F102BA96A0066F39A /* StyleMedia.h */, 20888 20888 0FF50270102BA96A0066F39A /* StyleMedia.idl */, 20889 A80E6DF90A199067007FB8C5 /* StylePropert ySet.cpp */,20890 A80E6DFA0A199067007FB8C5 /* StylePropert ySet.h */,20889 A80E6DF90A199067007FB8C5 /* StyleProperties.cpp */, 20890 A80E6DFA0A199067007FB8C5 /* StyleProperties.h */, 20891 20891 E1B25104152A0BAF0069B779 /* StylePropertyShorthand.cpp */, 20892 20892 E1B25105152A0BAF0069B779 /* StylePropertyShorthand.h */, … … 24635 24635 0FF50272102BA96A0066F39A /* StyleMedia.h in Headers */, 24636 24636 BC5EB74E0E81E06700B25965 /* StyleMultiColData.h in Headers */, 24637 A80E6DFC0A199067007FB8C5 /* StylePropert ySet.h in Headers */,24637 A80E6DFC0A199067007FB8C5 /* StyleProperties.h in Headers */, 24638 24638 E1B25107152A0BB00069B779 /* StylePropertyShorthand.h in Headers */, 24639 24639 BC2272E40E82EE9B00E7F975 /* StyleRareInheritedData.h in Headers */, … … 27850 27850 0FF50271102BA96A0066F39A /* StyleMedia.cpp in Sources */, 27851 27851 BC5EB74D0E81E06700B25965 /* StyleMultiColData.cpp in Sources */, 27852 A80E6DFB0A199067007FB8C5 /* StylePropert ySet.cpp in Sources */,27852 A80E6DFB0A199067007FB8C5 /* StyleProperties.cpp in Sources */, 27853 27853 E1B25106152A0BAF0069B779 /* StylePropertyShorthand.cpp in Sources */, 27854 27854 BC2272E30E82EE9B00E7F975 /* StyleRareInheritedData.cpp in Sources */, -
trunk/Source/WebCore/bindings/js/JSCSSStyleDeclarationCustom.cpp
r157971 r159856 36 36 #include "RuntimeEnabledFeatures.h" 37 37 #include "Settings.h" 38 #include "StylePropert ySet.h"38 #include "StyleProperties.h" 39 39 #include <runtime/StringPrototype.h> 40 40 #include <wtf/ASCIICType.h> -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorCPP.pm
r156550 r159856 317 317 318 318 $implIncludes{"Node.h"} = 1 if $type eq "NodeList"; 319 $implIncludes{"StylePropert ySet.h"} = 1 if $type eq "CSSStyleDeclaration";319 $implIncludes{"StyleProperties.h"} = 1 if $type eq "CSSStyleDeclaration"; 320 320 321 321 # Default, include the same named file (the implementation) and the same name prefixed with "WebDOM". -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r159648 r159856 3479 3479 3480 3480 if ($type eq "CSSStyleDeclaration") { 3481 AddToImplIncludes("StylePropert ySet.h", $conditional);3481 AddToImplIncludes("StyleProperties.h", $conditional); 3482 3482 } 3483 3483 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorObjC.pm
r156550 r159856 678 678 # FIXME: won't compile without these 679 679 $implIncludes{"CSSImportRule.h"} = 1 if $type eq "CSSRule"; 680 $implIncludes{"StylePropert ySet.h"} = 1 if $type eq "CSSStyleDeclaration";680 $implIncludes{"StyleProperties.h"} = 1 if $type eq "CSSStyleDeclaration"; 681 681 $implIncludes{"NameNodeList.h"} = 1 if $type eq "NodeList"; 682 682 -
trunk/Source/WebCore/css/CSSAllInOne.cpp
r154391 r159856 82 82 #include "SelectorCheckerFastPath.cpp" 83 83 #include "SelectorFilter.cpp" 84 #include "StylePropert ySet.cpp"84 #include "StyleProperties.cpp" 85 85 #include "StylePropertyShorthand.cpp" 86 86 #include "StyleResolver.cpp" -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r159842 r159856 60 60 #include "RenderView.h" 61 61 #include "StyleInheritedData.h" 62 #include "StylePropert ySet.h"62 #include "StyleProperties.h" 63 63 #include "StylePropertyShorthand.h" 64 64 #include "StyleResolver.h" … … 1710 1710 } 1711 1711 1712 PassRef<MutableStylePropert ySet> CSSComputedStyleDeclaration::copyProperties() const1712 PassRef<MutableStyleProperties> CSSComputedStyleDeclaration::copyProperties() const 1713 1713 { 1714 1714 return ComputedStyleExtractor(m_node, m_allowVisitedStyle, m_pseudoElementSpecifier).copyProperties(); … … 3181 3181 } 3182 3182 3183 PassRef<MutableStylePropert ySet> ComputedStyleExtractor::copyProperties() const3183 PassRef<MutableStyleProperties> ComputedStyleExtractor::copyProperties() const 3184 3184 { 3185 3185 return copyPropertiesInSet(computedProperties, numComputedProperties); … … 3234 3234 } 3235 3235 3236 PassRef<MutableStylePropert ySet> ComputedStyleExtractor::copyPropertiesInSet(const CSSPropertyID* set, unsigned length) const3236 PassRef<MutableStyleProperties> ComputedStyleExtractor::copyPropertiesInSet(const CSSPropertyID* set, unsigned length) const 3237 3237 { 3238 3238 Vector<CSSProperty, 256> list; … … 3243 3243 list.append(CSSProperty(set[i], value.release(), false)); 3244 3244 } 3245 return MutableStylePropert ySet::create(list.data(), list.size());3245 return MutableStyleProperties::create(list.data(), list.size()); 3246 3246 } 3247 3247 -
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.h
r157569 r159856 33 33 class Color; 34 34 class FilterOperations; 35 class MutableStylePropert ySet;35 class MutableStyleProperties; 36 36 class Node; 37 37 class RenderObject; … … 39 39 class SVGPaint; 40 40 class ShadowData; 41 class StylePropert ySet;41 class StyleProperties; 42 42 class StylePropertyShorthand; 43 43 … … 58 58 59 59 // Helper methods for HTML editing. 60 PassRef<MutableStylePropert ySet> copyPropertiesInSet(const CSSPropertyID* set, unsigned length) const;61 PassRef<MutableStylePropert ySet> copyProperties() const;60 PassRef<MutableStyleProperties> copyPropertiesInSet(const CSSPropertyID* set, unsigned length) const; 61 PassRef<MutableStyleProperties> copyProperties() const; 62 62 PassRefPtr<CSSPrimitiveValue> getFontSizeCSSValuePreferringKeyword() const; 63 63 bool useFixedFontDefaultSize() const; … … 125 125 virtual String getPropertyValueInternal(CSSPropertyID) OVERRIDE; 126 126 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool important, ExceptionCode&) OVERRIDE; 127 virtual PassRef<MutableStylePropert ySet> copyProperties() const OVERRIDE;127 virtual PassRef<MutableStyleProperties> copyProperties() const OVERRIDE; 128 128 129 129 PassRefPtr<CSSValue> getPropertyCSSValue(CSSPropertyID, EUpdateLayout = UpdateLayout) const; -
trunk/Source/WebCore/css/CSSFontFaceRule.cpp
r157575 r159856 24 24 25 25 #include "PropertySetCSSStyleDeclaration.h" 26 #include "StylePropert ySet.h"26 #include "StyleProperties.h" 27 27 #include "StyleRule.h" 28 28 #include <wtf/text/StringBuilder.h> -
trunk/Source/WebCore/css/CSSFontSelector.cpp
r158088 r159856 46 46 #include "Settings.h" 47 47 #include "SimpleFontData.h" 48 #include "StylePropert ySet.h"48 #include "StyleProperties.h" 49 49 #include "StyleResolver.h" 50 50 #include "StyleRule.h" … … 91 91 { 92 92 // Obtain the font-family property and the src property. Both must be defined. 93 const StylePropert ySet& style = fontFaceRule->properties();93 const StyleProperties& style = fontFaceRule->properties(); 94 94 RefPtr<CSSValue> fontFamily = style.getPropertyCSSValue(CSSPropertyFontFamily); 95 95 RefPtr<CSSValue> src = style.getPropertyCSSValue(CSSPropertySrc); -
trunk/Source/WebCore/css/CSSPageRule.cpp
r157575 r159856 28 28 #include "Document.h" 29 29 #include "PropertySetCSSStyleDeclaration.h" 30 #include "StylePropert ySet.h"30 #include "StyleProperties.h" 31 31 #include "StyleRule.h" 32 32 #include <wtf/Vector.h> -
trunk/Source/WebCore/css/CSSParser.cpp
r159842 r159856 75 75 #include "SVGParserUtilities.h" 76 76 #include "Settings.h" 77 #include "StylePropert ySet.h"77 #include "StyleProperties.h" 78 78 #include "StylePropertyShorthand.h" 79 79 #include "StyleRule.h" … … 508 508 } 509 509 510 static bool parseColorValue(MutableStylePropert ySet* declaration, CSSPropertyID propertyId, const String& string, bool important, CSSParserMode cssParserMode)510 static bool parseColorValue(MutableStyleProperties* declaration, CSSPropertyID propertyId, const String& string, bool important, CSSParserMode cssParserMode) 511 511 { 512 512 ASSERT(!string.isEmpty()); … … 606 606 } 607 607 608 static bool parseSimpleLengthValue(MutableStylePropert ySet* declaration, CSSPropertyID propertyId, const String& string, bool important, CSSParserMode cssParserMode)608 static bool parseSimpleLengthValue(MutableStyleProperties* declaration, CSSPropertyID propertyId, const String& string, bool important, CSSParserMode cssParserMode) 609 609 { 610 610 ASSERT(!string.isEmpty()); … … 1171 1171 } 1172 1172 1173 static bool parseKeywordValue(MutableStylePropert ySet* declaration, CSSPropertyID propertyId, const String& string, bool important, const CSSParserContext& parserContext)1173 static bool parseKeywordValue(MutableStyleProperties* declaration, CSSPropertyID propertyId, const String& string, bool important, const CSSParserContext& parserContext) 1174 1174 { 1175 1175 ASSERT(!string.isEmpty()); … … 1228 1228 } 1229 1229 1230 static bool parseTranslateTransformValue(MutableStylePropert ySet* properties, CSSPropertyID propertyID, const String& string, bool important)1230 static bool parseTranslateTransformValue(MutableStyleProperties* properties, CSSPropertyID propertyID, const String& string, bool important) 1231 1231 { 1232 1232 if (propertyID != CSSPropertyWebkitTransform) … … 1279 1279 if (string.isEmpty()) 1280 1280 return 0; 1281 RefPtr<MutableStylePropert ySet> dummyStyle = MutableStylePropertySet::create();1281 RefPtr<MutableStyleProperties> dummyStyle = MutableStyleProperties::create(); 1282 1282 if (!parseValue(dummyStyle.get(), CSSPropertyFontFamily, string, false, CSSQuirksMode, 0)) 1283 1283 return 0; … … 1289 1289 } 1290 1290 1291 bool CSSParser::parseValue(MutableStylePropert ySet* declaration, CSSPropertyID propertyID, const String& string, bool important, CSSParserMode cssParserMode, StyleSheetContents* contextStyleSheet)1291 bool CSSParser::parseValue(MutableStyleProperties* declaration, CSSPropertyID propertyID, const String& string, bool important, CSSParserMode cssParserMode, StyleSheetContents* contextStyleSheet) 1292 1292 { 1293 1293 ASSERT(!string.isEmpty()); … … 1312 1312 } 1313 1313 1314 bool CSSParser::parseValue(MutableStylePropert ySet* declaration, CSSPropertyID propertyID, const String& string, bool important, StyleSheetContents* contextStyleSheet)1314 bool CSSParser::parseValue(MutableStyleProperties* declaration, CSSPropertyID propertyID, const String& string, bool important, StyleSheetContents* contextStyleSheet) 1315 1315 { 1316 1316 setStyleSheet(contextStyleSheet); … … 1398 1398 } 1399 1399 1400 PassRef<ImmutableStylePropert ySet> CSSParser::parseInlineStyleDeclaration(const String& string, Element* element)1400 PassRef<ImmutableStyleProperties> CSSParser::parseInlineStyleDeclaration(const String& string, Element* element) 1401 1401 { 1402 1402 CSSParserContext context = element->document().elementSheet().contents().parserContext(); … … 1405 1405 } 1406 1406 1407 PassRef<ImmutableStylePropert ySet> CSSParser::parseDeclaration(const String& string, StyleSheetContents* contextStyleSheet)1407 PassRef<ImmutableStyleProperties> CSSParser::parseDeclaration(const String& string, StyleSheetContents* contextStyleSheet) 1408 1408 { 1409 1409 setStyleSheet(contextStyleSheet); … … 1416 1416 deleteFontFaceOnlyValues(); 1417 1417 1418 PassRef<ImmutableStylePropert ySet> style = createStylePropertySet();1418 PassRef<ImmutableStyleProperties> style = createStyleProperties(); 1419 1419 clearProperties(); 1420 1420 return style; … … 1422 1422 1423 1423 1424 bool CSSParser::parseDeclaration(MutableStylePropert ySet* declaration, const String& string, PassRefPtr<CSSRuleSourceData> prpRuleSourceData, StyleSheetContents* contextStyleSheet)1424 bool CSSParser::parseDeclaration(MutableStyleProperties* declaration, const String& string, PassRefPtr<CSSRuleSourceData> prpRuleSourceData, StyleSheetContents* contextStyleSheet) 1425 1425 { 1426 1426 // Length of the "@-webkit-decls{" prefix. … … 1495 1495 } 1496 1496 1497 PassRef<ImmutableStylePropert ySet> CSSParser::createStylePropertySet()1497 PassRef<ImmutableStyleProperties> CSSParser::createStyleProperties() 1498 1498 { 1499 1499 BitArray<numCSSProperties> seenProperties; … … 1507 1507 results.remove(0, unusedEntries); 1508 1508 1509 return ImmutableStylePropert ySet::create(results.data(), results.size(), m_context.mode);1509 return ImmutableStyleProperties::create(results.data(), results.size(), m_context.mode); 1510 1510 } 1511 1511 … … 9486 9486 PassRefPtr<StyleRuleBase> CSSParser::createFilterRule(const CSSParserString& filterName) 9487 9487 { 9488 RefPtr<StyleRuleFilter> rule = StyleRuleFilter::create(filterName, createStylePropert ySet());9488 RefPtr<StyleRuleFilter> rule = StyleRuleFilter::create(filterName, createStyleProperties()); 9489 9489 clearProperties(); 9490 9490 processAndAddNewRuleToSourceTreeIfNeeded(); … … 11903 11903 if (m_hasFontFaceOnlyValues) 11904 11904 deleteFontFaceOnlyValues(); 11905 rule = StyleRule::create(m_lastSelectorLineNumber, createStylePropert ySet());11905 rule = StyleRule::create(m_lastSelectorLineNumber, createStyleProperties()); 11906 11906 rule->parserAdoptSelectorVector(*selectors); 11907 11907 processAndAddNewRuleToSourceTreeIfNeeded(); … … 11929 11929 } 11930 11930 } 11931 RefPtr<StyleRuleFontFace> rule = StyleRuleFontFace::create(createStylePropert ySet());11931 RefPtr<StyleRuleFontFace> rule = StyleRuleFontFace::create(createStyleProperties()); 11932 11932 clearProperties(); 11933 11933 processAndAddNewRuleToSourceTreeIfNeeded(); … … 12035 12035 RefPtr<StyleRulePage> rule; 12036 12036 if (pageSelector) { 12037 rule = StyleRulePage::create(createStylePropert ySet());12037 rule = StyleRulePage::create(createStyleProperties()); 12038 12038 Vector<OwnPtr<CSSParserSelector>> selectorVector; 12039 12039 selectorVector.append(pageSelector); … … 12140 12140 } 12141 12141 12142 RefPtr<StyleKeyframe> keyframe = StyleKeyframe::create(createStylePropert ySet());12142 RefPtr<StyleKeyframe> keyframe = StyleKeyframe::create(createStyleProperties()); 12143 12143 keyframe->setKeyText(keyString.toString()); 12144 12144 … … 12357 12357 m_allowImportRules = m_allowNamespaceDeclarations = false; 12358 12358 12359 RefPtr<StyleRuleViewport> rule = StyleRuleViewport::create(createStylePropert ySet());12359 RefPtr<StyleRuleViewport> rule = StyleRuleViewport::create(createStyleProperties()); 12360 12360 clearProperties(); 12361 12361 -
trunk/Source/WebCore/css/CSSParser.h
r159842 r159856 55 55 class Document; 56 56 class Element; 57 class ImmutableStylePropert ySet;57 class ImmutableStyleProperties; 58 58 class MediaQueryExp; 59 59 class MediaQuerySet; 60 class MutableStylePropert ySet;60 class MutableStyleProperties; 61 61 class StyleKeyframe; 62 62 class StylePropertyShorthand; … … 94 94 bool parseSupportsCondition(const String&); 95 95 #endif 96 static bool parseValue(MutableStylePropert ySet*, CSSPropertyID, const String&, bool important, CSSParserMode, StyleSheetContents*);96 static bool parseValue(MutableStyleProperties*, CSSPropertyID, const String&, bool important, CSSParserMode, StyleSheetContents*); 97 97 static bool parseColor(RGBA32& color, const String&, bool strict = false); 98 98 static bool parseSystemColor(RGBA32& color, const String&, Document*); 99 99 static PassRefPtr<CSSValueList> parseFontFaceValue(const AtomicString&); 100 100 PassRefPtr<CSSPrimitiveValue> parseValidPrimitive(CSSValueID ident, CSSParserValue*); 101 bool parseDeclaration(MutableStylePropert ySet*, const String&, PassRefPtr<CSSRuleSourceData>, StyleSheetContents* contextStyleSheet);102 static PassRef<ImmutableStylePropert ySet> parseInlineStyleDeclaration(const String&, Element*);101 bool parseDeclaration(MutableStyleProperties*, const String&, PassRefPtr<CSSRuleSourceData>, StyleSheetContents* contextStyleSheet); 102 static PassRef<ImmutableStyleProperties> parseInlineStyleDeclaration(const String&, Element*); 103 103 PassOwnPtr<MediaQuery> parseMediaQuery(const String&); 104 104 … … 354 354 void clearProperties(); 355 355 356 PassRef<ImmutableStylePropert ySet> createStylePropertySet();356 PassRef<ImmutableStyleProperties> createStyleProperties(); 357 357 358 358 CSSParserContext m_context; … … 527 527 bool parseGeneratedImage(CSSParserValueList*, RefPtr<CSSValue>&); 528 528 529 bool parseValue(MutableStylePropert ySet*, CSSPropertyID, const String&, bool important, StyleSheetContents* contextStyleSheet);530 PassRef<ImmutableStylePropert ySet> parseDeclaration(const String&, StyleSheetContents* contextStyleSheet);529 bool parseValue(MutableStyleProperties*, CSSPropertyID, const String&, bool important, StyleSheetContents* contextStyleSheet); 530 PassRef<ImmutableStyleProperties> parseDeclaration(const String&, StyleSheetContents* contextStyleSheet); 531 531 532 532 enum SizeParameterType { -
trunk/Source/WebCore/css/CSSStyleDeclaration.h
r157569 r159856 32 32 class CSSStyleSheet; 33 33 class CSSValue; 34 class MutableStylePropert ySet;35 class StylePropert ySet;34 class MutableStyleProperties; 35 class StyleProperties; 36 36 class StyledElement; 37 37 … … 66 66 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool important, ExceptionCode&) = 0; 67 67 68 virtual PassRef<MutableStylePropert ySet> copyProperties() const = 0;68 virtual PassRef<MutableStyleProperties> copyProperties() const = 0; 69 69 70 70 virtual CSSStyleSheet* parentStyleSheet() const { return 0; } -
trunk/Source/WebCore/css/CSSStyleRule.cpp
r157575 r159856 29 29 #include "PropertySetCSSStyleDeclaration.h" 30 30 #include "RuleSet.h" 31 #include "StylePropert ySet.h"31 #include "StyleProperties.h" 32 32 #include "StyleRule.h" 33 33 #include <wtf/text/StringBuilder.h> -
trunk/Source/WebCore/css/DOMWindowCSS.cpp
r148395 r159856 34 34 35 35 #include "CSSParser.h" 36 #include "StylePropert ySet.h"36 #include "StyleProperties.h" 37 37 #include <wtf/text/WTFString.h> 38 38 … … 74 74 return false; 75 75 76 RefPtr<MutableStylePropert ySet> dummyStyle = MutableStylePropertySet::create();76 RefPtr<MutableStyleProperties> dummyStyle = MutableStyleProperties::create(); 77 77 return CSSParser::parseValue(dummyStyle.get(), propertyID, normalizedValue, false, CSSStrictMode, 0); 78 78 } -
trunk/Source/WebCore/css/ElementRuleCollector.cpp
r157653 r159856 41 41 #include "SVGElement.h" 42 42 #include "SelectorCheckerFastPath.h" 43 #include "StylePropert ySet.h"43 #include "StyleProperties.h" 44 44 #include "StyledElement.h" 45 45 … … 48 48 namespace WebCore { 49 49 50 static const StylePropert ySet& leftToRightDeclaration()51 { 52 static NeverDestroyed<Ref<MutableStylePropert ySet>> leftToRightDecl(MutableStylePropertySet::create());50 static const StyleProperties& leftToRightDeclaration() 51 { 52 static NeverDestroyed<Ref<MutableStyleProperties>> leftToRightDecl(MutableStyleProperties::create()); 53 53 if (leftToRightDecl.get()->isEmpty()) 54 54 leftToRightDecl.get()->setProperty(CSSPropertyDirection, CSSValueLtr); … … 56 56 } 57 57 58 static const StylePropert ySet& rightToLeftDeclaration()59 { 60 static NeverDestroyed<Ref<MutableStylePropert ySet>> rightToLeftDecl(MutableStylePropertySet::create());58 static const StyleProperties& rightToLeftDeclaration() 59 { 60 static NeverDestroyed<Ref<MutableStyleProperties>> rightToLeftDecl(MutableStyleProperties::create()); 61 61 if (rightToLeftDecl.get()->isEmpty()) 62 62 rightToLeftDecl.get()->setProperty(CSSPropertyDirection, CSSValueRtl); … … 101 101 } 102 102 103 inline void ElementRuleCollector::addElementStyleProperties(const StylePropert ySet* propertySet, bool isCacheable)103 inline void ElementRuleCollector::addElementStyleProperties(const StyleProperties* propertySet, bool isCacheable) 104 104 { 105 105 if (!propertySet) … … 361 361 362 362 // If the rule has no properties to apply, then ignore it in the non-debug mode. 363 const StylePropert ySet& properties = rule->properties();363 const StyleProperties& properties = rule->properties(); 364 364 if (properties.isEmpty() && !matchRequest.includeEmptyRules) { 365 365 if (hasInspectorFrontends) -
trunk/Source/WebCore/css/ElementRuleCollector.h
r157653 r159856 74 74 private: 75 75 Document& document() { return m_state.document(); } 76 void addElementStyleProperties(const StylePropert ySet*, bool isCacheable = true);76 void addElementStyleProperties(const StyleProperties*, bool isCacheable = true); 77 77 78 78 void matchUARules(RuleSet*); -
trunk/Source/WebCore/css/FontLoader.cpp
r156241 r159856 37 37 #include "Document.h" 38 38 #include "FrameView.h" 39 #include "StylePropert ySet.h"39 #include "StyleProperties.h" 40 40 #include "StyleResolver.h" 41 41 … … 262 262 } 263 263 264 static void applyPropertyToCurrentStyle(StyleResolver* styleResolver, CSSPropertyID id, const RefPtr<StylePropert ySet>& parsedStyle)264 static void applyPropertyToCurrentStyle(StyleResolver* styleResolver, CSSPropertyID id, const RefPtr<StyleProperties>& parsedStyle) 265 265 { 266 266 styleResolver->applyPropertyToCurrentStyle(id, parsedStyle->getPropertyCSSValue(id).get()); … … 270 270 { 271 271 // Interpret fontString in the same way as the 'font' attribute of CanvasRenderingContext2D. 272 RefPtr<MutableStylePropert ySet> parsedStyle = MutableStylePropertySet::create();272 RefPtr<MutableStyleProperties> parsedStyle = MutableStyleProperties::create(); 273 273 CSSParser::parseValue(parsedStyle.get(), CSSPropertyFont, fontString, true, CSSStrictMode, 0); 274 274 if (parsedStyle->isEmpty()) -
trunk/Source/WebCore/css/PageRuleCollector.cpp
r153880 r159856 31 31 32 32 #include "CSSDefaultStyleSheets.h" 33 #include "StylePropert ySet.h"33 #include "StyleProperties.h" 34 34 #include "StyleRule.h" 35 35 … … 119 119 120 120 // If the rule has no properties to apply, then ignore it. 121 const StylePropert ySet& properties = rule->properties();121 const StyleProperties& properties = rule->properties(); 122 122 if (properties.isEmpty()) 123 123 continue; -
trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp
r158514 r159856 29 29 #include "MutationObserverInterestGroup.h" 30 30 #include "MutationRecord.h" 31 #include "StylePropert ySet.h"31 #include "StyleProperties.h" 32 32 #include "StyledElement.h" 33 33 … … 289 289 } 290 290 291 PassRef<MutableStylePropert ySet> PropertySetCSSStyleDeclaration::copyProperties() const291 PassRef<MutableStyleProperties> PropertySetCSSStyleDeclaration::copyProperties() const 292 292 { 293 293 return m_propertySet->mutableCopy(); 294 294 } 295 295 296 StyleRuleCSSStyleDeclaration::StyleRuleCSSStyleDeclaration(MutableStylePropert ySet& propertySet, CSSRule& parentRule)296 StyleRuleCSSStyleDeclaration::StyleRuleCSSStyleDeclaration(MutableStyleProperties& propertySet, CSSRule& parentRule) 297 297 : PropertySetCSSStyleDeclaration(&propertySet) 298 298 , m_refCount(1) … … 340 340 } 341 341 342 void StyleRuleCSSStyleDeclaration::reattach(MutableStylePropert ySet& propertySet)342 void StyleRuleCSSStyleDeclaration::reattach(MutableStyleProperties& propertySet) 343 343 { 344 344 m_propertySet->deref(); -
trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.h
r157653 r159856 37 37 class CSSProperty; 38 38 class CSSValue; 39 class MutableStylePropert ySet;39 class MutableStyleProperties; 40 40 class StyleSheetContents; 41 41 class StyledElement; … … 43 43 class PropertySetCSSStyleDeclaration : public CSSStyleDeclaration { 44 44 public: 45 PropertySetCSSStyleDeclaration(MutableStylePropert ySet* propertySet) : m_propertySet(propertySet) { }45 PropertySetCSSStyleDeclaration(MutableStyleProperties* propertySet) : m_propertySet(propertySet) { } 46 46 47 47 virtual StyledElement* parentElement() const { return 0; } … … 69 69 virtual void setPropertyInternal(CSSPropertyID, const String& value, bool important, ExceptionCode&) OVERRIDE; 70 70 71 virtual PassRef<MutableStylePropert ySet> copyProperties() const OVERRIDE;71 virtual PassRef<MutableStyleProperties> copyProperties() const OVERRIDE; 72 72 73 73 CSSValue* cloneAndCacheForCSSOM(CSSValue*); … … 78 78 virtual void didMutate(MutationType) { } 79 79 80 MutableStylePropert ySet* m_propertySet;80 MutableStyleProperties* m_propertySet; 81 81 OwnPtr<HashMap<CSSValue*, RefPtr<CSSValue>>> m_cssomCSSValueClones; 82 82 }; … … 85 85 { 86 86 public: 87 static PassRefPtr<StyleRuleCSSStyleDeclaration> create(MutableStylePropert ySet& propertySet, CSSRule& parentRule)87 static PassRefPtr<StyleRuleCSSStyleDeclaration> create(MutableStyleProperties& propertySet, CSSRule& parentRule) 88 88 { 89 89 return adoptRef(new StyleRuleCSSStyleDeclaration(propertySet, parentRule)); … … 96 96 virtual void deref() OVERRIDE; 97 97 98 void reattach(MutableStylePropert ySet&);98 void reattach(MutableStyleProperties&); 99 99 100 100 private: 101 StyleRuleCSSStyleDeclaration(MutableStylePropert ySet&, CSSRule&);101 StyleRuleCSSStyleDeclaration(MutableStyleProperties&, CSSRule&); 102 102 103 103 virtual CSSStyleSheet* parentStyleSheet() const OVERRIDE; … … 115 115 { 116 116 public: 117 InlineCSSStyleDeclaration(MutableStylePropert ySet* propertySet, StyledElement* parentElement)117 InlineCSSStyleDeclaration(MutableStyleProperties* propertySet, StyledElement* parentElement) 118 118 : PropertySetCSSStyleDeclaration(propertySet) 119 119 , m_parentElement(parentElement) -
trunk/Source/WebCore/css/StyleProperties.cpp
r159842 r159856 22 22 23 23 #include "config.h" 24 #include "StylePropert ySet.h"24 #include "StyleProperties.h" 25 25 26 26 #include "CSSComputedStyleDeclaration.h" … … 44 44 namespace WebCore { 45 45 46 static size_t sizeForImmutableStylePropert ySetWithPropertyCount(unsigned count)47 { 48 return sizeof(ImmutableStylePropert ySet) - sizeof(void*) + sizeof(CSSValue*) * count + sizeof(StylePropertyMetadata) * count;46 static size_t sizeForImmutableStylePropertiesWithPropertyCount(unsigned count) 47 { 48 return sizeof(ImmutableStyleProperties) - sizeof(void*) + sizeof(CSSValue*) * count + sizeof(StylePropertyMetadata) * count; 49 49 } 50 50 … … 56 56 } 57 57 58 PassRef<ImmutableStylePropert ySet> ImmutableStylePropertySet::create(const CSSProperty* properties, unsigned count, CSSParserMode cssParserMode)59 { 60 void* slot = WTF::fastMalloc(sizeForImmutableStylePropert ySetWithPropertyCount(count));61 return adoptRef(*new (NotNull, slot) ImmutableStylePropert ySet(properties, count, cssParserMode));62 } 63 64 PassRef<ImmutableStylePropert ySet> StylePropertySet::immutableCopyIfNeeded() const58 PassRef<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 64 PassRef<ImmutableStyleProperties> StyleProperties::immutableCopyIfNeeded() const 65 65 { 66 66 if (!isMutable()) 67 return static_cast<ImmutableStylePropert ySet&>(const_cast<StylePropertySet&>(*this));68 const MutableStylePropert ySet& mutableThis = static_cast<const MutableStylePropertySet&>(*this);69 return ImmutableStylePropert ySet::create(mutableThis.m_propertyVector.data(), mutableThis.m_propertyVector.size(), cssParserMode());70 } 71 72 MutableStylePropert ySet::MutableStylePropertySet(CSSParserMode cssParserMode)73 : StylePropert ySet(cssParserMode)74 { 75 } 76 77 MutableStylePropert ySet::MutableStylePropertySet(const CSSProperty* properties, unsigned length)78 : StylePropert ySet(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 72 MutableStyleProperties::MutableStyleProperties(CSSParserMode cssParserMode) 73 : StyleProperties(cssParserMode) 74 { 75 } 76 77 MutableStyleProperties::MutableStyleProperties(const CSSProperty* properties, unsigned length) 78 : StyleProperties(CSSStrictMode) 79 79 { 80 80 m_propertyVector.reserveInitialCapacity(length); … … 83 83 } 84 84 85 MutableStylePropert ySet::~MutableStylePropertySet()86 { 87 } 88 89 ImmutableStylePropert ySet::ImmutableStylePropertySet(const CSSProperty* properties, unsigned length, CSSParserMode cssParserMode)90 : StylePropert ySet(cssParserMode, length)85 MutableStyleProperties::~MutableStyleProperties() 86 { 87 } 88 89 ImmutableStyleProperties::ImmutableStyleProperties(const CSSProperty* properties, unsigned length, CSSParserMode cssParserMode) 90 : StyleProperties(cssParserMode, length) 91 91 { 92 92 StylePropertyMetadata* metadataArray = const_cast<StylePropertyMetadata*>(this->metadataArray()); … … 99 99 } 100 100 101 ImmutableStylePropert ySet::~ImmutableStylePropertySet()101 ImmutableStyleProperties::~ImmutableStyleProperties() 102 102 { 103 103 CSSValue** valueArray = const_cast<CSSValue**>(this->valueArray()); … … 106 106 } 107 107 108 MutableStylePropert ySet::MutableStylePropertySet(const StylePropertySet& other)109 : StylePropert ySet(other.cssParserMode())108 MutableStyleProperties::MutableStyleProperties(const StyleProperties& other) 109 : StyleProperties(other.cssParserMode()) 110 110 { 111 111 if (other.isMutable()) 112 m_propertyVector = static_cast<const MutableStylePropert ySet&>(other).m_propertyVector;112 m_propertyVector = static_cast<const MutableStyleProperties&>(other).m_propertyVector; 113 113 else { 114 114 m_propertyVector.reserveInitialCapacity(other.propertyCount()); … … 118 118 } 119 119 120 String StylePropert ySet::getPropertyValue(CSSPropertyID propertyID) const120 String StyleProperties::getPropertyValue(CSSPropertyID propertyID) const 121 121 { 122 122 RefPtr<CSSValue> value = getPropertyCSSValue(propertyID); … … 209 209 return get4Values(borderRadiusShorthand()); 210 210 default: 211 return String();212 } 213 } 214 215 String StylePropert ySet::borderSpacingValue(const StylePropertyShorthand& shorthand) const211 return String(); 212 } 213 } 214 215 String StyleProperties::borderSpacingValue(const StylePropertyShorthand& shorthand) const 216 216 { 217 217 RefPtr<CSSValue> horizontalValue = getPropertyCSSValue(shorthand.properties()[0]); … … 231 231 } 232 232 233 void StylePropert ySet::appendFontLonghandValueIfExplicit(CSSPropertyID propertyID, StringBuilder& result, String& commonValue) const233 void StyleProperties::appendFontLonghandValueIfExplicit(CSSPropertyID propertyID, StringBuilder& result, String& commonValue) const 234 234 { 235 235 int foundPropertyIndex = findPropertyIndex(propertyID); … … 266 266 } 267 267 268 String StylePropert ySet::fontValue() const268 String StyleProperties::fontValue() const 269 269 { 270 270 int fontSizePropertyIndex = findPropertyIndex(CSSPropertyFontSize); … … 295 295 } 296 296 297 String StylePropert ySet::get4Values(const StylePropertyShorthand& shorthand) const297 String StyleProperties::get4Values(const StylePropertyShorthand& shorthand) const 298 298 { 299 299 // Assume the properties are in the usual order top, right, bottom, left. … … 349 349 } 350 350 351 String StylePropert ySet::getLayeredShorthandValue(const StylePropertyShorthand& shorthand) const351 String StyleProperties::getLayeredShorthandValue(const StylePropertyShorthand& shorthand) const 352 352 { 353 353 StringBuilder result; … … 371 371 bool commonValueInitialized = false; 372 372 373 // Now stitch the properties together. Implicit initial values are flagged as such and373 // Now stitch the properties together. Implicit initial values are flagged as such and 374 374 // can safely be omitted. 375 375 for (size_t i = 0; i < numLayers; i++) { … … 391 391 if (i != numLayers - 1) 392 392 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. 394 394 value = 0; 395 395 } … … 486 486 } 487 487 488 String StylePropert ySet::getShorthandValue(const StylePropertyShorthand& shorthand) const488 String StyleProperties::getShorthandValue(const StylePropertyShorthand& shorthand) const 489 489 { 490 490 String commonValue; … … 516 516 517 517 // only returns a non-null value if all properties have the same, non-null value 518 String StylePropert ySet::getCommonValue(const StylePropertyShorthand& shorthand) const518 String StyleProperties::getCommonValue(const StylePropertyShorthand& shorthand) const 519 519 { 520 520 String res; … … 541 541 } 542 542 543 String StylePropert ySet::borderPropertyValue(CommonValueMode valueMode) const543 String StyleProperties::borderPropertyValue(CommonValueMode valueMode) const 544 544 { 545 545 const StylePropertyShorthand properties[3] = { borderWidthShorthand(), borderStyleShorthand(), borderColorShorthand() }; … … 569 569 } 570 570 571 PassRefPtr<CSSValue> StylePropert ySet::getPropertyCSSValue(CSSPropertyID propertyID) const571 PassRefPtr<CSSValue> StyleProperties::getPropertyCSSValue(CSSPropertyID propertyID) const 572 572 { 573 573 int foundPropertyIndex = findPropertyIndex(propertyID); … … 577 577 } 578 578 579 bool MutableStylePropert ySet::removeShorthandProperty(CSSPropertyID propertyID)579 bool MutableStyleProperties::removeShorthandProperty(CSSPropertyID propertyID) 580 580 { 581 581 StylePropertyShorthand shorthand = shorthandForProperty(propertyID); … … 593 593 } 594 594 595 bool MutableStylePropert ySet::removeProperty(CSSPropertyID propertyID, String* returnText)595 bool MutableStyleProperties::removeProperty(CSSPropertyID propertyID, String* returnText) 596 596 { 597 597 if (removeShorthandProperty(propertyID)) { … … 621 621 } 622 622 623 void MutableStylePropert ySet::removePrefixedOrUnprefixedProperty(CSSPropertyID propertyID)623 void MutableStyleProperties::removePrefixedOrUnprefixedProperty(CSSPropertyID propertyID) 624 624 { 625 625 int foundPropertyIndex = findPropertyIndex(prefixingVariantForPropertyId(propertyID)); … … 629 629 } 630 630 631 bool StylePropert ySet::propertyIsImportant(CSSPropertyID propertyID) const631 bool StyleProperties::propertyIsImportant(CSSPropertyID propertyID) const 632 632 { 633 633 int foundPropertyIndex = findPropertyIndex(propertyID); … … 646 646 } 647 647 648 String StylePropert ySet::getPropertyShorthand(CSSPropertyID propertyID) const648 String StyleProperties::getPropertyShorthand(CSSPropertyID propertyID) const 649 649 { 650 650 int foundPropertyIndex = findPropertyIndex(propertyID); … … 654 654 } 655 655 656 bool StylePropert ySet::isPropertyImplicit(CSSPropertyID propertyID) const656 bool StyleProperties::isPropertyImplicit(CSSPropertyID propertyID) const 657 657 { 658 658 int foundPropertyIndex = findPropertyIndex(propertyID); … … 662 662 } 663 663 664 bool MutableStylePropert ySet::setProperty(CSSPropertyID propertyID, const String& value, bool important, StyleSheetContents* contextStyleSheet)664 bool MutableStyleProperties::setProperty(CSSPropertyID propertyID, const String& value, bool important, StyleSheetContents* contextStyleSheet) 665 665 { 666 666 // Setting the value to an empty string just removes the property in both IE and Gecko. … … 674 674 } 675 675 676 void MutableStylePropert ySet::setProperty(CSSPropertyID propertyID, PassRefPtr<CSSValue> prpValue, bool important)676 void MutableStyleProperties::setProperty(CSSPropertyID propertyID, PassRefPtr<CSSValue> prpValue, bool important) 677 677 { 678 678 StylePropertyShorthand shorthand = shorthandForProperty(propertyID); … … 689 689 } 690 690 691 void MutableStylePropert ySet::setProperty(const CSSProperty& property, CSSProperty* slot)691 void MutableStyleProperties::setProperty(const CSSProperty& property, CSSProperty* slot) 692 692 { 693 693 if (!removeShorthandProperty(property.id())) { … … 711 711 } 712 712 713 void MutableStylePropert ySet::appendPrefixingVariantProperty(const CSSProperty& property)713 void MutableStyleProperties::appendPrefixingVariantProperty(const CSSProperty& property) 714 714 { 715 715 m_propertyVector.append(property); … … 721 721 } 722 722 723 void MutableStylePropert ySet::setPrefixingVariantProperty(const CSSProperty& property)723 void MutableStyleProperties::setPrefixingVariantProperty(const CSSProperty& property) 724 724 { 725 725 CSSPropertyID prefixingVariant = prefixingVariantForPropertyId(property.id()); … … 729 729 } 730 730 731 bool MutableStylePropert ySet::setProperty(CSSPropertyID propertyID, CSSValueID identifier, bool important)731 bool MutableStyleProperties::setProperty(CSSPropertyID propertyID, CSSValueID identifier, bool important) 732 732 { 733 733 setProperty(CSSProperty(propertyID, cssValuePool().createIdentifierValue(identifier), important)); … … 735 735 } 736 736 737 bool MutableStylePropert ySet::setProperty(CSSPropertyID propertyID, CSSPropertyID identifier, bool important)737 bool MutableStyleProperties::setProperty(CSSPropertyID propertyID, CSSPropertyID identifier, bool important) 738 738 { 739 739 setProperty(CSSProperty(propertyID, cssValuePool().createIdentifierValue(identifier), important)); … … 741 741 } 742 742 743 void MutableStylePropert ySet::parseDeclaration(const String& styleDeclaration, StyleSheetContents* contextStyleSheet)743 void MutableStyleProperties::parseDeclaration(const String& styleDeclaration, StyleSheetContents* contextStyleSheet) 744 744 { 745 745 m_propertyVector.clear(); … … 754 754 } 755 755 756 void MutableStylePropert ySet::addParsedProperties(const Vector<CSSProperty>& properties)756 void MutableStyleProperties::addParsedProperties(const Vector<CSSProperty>& properties) 757 757 { 758 758 m_propertyVector.reserveCapacity(m_propertyVector.size() + properties.size()); … … 761 761 } 762 762 763 void MutableStylePropert ySet::addParsedProperty(const CSSProperty& property)763 void MutableStyleProperties::addParsedProperty(const CSSProperty& property) 764 764 { 765 765 // Only add properties that have no !important counterpart present … … 768 768 } 769 769 770 String StylePropert ySet::asText() const770 String StyleProperties::asText() const 771 771 { 772 772 StringBuilder result; … … 1018 1018 } 1019 1019 1020 bool StylePropert ySet::hasCSSOMWrapper() const1021 { 1022 return m_isMutable && static_cast<const MutableStylePropert ySet*>(this)->m_cssomWrapper;1023 } 1024 1025 void MutableStylePropert ySet::mergeAndOverrideOnConflict(const StylePropertySet& other)1020 bool StyleProperties::hasCSSOMWrapper() const 1021 { 1022 return m_isMutable && static_cast<const MutableStyleProperties*>(this)->m_cssomWrapper; 1023 } 1024 1025 void MutableStyleProperties::mergeAndOverrideOnConflict(const StyleProperties& other) 1026 1026 { 1027 1027 unsigned size = other.propertyCount(); … … 1030 1030 } 1031 1031 1032 void StylePropert ySet::addSubresourceStyleURLs(ListHashSet<URL>& urls, StyleSheetContents* contextStyleSheet) const1032 void StyleProperties::addSubresourceStyleURLs(ListHashSet<URL>& urls, StyleSheetContents* contextStyleSheet) const 1033 1033 { 1034 1034 unsigned size = propertyCount(); … … 1037 1037 } 1038 1038 1039 bool StylePropert ySet::hasFailedOrCanceledSubresources() const1039 bool StyleProperties::hasFailedOrCanceledSubresources() const 1040 1040 { 1041 1041 unsigned size = propertyCount(); … … 1079 1079 }; 1080 1080 1081 void MutableStylePropert ySet::clear()1081 void MutableStyleProperties::clear() 1082 1082 { 1083 1083 m_propertyVector.clear(); … … 1086 1086 const unsigned numBlockProperties = WTF_ARRAY_LENGTH(blockProperties); 1087 1087 1088 PassRef<MutableStylePropert ySet> StylePropertySet::copyBlockProperties() const1088 PassRef<MutableStyleProperties> StyleProperties::copyBlockProperties() const 1089 1089 { 1090 1090 return copyPropertiesInSet(blockProperties, numBlockProperties); 1091 1091 } 1092 1092 1093 void MutableStylePropert ySet::removeBlockProperties()1093 void MutableStyleProperties::removeBlockProperties() 1094 1094 { 1095 1095 removePropertiesInSet(blockProperties, numBlockProperties); 1096 1096 } 1097 1097 1098 bool MutableStylePropert ySet::removePropertiesInSet(const CSSPropertyID* set, unsigned length)1098 bool MutableStyleProperties::removePropertiesInSet(const CSSPropertyID* set, unsigned length) 1099 1099 { 1100 1100 if (m_propertyVector.isEmpty()) … … 1125 1125 } 1126 1126 1127 int StylePropert ySet::findPropertyIndex(CSSPropertyID propertyID) const1127 int StyleProperties::findPropertyIndex(CSSPropertyID propertyID) const 1128 1128 { 1129 1129 // Convert here propertyID into an uint16_t to compare it with the metadata's m_propertyID to avoid … … 1137 1137 } 1138 1138 1139 CSSProperty* MutableStylePropert ySet::findCSSPropertyWithID(CSSPropertyID propertyID)1139 CSSProperty* MutableStyleProperties::findCSSPropertyWithID(CSSPropertyID propertyID) 1140 1140 { 1141 1141 int foundPropertyIndex = findPropertyIndex(propertyID); … … 1145 1145 } 1146 1146 1147 bool StylePropert ySet::propertyMatches(CSSPropertyID propertyID, const CSSValue* propertyValue) const1147 bool StyleProperties::propertyMatches(CSSPropertyID propertyID, const CSSValue* propertyValue) const 1148 1148 { 1149 1149 int foundPropertyIndex = findPropertyIndex(propertyID); … … 1153 1153 } 1154 1154 1155 void MutableStylePropert ySet::removeEquivalentProperties(const StylePropertySet* style)1155 void MutableStyleProperties::removeEquivalentProperties(const StyleProperties* style) 1156 1156 { 1157 1157 Vector<CSSPropertyID> propertiesToRemove; … … 1167 1167 } 1168 1168 1169 void MutableStylePropert ySet::removeEquivalentProperties(const ComputedStyleExtractor* computedStyle)1169 void MutableStyleProperties::removeEquivalentProperties(const ComputedStyleExtractor* computedStyle) 1170 1170 { 1171 1171 Vector<CSSPropertyID> propertiesToRemove; … … 1181 1181 } 1182 1182 1183 PassRef<MutableStylePropert ySet> StylePropertySet::mutableCopy() const1184 { 1185 return adoptRef(*new MutableStylePropert ySet(*this));1186 } 1187 1188 PassRef<MutableStylePropert ySet> StylePropertySet::copyPropertiesInSet(const CSSPropertyID* set, unsigned length) const1183 PassRef<MutableStyleProperties> StyleProperties::mutableCopy() const 1184 { 1185 return adoptRef(*new MutableStyleProperties(*this)); 1186 } 1187 1188 PassRef<MutableStyleProperties> StyleProperties::copyPropertiesInSet(const CSSPropertyID* set, unsigned length) const 1189 1189 { 1190 1190 Vector<CSSProperty, 256> list; … … 1195 1195 list.append(CSSProperty(set[i], value.release(), false)); 1196 1196 } 1197 return MutableStylePropert ySet::create(list.data(), list.size());1198 } 1199 1200 PropertySetCSSStyleDeclaration* MutableStylePropert ySet::cssStyleDeclaration()1197 return MutableStyleProperties::create(list.data(), list.size()); 1198 } 1199 1200 PropertySetCSSStyleDeclaration* MutableStyleProperties::cssStyleDeclaration() 1201 1201 { 1202 1202 return m_cssomWrapper.get(); 1203 1203 } 1204 1204 1205 CSSStyleDeclaration* MutableStylePropert ySet::ensureCSSStyleDeclaration()1205 CSSStyleDeclaration* MutableStyleProperties::ensureCSSStyleDeclaration() 1206 1206 { 1207 1207 if (m_cssomWrapper) { … … 1214 1214 } 1215 1215 1216 CSSStyleDeclaration* MutableStylePropert ySet::ensureInlineCSSStyleDeclaration(StyledElement* parentElement)1216 CSSStyleDeclaration* MutableStyleProperties::ensureInlineCSSStyleDeclaration(StyledElement* parentElement) 1217 1217 { 1218 1218 if (m_cssomWrapper) { … … 1224 1224 } 1225 1225 1226 unsigned StylePropert ySet::averageSizeInBytes()1226 unsigned StyleProperties::averageSizeInBytes() 1227 1227 { 1228 1228 // Please update this if the storage scheme changes so that this longer reflects the actual size. 1229 return sizeForImmutableStylePropert ySetWithPropertyCount(4);1229 return sizeForImmutableStylePropertiesWithPropertyCount(4); 1230 1230 } 1231 1231 1232 1232 // See the function above if you need to update this. 1233 struct SameSizeAsStylePropert ySet : public RefCounted<SameSizeAsStylePropertySet> {1233 struct SameSizeAsStyleProperties : public RefCounted<SameSizeAsStyleProperties> { 1234 1234 unsigned bitfield; 1235 1235 }; 1236 COMPILE_ASSERT(sizeof(StylePropert ySet) == sizeof(SameSizeAsStylePropertySet), style_property_set_should_stay_small);1236 COMPILE_ASSERT(sizeof(StyleProperties) == sizeof(SameSizeAsStyleProperties), style_property_set_should_stay_small); 1237 1237 1238 1238 #ifndef NDEBUG 1239 void StylePropert ySet::showStyle()1239 void StyleProperties::showStyle() 1240 1240 { 1241 1241 fprintf(stderr, "%s\n", asText().ascii().data()); … … 1243 1243 #endif 1244 1244 1245 PassRef<MutableStylePropert ySet> MutableStylePropertySet::create(CSSParserMode cssParserMode)1246 { 1247 return adoptRef(*new MutableStylePropert ySet(cssParserMode));1248 } 1249 1250 PassRef<MutableStylePropert ySet> MutableStylePropertySet::create(const CSSProperty* properties, unsigned count)1251 { 1252 return adoptRef(*new MutableStylePropert ySet(properties, count));1253 } 1254 1255 String StylePropert ySet::PropertyReference::cssName() const1245 PassRef<MutableStyleProperties> MutableStyleProperties::create(CSSParserMode cssParserMode) 1246 { 1247 return adoptRef(*new MutableStyleProperties(cssParserMode)); 1248 } 1249 1250 PassRef<MutableStyleProperties> MutableStyleProperties::create(const CSSProperty* properties, unsigned count) 1251 { 1252 return adoptRef(*new MutableStyleProperties(properties, count)); 1253 } 1254 1255 String StyleProperties::PropertyReference::cssName() const 1256 1256 { 1257 1257 return getPropertyNameString(id()); 1258 1258 } 1259 1259 1260 String StylePropert ySet::PropertyReference::cssText() const1260 String StyleProperties::PropertyReference::cssText() const 1261 1261 { 1262 1262 StringBuilder result; -
trunk/Source/WebCore/css/StyleProperties.h
r159841 r159856 20 20 */ 21 21 22 #ifndef StylePropert ySet_h23 #define StylePropert ySet_h22 #ifndef StyleProperties_h 23 #define StyleProperties_h 24 24 25 25 #include "CSSParserMode.h" … … 37 37 class CSSStyleDeclaration; 38 38 class ComputedStyleExtractor; 39 class ImmutableStylePropert ySet;39 class ImmutableStyleProperties; 40 40 class URL; 41 class MutableStylePropert ySet;41 class MutableStyleProperties; 42 42 class PropertySetCSSStyleDeclaration; 43 43 class StyledElement; … … 45 45 class StyleSheetContents; 46 46 47 class StylePropert ySet : public RefCounted<StylePropertySet> {47 class StyleProperties : public RefCounted<StyleProperties> { 48 48 friend class PropertyReference; 49 49 public: … … 54 54 class PropertyReference { 55 55 public: 56 PropertyReference(const StylePropert ySet& propertySet, unsigned index)56 PropertyReference(const StyleProperties& propertySet, unsigned index) 57 57 : m_propertySet(propertySet) 58 58 , m_index(index) … … 81 81 const CSSValue* propertyValue() const; 82 82 83 const StylePropert ySet& m_propertySet;83 const StyleProperties& m_propertySet; 84 84 unsigned m_index; 85 85 }; … … 95 95 bool isPropertyImplicit(CSSPropertyID) const; 96 96 97 PassRef<MutableStylePropert ySet> copyBlockProperties() const;97 PassRef<MutableStyleProperties> copyBlockProperties() const; 98 98 99 99 CSSParserMode cssParserMode() const { return static_cast<CSSParserMode>(m_cssParserMode); } … … 101 101 void addSubresourceStyleURLs(ListHashSet<URL>&, StyleSheetContents* contextStyleSheet) const; 102 102 103 PassRef<MutableStylePropert ySet> mutableCopy() const;104 PassRef<ImmutableStylePropert ySet> immutableCopyIfNeeded() const;105 106 PassRef<MutableStylePropert ySet> 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; 107 107 108 108 String asText() const; … … 122 122 123 123 protected: 124 StylePropert ySet(CSSParserMode cssParserMode)124 StyleProperties(CSSParserMode cssParserMode) 125 125 : m_cssParserMode(cssParserMode) 126 126 , m_isMutable(true) … … 128 128 { } 129 129 130 StylePropert ySet(CSSParserMode cssParserMode, unsigned immutableArraySize)130 StyleProperties(CSSParserMode cssParserMode, unsigned immutableArraySize) 131 131 : m_cssParserMode(cssParserMode) 132 132 , m_isMutable(false) … … 154 154 }; 155 155 156 class ImmutableStylePropert ySet : public StylePropertySet{156 class ImmutableStyleProperties : public StyleProperties { 157 157 public: 158 ~ImmutableStylePropert ySet();159 static PassRef<ImmutableStylePropert ySet> create(const CSSProperty* properties, unsigned count, CSSParserMode);158 ~ImmutableStyleProperties(); 159 static PassRef<ImmutableStyleProperties> create(const CSSProperty* properties, unsigned count, CSSParserMode); 160 160 161 161 unsigned propertyCount() const { return m_arraySize; } … … 167 167 168 168 private: 169 ImmutableStylePropert ySet(const CSSProperty*, unsigned count, CSSParserMode);169 ImmutableStyleProperties(const CSSProperty*, unsigned count, CSSParserMode); 170 170 }; 171 171 172 inline const CSSValue** ImmutableStylePropert ySet::valueArray() const172 inline const CSSValue** ImmutableStyleProperties::valueArray() const 173 173 { 174 174 return reinterpret_cast<const CSSValue**>(const_cast<const void**>((&(this->m_storage)))); 175 175 } 176 176 177 inline const StylePropertyMetadata* ImmutableStylePropert ySet::metadataArray() const177 inline const StylePropertyMetadata* ImmutableStyleProperties::metadataArray() const 178 178 { 179 179 return reinterpret_cast_ptr<const StylePropertyMetadata*>(&reinterpret_cast_ptr<const char*>(&(this->m_storage))[m_arraySize * sizeof(CSSValue*)]); 180 180 } 181 181 182 class MutableStylePropert ySet : public StylePropertySet{182 class MutableStyleProperties : public StyleProperties { 183 183 public: 184 static PassRef<MutableStylePropert ySet> create(CSSParserMode = CSSQuirksMode);185 static PassRef<MutableStylePropert ySet> create(const CSSProperty* properties, unsigned count);186 187 ~MutableStylePropert ySet();184 static PassRef<MutableStyleProperties> create(CSSParserMode = CSSQuirksMode); 185 static PassRef<MutableStyleProperties> create(const CSSProperty* properties, unsigned count); 186 187 ~MutableStyleProperties(); 188 188 189 189 unsigned propertyCount() const { return m_propertyVector.size(); } … … 211 211 212 212 // FIXME: These two can be moved to EditingStyle.cpp 213 void removeEquivalentProperties(const StylePropert ySet*);213 void removeEquivalentProperties(const StyleProperties*); 214 214 void removeEquivalentProperties(const ComputedStyleExtractor*); 215 215 216 void mergeAndOverrideOnConflict(const StylePropert ySet&);216 void mergeAndOverrideOnConflict(const StyleProperties&); 217 217 218 218 void clear(); … … 225 225 226 226 private: 227 explicit MutableStylePropert ySet(CSSParserMode);228 explicit MutableStylePropert ySet(const StylePropertySet&);229 MutableStylePropert ySet(const CSSProperty* properties, unsigned count);227 explicit MutableStyleProperties(CSSParserMode); 228 explicit MutableStyleProperties(const StyleProperties&); 229 MutableStyleProperties(const CSSProperty* properties, unsigned count); 230 230 231 231 bool removeShorthandProperty(CSSPropertyID); … … 233 233 OwnPtr<PropertySetCSSStyleDeclaration> m_cssomWrapper; 234 234 235 friend class StylePropert ySet;235 friend class StyleProperties; 236 236 }; 237 237 238 inline const StylePropertyMetadata& StylePropert ySet::PropertyReference::propertyMetadata() const238 inline const StylePropertyMetadata& StyleProperties::PropertyReference::propertyMetadata() const 239 239 { 240 240 if (m_propertySet.isMutable()) 241 return static_cast<const MutableStylePropert ySet&>(m_propertySet).m_propertyVector.at(m_index).metadata();242 return static_cast<const ImmutableStylePropert ySet&>(m_propertySet).metadataArray()[m_index];243 } 244 245 inline const CSSValue* StylePropert ySet::PropertyReference::propertyValue() const241 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 245 inline const CSSValue* StyleProperties::PropertyReference::propertyValue() const 246 246 { 247 247 if (m_propertySet.isMutable()) 248 return static_cast<const MutableStylePropert ySet&>(m_propertySet).m_propertyVector.at(m_index).value();249 return static_cast<const ImmutableStylePropert ySet&>(m_propertySet).valueArray()[m_index];250 } 251 252 inline unsigned StylePropert ySet::propertyCount() const248 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 252 inline unsigned StyleProperties::propertyCount() const 253 253 { 254 254 if (m_isMutable) 255 return static_cast<const MutableStylePropert ySet*>(this)->m_propertyVector.size();255 return static_cast<const MutableStyleProperties*>(this)->m_propertyVector.size(); 256 256 return m_arraySize; 257 257 } 258 258 259 inline bool StylePropert ySet::isEmpty() const259 inline bool StyleProperties::isEmpty() const 260 260 { 261 261 return !propertyCount(); 262 262 } 263 263 264 inline void StylePropert ySet::deref()264 inline void StyleProperties::deref() 265 265 { 266 266 if (!derefBase()) … … 268 268 269 269 if (m_isMutable) 270 delete static_cast<MutableStylePropert ySet*>(this);270 delete static_cast<MutableStyleProperties*>(this); 271 271 else 272 delete static_cast<ImmutableStylePropert ySet*>(this);272 delete static_cast<ImmutableStyleProperties*>(this); 273 273 } 274 274 275 275 } // namespace WebCore 276 276 277 #endif // StylePropert ySet_h277 #endif // StyleProperties_h -
trunk/Source/WebCore/css/StyleResolver.cpp
r159842 r159856 109 109 #include "StyleGeneratedImage.h" 110 110 #include "StylePendingImage.h" 111 #include "StylePropert ySet.h"111 #include "StyleProperties.h" 112 112 #include "StylePropertyShorthand.h" 113 113 #include "StyleRule.h" … … 233 233 } 234 234 235 void StyleResolver::MatchResult::addMatchedProperties(const StylePropert ySet& properties, StyleRule* rule, unsigned linkMatchType, PropertyWhitelistType propertyWhitelistType)235 void StyleResolver::MatchResult::addMatchedProperties(const StyleProperties& properties, StyleRule* rule, unsigned linkMatchType, PropertyWhitelistType propertyWhitelistType) 236 236 { 237 237 matchedProperties.grow(matchedProperties.size() + 1); 238 238 StyleResolver::MatchedProperties& newProperties = matchedProperties.last(); 239 newProperties.properties = const_cast<StylePropert ySet*>(&properties);239 newProperties.properties = const_cast<StyleProperties*>(&properties); 240 240 newProperties.linkMatchType = linkMatchType; 241 241 newProperties.whitelistType = propertyWhitelistType; … … 947 947 static StyleKeyframe* zeroPercentKeyframe; 948 948 if (!zeroPercentKeyframe) { 949 zeroPercentKeyframe = StyleKeyframe::create(MutableStylePropert ySet::create()).leakRef();949 zeroPercentKeyframe = StyleKeyframe::create(MutableStyleProperties::create()).leakRef(); 950 950 zeroPercentKeyframe->setKeyText("0%"); 951 951 } … … 959 959 static StyleKeyframe* hundredPercentKeyframe; 960 960 if (!hundredPercentKeyframe) { 961 hundredPercentKeyframe = StyleKeyframe::create(MutableStylePropert ySet::create()).leakRef();961 hundredPercentKeyframe = StyleKeyframe::create(MutableStyleProperties::create()).leakRef(); 962 962 hundredPercentKeyframe->setKeyText("100%"); 963 963 } … … 1522 1522 1523 1523 template <StyleResolver::StyleApplicationPass pass> 1524 void StyleResolver::applyProperties(const StylePropert ySet* properties, StyleRule* rule, bool isImportant, bool inheritedOnly, PropertyWhitelistType propertyWhitelistType)1524 void StyleResolver::applyProperties(const StyleProperties* properties, StyleRule* rule, bool isImportant, bool inheritedOnly, PropertyWhitelistType propertyWhitelistType) 1525 1525 { 1526 1526 ASSERT((propertyWhitelistType != PropertyWhitelistRegion) || m_state.regionForStyling()); … … 1529 1529 unsigned propertyCount = properties->propertyCount(); 1530 1530 for (unsigned i = 0; i < propertyCount; ++i) { 1531 StylePropert ySet::PropertyReference current = properties->propertyAt(i);1531 StyleProperties::PropertyReference current = properties->propertyAt(i); 1532 1532 if (isImportant != current.isImportant()) 1533 1533 continue; -
trunk/Source/WebCore/css/StyleResolver.h
r159842 r159856 93 93 class StyleKeyframe; 94 94 class StylePendingImage; 95 class StylePropert ySet;95 class StyleProperties; 96 96 class StyleRule; 97 97 #if ENABLE(SHADOW_DOM) … … 317 317 ~MatchedProperties(); 318 318 319 RefPtr<StylePropert ySet> properties;319 RefPtr<StyleProperties> properties; 320 320 union { 321 321 struct { … … 335 335 bool isCacheable; 336 336 337 void addMatchedProperties(const StylePropert ySet& properties, StyleRule* = 0, unsigned linkMatchType = SelectorChecker::MatchAll, PropertyWhitelistType = PropertyWhitelistNone);337 void addMatchedProperties(const StyleProperties&, StyleRule* = 0, unsigned linkMatchType = SelectorChecker::MatchAll, PropertyWhitelistType = PropertyWhitelistNone); 338 338 }; 339 339 … … 360 360 void applyMatchedProperties(const MatchResult&, bool important, int startIndex, int endIndex, bool inheritedOnly); 361 361 template <StyleApplicationPass pass> 362 void applyProperties(const StylePropert ySet* properties, StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelistNone);362 void applyProperties(const StyleProperties*, StyleRule*, bool isImportant, bool inheritedOnly, PropertyWhitelistType = PropertyWhitelistNone); 363 363 static bool isValidRegionStyleProperty(CSSPropertyID); 364 364 #if ENABLE(VIDEO_TRACK) -
trunk/Source/WebCore/css/StyleRule.cpp
r157698 r159856 32 32 #include "CSSSupportsRule.h" 33 33 #include "CSSUnknownRule.h" 34 #include "StylePropert ySet.h"34 #include "StyleProperties.h" 35 35 #include "StyleRuleImport.h" 36 36 #include "WebKitCSSFilterRule.h" … … 229 229 unsigned StyleRule::averageSizeInBytes() 230 230 { 231 return sizeof(StyleRule) + sizeof(CSSSelector) + StylePropert ySet::averageSizeInBytes();232 } 233 234 StyleRule::StyleRule(int sourceLine, PassRef<StylePropert ySet> properties)231 return sizeof(StyleRule) + sizeof(CSSSelector) + StyleProperties::averageSizeInBytes(); 232 } 233 234 StyleRule::StyleRule(int sourceLine, PassRef<StyleProperties> properties) 235 235 : StyleRuleBase(Style, sourceLine) 236 236 , m_properties(std::move(properties)) … … 249 249 } 250 250 251 MutableStylePropert ySet& StyleRule::mutableProperties()251 MutableStyleProperties& StyleRule::mutableProperties() 252 252 { 253 253 if (!m_properties->isMutable()) 254 254 m_properties = m_properties->mutableCopy(); 255 return static_cast<MutableStylePropert ySet&>(m_properties.get());256 } 257 258 PassRef<StyleRule> StyleRule::create(int sourceLine, const Vector<const CSSSelector*>& selectors, PassRef<StylePropert ySet> properties)255 return static_cast<MutableStyleProperties&>(m_properties.get()); 256 } 257 258 PassRef<StyleRule> StyleRule::create(int sourceLine, const Vector<const CSSSelector*>& selectors, PassRef<StyleProperties> properties) 259 259 { 260 260 CSSSelector* selectorListArray = reinterpret_cast<CSSSelector*>(fastMalloc(sizeof(CSSSelector) * selectors.size())); … … 280 280 281 281 if (componentsInThisSelector.size() + componentsSinceLastSplit.size() > maxCount) { 282 rules.append(create(sourceLine(), componentsSinceLastSplit, const_cast<StylePropert ySet&>(m_properties.get())));282 rules.append(create(sourceLine(), componentsSinceLastSplit, const_cast<StyleProperties&>(m_properties.get()))); 283 283 componentsSinceLastSplit.clear(); 284 284 } … … 288 288 289 289 if (!componentsSinceLastSplit.isEmpty()) 290 rules.append(create(sourceLine(), componentsSinceLastSplit, const_cast<StylePropert ySet&>(m_properties.get())));290 rules.append(create(sourceLine(), componentsSinceLastSplit, const_cast<StyleProperties&>(m_properties.get()))); 291 291 292 292 return rules; 293 293 } 294 294 295 StyleRulePage::StyleRulePage(PassRef<StylePropert ySet> properties)295 StyleRulePage::StyleRulePage(PassRef<StyleProperties> properties) 296 296 : StyleRuleBase(Page) 297 297 , m_properties(std::move(properties)) … … 310 310 } 311 311 312 MutableStylePropert ySet& StyleRulePage::mutableProperties()312 MutableStyleProperties& StyleRulePage::mutableProperties() 313 313 { 314 314 if (!m_properties->isMutable()) 315 315 m_properties = m_properties->mutableCopy(); 316 return static_cast<MutableStylePropert ySet&>(m_properties.get());317 } 318 319 StyleRuleFontFace::StyleRuleFontFace(PassRef<StylePropert ySet> properties)316 return static_cast<MutableStyleProperties&>(m_properties.get()); 317 } 318 319 StyleRuleFontFace::StyleRuleFontFace(PassRef<StyleProperties> properties) 320 320 : StyleRuleBase(FontFace, 0) 321 321 , m_properties(std::move(properties)) … … 333 333 } 334 334 335 MutableStylePropert ySet& StyleRuleFontFace::mutableProperties()335 MutableStyleProperties& StyleRuleFontFace::mutableProperties() 336 336 { 337 337 if (!m_properties->isMutable()) 338 338 m_properties = m_properties->mutableCopy(); 339 return static_cast<MutableStylePropert ySet&>(m_properties.get());339 return static_cast<MutableStyleProperties&>(m_properties.get()); 340 340 } 341 341 … … 409 409 410 410 #if ENABLE(CSS_DEVICE_ADAPTATION) 411 StyleRuleViewport::StyleRuleViewport(PassRef<StylePropert ySet> properties)411 StyleRuleViewport::StyleRuleViewport(PassRef<StyleProperties> properties) 412 412 : StyleRuleBase(Viewport, 0) 413 413 , m_properties(std::move(properties)) … … 425 425 } 426 426 427 MutableStylePropert ySet& StyleRuleViewport::mutableProperties()427 MutableStyleProperties& StyleRuleViewport::mutableProperties() 428 428 { 429 429 if (!m_properties->isMutable()) 430 430 m_properties = m_properties->mutableCopy(); 431 return static_cast<MutableStylePropert ySet&>(m_properties.get());431 return static_cast<MutableStyleProperties&>(m_properties.get()); 432 432 } 433 433 #endif // ENABLE(CSS_DEVICE_ADAPTATION) 434 434 435 435 #if ENABLE(CSS_SHADERS) 436 StyleRuleFilter::StyleRuleFilter(const String& filterName, PassRef<StylePropert ySet> properties)436 StyleRuleFilter::StyleRuleFilter(const String& filterName, PassRef<StyleProperties> properties) 437 437 : StyleRuleBase(Filter, 0) 438 438 , m_filterName(filterName) … … 452 452 } 453 453 454 MutableStylePropert ySet& StyleRuleFilter::mutableProperties()454 MutableStyleProperties& StyleRuleFilter::mutableProperties() 455 455 { 456 456 if (!m_properties->isMutable()) 457 457 m_properties = m_properties->mutableCopy(); 458 return static_cast<MutableStylePropert ySet&>(m_properties.get());458 return static_cast<MutableStyleProperties&>(m_properties.get()); 459 459 } 460 460 -
trunk/Source/WebCore/css/StyleRule.h
r157698 r159856 25 25 #include "CSSSelectorList.h" 26 26 #include "MediaList.h" 27 #include "StylePropert ySet.h"27 #include "StyleProperties.h" 28 28 #include <wtf/RefPtr.h> 29 29 … … 33 33 class CSSStyleRule; 34 34 class CSSStyleSheet; 35 class MutableStylePropert ySet;36 class StylePropert ySet;35 class MutableStyleProperties; 36 class StyleProperties; 37 37 38 38 class StyleRuleBase : public WTF::RefCountedBase { … … 119 119 WTF_MAKE_FAST_ALLOCATED; 120 120 public: 121 static PassRef<StyleRule> create(int sourceLine, PassRef<StylePropert ySet> properties)121 static PassRef<StyleRule> create(int sourceLine, PassRef<StyleProperties> properties) 122 122 { 123 123 return adoptRef(*new StyleRule(sourceLine, std::move(properties))); … … 127 127 128 128 const CSSSelectorList& selectorList() const { return m_selectorList; } 129 const StylePropert ySet& properties() const { return m_properties.get(); }130 MutableStylePropert ySet& mutableProperties();129 const StyleProperties& properties() const { return m_properties.get(); } 130 MutableStyleProperties& mutableProperties(); 131 131 132 132 void parserAdoptSelectorVector(Vector<OwnPtr<CSSParserSelector>>& selectors) { m_selectorList.adoptSelectorVector(selectors); } … … 141 141 142 142 private: 143 StyleRule(int sourceLine, PassRef<StylePropert ySet>);143 StyleRule(int sourceLine, PassRef<StyleProperties>); 144 144 StyleRule(const StyleRule&); 145 145 146 static PassRef<StyleRule> create(int sourceLine, const Vector<const CSSSelector*>&, PassRef<StylePropert ySet>);147 148 Ref<StylePropert ySet> m_properties;146 static PassRef<StyleRule> create(int sourceLine, const Vector<const CSSSelector*>&, PassRef<StyleProperties>); 147 148 Ref<StyleProperties> m_properties; 149 149 CSSSelectorList m_selectorList; 150 150 }; … … 158 158 class StyleRuleFontFace : public StyleRuleBase { 159 159 public: 160 static PassRef<StyleRuleFontFace> create(PassRef<StylePropert ySet> properties) { return adoptRef(*new StyleRuleFontFace(std::move(properties))); }160 static PassRef<StyleRuleFontFace> create(PassRef<StyleProperties> properties) { return adoptRef(*new StyleRuleFontFace(std::move(properties))); } 161 161 162 162 ~StyleRuleFontFace(); 163 163 164 const StylePropert ySet& properties() const { return m_properties.get(); }165 MutableStylePropert ySet& mutableProperties();164 const StyleProperties& properties() const { return m_properties.get(); } 165 MutableStyleProperties& mutableProperties(); 166 166 167 167 PassRef<StyleRuleFontFace> copy() const { return adoptRef(*new StyleRuleFontFace(*this)); } … … 169 169 170 170 private: 171 StyleRuleFontFace(PassRef<StylePropert ySet>);171 StyleRuleFontFace(PassRef<StyleProperties>); 172 172 StyleRuleFontFace(const StyleRuleFontFace&); 173 173 174 Ref<StylePropert ySet> m_properties;174 Ref<StyleProperties> m_properties; 175 175 }; 176 176 177 177 class StyleRulePage : public StyleRuleBase { 178 178 public: 179 static PassRef<StyleRulePage> create(PassRef<StylePropert ySet> properties) { return adoptRef(*new StyleRulePage(std::move(properties))); }179 static PassRef<StyleRulePage> create(PassRef<StyleProperties> properties) { return adoptRef(*new StyleRulePage(std::move(properties))); } 180 180 181 181 ~StyleRulePage(); 182 182 183 183 const CSSSelector* selector() const { return m_selectorList.first(); } 184 const StylePropert ySet& properties() const { return m_properties.get(); }185 MutableStylePropert ySet& mutableProperties();184 const StyleProperties& properties() const { return m_properties.get(); } 185 MutableStyleProperties& mutableProperties(); 186 186 187 187 void parserAdoptSelectorVector(Vector<OwnPtr<CSSParserSelector>>& selectors) { m_selectorList.adoptSelectorVector(selectors); } … … 191 191 192 192 private: 193 StyleRulePage(PassRef<StylePropert ySet>);193 StyleRulePage(PassRef<StyleProperties>); 194 194 StyleRulePage(const StyleRulePage&); 195 195 196 Ref<StylePropert ySet> m_properties;196 Ref<StyleProperties> m_properties; 197 197 CSSSelectorList m_selectorList; 198 198 }; … … 289 289 class StyleRuleViewport : public StyleRuleBase { 290 290 public: 291 static PassRef<StyleRuleViewport> create(PassRef<StylePropert ySet> properties) { return adoptRef(*new StyleRuleViewport(std::move(properties))); }291 static PassRef<StyleRuleViewport> create(PassRef<StyleProperties> properties) { return adoptRef(*new StyleRuleViewport(std::move(properties))); } 292 292 293 293 ~StyleRuleViewport(); 294 294 295 const StylePropert ySet& properties() const { return m_properties.get(); }296 MutableStylePropert ySet& mutableProperties();295 const StyleProperties& properties() const { return m_properties.get(); } 296 MutableStyleProperties& mutableProperties(); 297 297 298 298 PassRef<StyleRuleViewport> copy() const { return adoptRef(*new StyleRuleViewport(*this)); } 299 299 300 300 private: 301 StyleRuleViewport(PassRef<StylePropert ySet>);301 StyleRuleViewport(PassRef<StyleProperties>); 302 302 StyleRuleViewport(const StyleRuleViewport&); 303 303 304 Ref<StylePropert ySet> m_properties;304 Ref<StyleProperties> m_properties; 305 305 }; 306 306 #endif // ENABLE(CSS_DEVICE_ADAPTATION) … … 329 329 class StyleRuleFilter : public StyleRuleBase { 330 330 public: 331 static PassRef<StyleRuleFilter> create(const String& filterName, PassRef<StylePropert ySet> properties)331 static PassRef<StyleRuleFilter> create(const String& filterName, PassRef<StyleProperties> properties) 332 332 { 333 333 return adoptRef(*new StyleRuleFilter(filterName, std::move(properties))); … … 338 338 const String& filterName() const { return m_filterName; } 339 339 340 const StylePropert ySet& properties() const { return m_properties.get(); }341 MutableStylePropert ySet& mutableProperties();340 const StyleProperties& properties() const { return m_properties.get(); } 341 MutableStyleProperties& mutableProperties(); 342 342 343 343 PassRef<StyleRuleFilter> copy() const { return adoptRef(*new StyleRuleFilter(*this)); } 344 344 345 345 private: 346 StyleRuleFilter(const String&, PassRef<StylePropert ySet>);346 StyleRuleFilter(const String&, PassRef<StyleProperties>); 347 347 StyleRuleFilter(const StyleRuleFilter&); 348 348 349 349 String m_filterName; 350 Ref<StylePropert ySet> m_properties;350 Ref<StyleProperties> m_properties; 351 351 }; 352 352 #endif // ENABLE(CSS_SHADERS) -
trunk/Source/WebCore/css/StyleSheetContents.cpp
r157653 r159856 31 31 #include "RuleSet.h" 32 32 #include "SecurityOrigin.h" 33 #include "StylePropert ySet.h"33 #include "StyleProperties.h" 34 34 #include "StyleRule.h" 35 35 #include "StyleRuleImport.h" -
trunk/Source/WebCore/css/ViewportStyleResolver.cpp
r157575 r159856 37 37 #include "Page.h" 38 38 #include "RenderView.h" 39 #include "StylePropert ySet.h"39 #include "StyleProperties.h" 40 40 #include "StyleRule.h" 41 41 #include "ViewportArguments.h" … … 55 55 void ViewportStyleResolver::addViewportRule(StyleRuleViewport* viewportRule) 56 56 { 57 StylePropert ySet& propertySet = viewportRule->mutableProperties();57 StyleProperties& propertySet = viewportRule->mutableProperties(); 58 58 59 59 unsigned propertyCount = propertySet.propertyCount(); -
trunk/Source/WebCore/css/ViewportStyleResolver.h
r148400 r159856 42 42 class CSSPrimitiveValue; 43 43 class Document; 44 class MutableStylePropert ySet;44 class MutableStyleProperties; 45 45 class StyleRuleViewport; 46 46 … … 65 65 66 66 Document* m_document; 67 RefPtr<MutableStylePropert ySet> m_propertySet;67 RefPtr<MutableStyleProperties> m_propertySet; 68 68 }; 69 69 -
trunk/Source/WebCore/css/WebKitCSSFilterRule.cpp
r157575 r159856 34 34 35 35 #include "PropertySetCSSStyleDeclaration.h" 36 #include "StylePropert ySet.h"36 #include "StyleProperties.h" 37 37 #include "StyleRule.h" 38 38 #include <wtf/text/StringBuilder.h> -
trunk/Source/WebCore/css/WebKitCSSKeyframeRule.cpp
r157575 r159856 28 28 29 29 #include "PropertySetCSSStyleDeclaration.h" 30 #include "StylePropert ySet.h"30 #include "StyleProperties.h" 31 31 #include "WebKitCSSKeyframesRule.h" 32 32 #include <wtf/text/StringBuilder.h> … … 34 34 namespace WebCore { 35 35 36 StyleKeyframe::StyleKeyframe(PassRef<StylePropert ySet> properties)36 StyleKeyframe::StyleKeyframe(PassRef<StyleProperties> properties) 37 37 : m_properties(std::move(properties)) 38 38 { … … 43 43 } 44 44 45 MutableStylePropert ySet& StyleKeyframe::mutableProperties()45 MutableStyleProperties& StyleKeyframe::mutableProperties() 46 46 { 47 47 if (!m_properties->isMutable()) 48 48 m_properties = m_properties->mutableCopy(); 49 return static_cast<MutableStylePropert ySet&>(m_properties.get());49 return static_cast<MutableStyleProperties&>(m_properties.get()); 50 50 } 51 51 -
trunk/Source/WebCore/css/WebKitCSSKeyframeRule.h
r157575 r159856 28 28 29 29 #include "CSSRule.h" 30 #include "StylePropert ySet.h"30 #include "StyleProperties.h" 31 31 32 32 namespace WebCore { … … 39 39 WTF_MAKE_FAST_ALLOCATED; 40 40 public: 41 static PassRefPtr<StyleKeyframe> create(PassRef<StylePropert ySet> properties)41 static PassRefPtr<StyleKeyframe> create(PassRef<StyleProperties> properties) 42 42 { 43 43 return adoptRef(new StyleKeyframe(std::move(properties))); … … 50 50 void getKeys(Vector<double>& keys) const { parseKeyString(m_key, keys); } 51 51 52 const StylePropert ySet& properties() const { return m_properties.get(); }53 MutableStylePropert ySet& mutableProperties();52 const StyleProperties& properties() const { return m_properties.get(); } 53 MutableStyleProperties& mutableProperties(); 54 54 55 55 String cssText() const; 56 56 57 57 private: 58 explicit StyleKeyframe(PassRef<StylePropert ySet>);58 explicit StyleKeyframe(PassRef<StyleProperties>); 59 59 60 60 static void parseKeyString(const String&, Vector<double>& keys); 61 61 62 Ref<StylePropert ySet> m_properties;62 Ref<StyleProperties> m_properties; 63 63 // FIXME: This should be a parsed vector of floats. 64 64 // comma separated list of keys -
trunk/Source/WebCore/css/WebKitCSSKeyframesRule.cpp
r158514 r159856 30 30 #include "CSSRuleList.h" 31 31 #include "CSSStyleSheet.h" 32 #include "StylePropert ySet.h"32 #include "StyleProperties.h" 33 33 #include "StyleSheet.h" 34 34 #include "WebKitCSSKeyframeRule.h" -
trunk/Source/WebCore/css/WebKitCSSMatrix.cpp
r156705 r159856 31 31 #include "CSSValueKeywords.h" 32 32 #include "ExceptionCode.h" 33 #include "StylePropert ySet.h"33 #include "StyleProperties.h" 34 34 #include "TransformFunctions.h" 35 35 #include <wtf/MathExtras.h> … … 56 56 return; 57 57 58 RefPtr<MutableStylePropert ySet> styleDeclaration = MutableStylePropertySet::create();58 RefPtr<MutableStyleProperties> styleDeclaration = MutableStyleProperties::create(); 59 59 if (CSSParser::parseValue(styleDeclaration.get(), CSSPropertyWebkitTransform, string, true, CSSStrictMode, 0)) { 60 60 // Convert to TransformOperations. This can fail if a property -
trunk/Source/WebCore/css/WebKitCSSViewportRule.cpp
r157575 r159856 35 35 36 36 #include "PropertySetCSSStyleDeclaration.h" 37 #include "StylePropert ySet.h"37 #include "StyleProperties.h" 38 38 #include "StyleRule.h" 39 39 #include <wtf/text/StringBuilder.h> -
trunk/Source/WebCore/dom/Attr.cpp
r159733 r159856 26 26 #include "ExceptionCode.h" 27 27 #include "ScopedEventQueue.h" 28 #include "StylePropert ySet.h"28 #include "StyleProperties.h" 29 29 #include "StyledElement.h" 30 30 #include "TextNodeTraversal.h" … … 189 189 if (!m_element || !m_element->isStyledElement()) 190 190 return nullptr; 191 m_style = MutableStylePropert ySet::create();191 m_style = MutableStyleProperties::create(); 192 192 toStyledElement(m_element)->collectStyleForPresentationAttribute(qualifiedName(), value(), *m_style); 193 193 return m_style->ensureCSSStyleDeclaration(); -
trunk/Source/WebCore/dom/Attr.h
r158829 r159856 32 32 33 33 class CSSStyleDeclaration; 34 class MutableStylePropert ySet;34 class MutableStyleProperties; 35 35 36 36 // Attr can have Text and EntityReference children … … 96 96 AtomicString m_standaloneValue; 97 97 98 RefPtr<MutableStylePropert ySet> m_style;98 RefPtr<MutableStyleProperties> m_style; 99 99 unsigned m_ignoreChildrenChanged; 100 100 }; -
trunk/Source/WebCore/dom/Document.cpp
r159489 r159856 130 130 #include "Settings.h" 131 131 #include "ShadowRoot.h" 132 #include "StylePropert ySet.h"132 #include "StyleProperties.h" 133 133 #include "StyleResolver.h" 134 134 #include "StyleSheetContents.h" … … 857 857 PassRefPtr<CSSStyleDeclaration> Document::createCSSStyleDeclaration() 858 858 { 859 Ref<MutableStylePropert ySet> propertySet(MutableStylePropertySet::create());859 Ref<MutableStyleProperties> propertySet(MutableStyleProperties::create()); 860 860 return propertySet->ensureCSSStyleDeclaration(); 861 861 } -
trunk/Source/WebCore/dom/Element.cpp
r159733 r159856 68 68 #include "SelectorQuery.h" 69 69 #include "Settings.h" 70 #include "StylePropert ySet.h"70 #include "StyleProperties.h" 71 71 #include "StyleResolver.h" 72 72 #include "TextIterator.h" -
trunk/Source/WebCore/dom/ElementData.cpp
r158250 r159856 28 28 29 29 #include "Attr.h" 30 #include "StylePropert ySet.h"30 #include "StyleProperties.h" 31 31 32 32 namespace WebCore { … … 145 145 : ElementData(other, true) 146 146 { 147 // An ShareableElementData should never have a mutable inline StylePropert ySetattached.147 // An ShareableElementData should never have a mutable inline StyleProperties attached. 148 148 ASSERT(!other.m_inlineStyle || !other.m_inlineStyle->isMutable()); 149 149 m_inlineStyle = other.m_inlineStyle; -
trunk/Source/WebCore/dom/ElementData.h
r158250 r159856 35 35 class Attr; 36 36 class ShareableElementData; 37 class StylePropert ySet;37 class StyleProperties; 38 38 class UniqueElementData; 39 39 … … 54 54 void setIdForStyleResolution(const AtomicString& newId) const { m_idForStyleResolution = newId; } 55 55 56 const StylePropert ySet* inlineStyle() const { return m_inlineStyle.get(); }57 const StylePropert ySet* presentationAttributeStyle() const;56 const StyleProperties* inlineStyle() const { return m_inlineStyle.get(); } 57 const StyleProperties* presentationAttributeStyle() const; 58 58 59 59 unsigned length() const; … … 88 88 #endif 89 89 90 mutable RefPtr<StylePropert ySet> m_inlineStyle;90 mutable RefPtr<StyleProperties> m_inlineStyle; 91 91 mutable SpaceSplitString m_classNames; 92 92 mutable AtomicString m_idForStyleResolution; … … 146 146 explicit UniqueElementData(const UniqueElementData&); 147 147 148 mutable RefPtr<StylePropert ySet> m_presentationAttributeStyle;148 mutable RefPtr<StyleProperties> m_presentationAttributeStyle; 149 149 Vector<Attribute, 4> m_attributeVector; 150 150 }; … … 171 171 } 172 172 173 inline const StylePropert ySet* ElementData::presentationAttributeStyle() const173 inline const StyleProperties* ElementData::presentationAttributeStyle() const 174 174 { 175 175 if (!m_isUnique) -
trunk/Source/WebCore/dom/StyledElement.cpp
r158985 r159856 35 35 #include "PropertySetCSSStyleDeclaration.h" 36 36 #include "ScriptableDocumentParser.h" 37 #include "StylePropert ySet.h"37 #include "StyleProperties.h" 38 38 #include "StyleResolver.h" 39 39 #include <wtf/HashFunctions.h> … … 56 56 public: 57 57 PresentationAttributeCacheKey key; 58 RefPtr<StylePropert ySet> value;58 RefPtr<StyleProperties> value; 59 59 }; 60 60 … … 124 124 ASSERT(elementData()->m_styleAttributeIsDirty); 125 125 elementData()->m_styleAttributeIsDirty = false; 126 if (const StylePropert ySet* inlineStyle = this->inlineStyle())126 if (const StyleProperties* inlineStyle = this->inlineStyle()) 127 127 const_cast<StyledElement*>(this)->setSynchronizedLazyAttribute(styleAttr, inlineStyle->asText()); 128 128 } … … 139 139 } 140 140 141 MutableStylePropert ySet& StyledElement::ensureMutableInlineStyle()142 { 143 RefPtr<StylePropert ySet>& inlineStyle = ensureUniqueElementData().m_inlineStyle;141 MutableStyleProperties& StyledElement::ensureMutableInlineStyle() 142 { 143 RefPtr<StyleProperties>& inlineStyle = ensureUniqueElementData().m_inlineStyle; 144 144 if (!inlineStyle) 145 inlineStyle = MutableStylePropert ySet::create(strictToCSSParserMode(isHTMLElement() && !document().inQuirksMode()));145 inlineStyle = MutableStyleProperties::create(strictToCSSParserMode(isHTMLElement() && !document().inQuirksMode())); 146 146 else if (!inlineStyle->isMutable()) 147 147 inlineStyle = inlineStyle->mutableCopy(); 148 148 ASSERT_WITH_SECURITY_IMPLICATION(inlineStyle->isMutable()); 149 return static_cast<MutableStylePropert ySet&>(*inlineStyle);149 return static_cast<MutableStyleProperties&>(*inlineStyle); 150 150 } 151 151 … … 173 173 inline void StyledElement::setInlineStyleFromString(const AtomicString& newStyleString) 174 174 { 175 RefPtr<StylePropert ySet>& inlineStyle = elementData()->m_inlineStyle;175 RefPtr<StyleProperties>& inlineStyle = elementData()->m_inlineStyle; 176 176 177 177 // Avoid redundant work if we're using shared attribute data with already parsed inline style. … … 188 188 else { 189 189 ASSERT(inlineStyle->isMutable()); 190 static_pointer_cast<MutableStylePropert ySet>(inlineStyle)->parseDeclaration(newStyleString, &document().elementSheet().contents());190 static_pointer_cast<MutableStyleProperties>(inlineStyle)->parseDeclaration(newStyleString, &document().elementSheet().contents()); 191 191 } 192 192 } … … 268 268 void StyledElement::addSubresourceAttributeURLs(ListHashSet<URL>& urls) const 269 269 { 270 if (const StylePropert ySet* inlineStyle = elementData() ? elementData()->inlineStyle() : 0)270 if (const StyleProperties* inlineStyle = elementData() ? elementData()->inlineStyle() : 0) 271 271 inlineStyle->addSubresourceStyleURLs(urls, &document().elementSheet().contents()); 272 272 } … … 330 330 cacheIterator = presentationAttributeCache().end(); 331 331 332 RefPtr<StylePropert ySet> style;332 RefPtr<StyleProperties> style; 333 333 if (cacheHash && cacheIterator->value) { 334 334 style = cacheIterator->value->value; 335 335 presentationAttributeCacheCleaner().didHitPresentationAttributeCache(); 336 336 } else { 337 style = MutableStylePropert ySet::create(isSVGElement() ? SVGAttributeMode : CSSQuirksMode);337 style = MutableStyleProperties::create(isSVGElement() ? SVGAttributeMode : CSSQuirksMode); 338 338 unsigned size = attributeCount(); 339 339 for (unsigned i = 0; i < size; ++i) { 340 340 const Attribute& attribute = attributeAt(i); 341 collectStyleForPresentationAttribute(attribute.name(), attribute.value(), static_cast<MutableStylePropert ySet&>(*style));341 collectStyleForPresentationAttribute(attribute.name(), attribute.value(), static_cast<MutableStyleProperties&>(*style)); 342 342 } 343 343 } … … 365 365 } 366 366 367 void StyledElement::addPropertyToPresentationAttributeStyle(MutableStylePropert ySet& style, CSSPropertyID propertyID, CSSValueID identifier)367 void StyledElement::addPropertyToPresentationAttributeStyle(MutableStyleProperties& style, CSSPropertyID propertyID, CSSValueID identifier) 368 368 { 369 369 style.setProperty(propertyID, cssValuePool().createIdentifierValue(identifier)); 370 370 } 371 371 372 void StyledElement::addPropertyToPresentationAttributeStyle(MutableStylePropert ySet& style, CSSPropertyID propertyID, double value, CSSPrimitiveValue::UnitTypes unit)372 void StyledElement::addPropertyToPresentationAttributeStyle(MutableStyleProperties& style, CSSPropertyID propertyID, double value, CSSPrimitiveValue::UnitTypes unit) 373 373 { 374 374 style.setProperty(propertyID, cssValuePool().createValue(value, unit)); 375 375 } 376 376 377 void StyledElement::addPropertyToPresentationAttributeStyle(MutableStylePropert ySet& style, CSSPropertyID propertyID, const String& value)377 void StyledElement::addPropertyToPresentationAttributeStyle(MutableStyleProperties& style, CSSPropertyID propertyID, const String& value) 378 378 { 379 379 style.setProperty(propertyID, value, false, &document().elementSheet().contents()); -
trunk/Source/WebCore/dom/StyledElement.h
r158985 r159856 34 34 35 35 class Attribute; 36 class MutableStylePropert ySet;36 class MutableStyleProperties; 37 37 class PropertySetCSSStyleDeclaration; 38 class StylePropert ySet;38 class StyleProperties; 39 39 40 40 struct PresentationAttributeCacheKey; … … 44 44 virtual ~StyledElement(); 45 45 46 virtual const StylePropert ySet* additionalPresentationAttributeStyle() { return 0; }46 virtual const StyleProperties* additionalPresentationAttributeStyle() { return 0; } 47 47 void invalidateStyleAttribute(); 48 48 49 const StylePropert ySet* inlineStyle() const { return elementData() ? elementData()->m_inlineStyle.get() : 0; }49 const StyleProperties* inlineStyle() const { return elementData() ? elementData()->m_inlineStyle.get() : 0; } 50 50 51 51 bool setInlineStyleProperty(CSSPropertyID, CSSValueID identifier, bool important = false); … … 60 60 virtual CSSStyleDeclaration* style() OVERRIDE FINAL; 61 61 62 const StylePropert ySet* presentationAttributeStyle();63 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) { }62 const StyleProperties* presentationAttributeStyle(); 63 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) { } 64 64 65 65 protected: … … 73 73 virtual bool isPresentationAttribute(const QualifiedName&) const { return false; } 74 74 75 void addPropertyToPresentationAttributeStyle(MutableStylePropert ySet&, CSSPropertyID, CSSValueID identifier);76 void addPropertyToPresentationAttributeStyle(MutableStylePropert ySet&, CSSPropertyID, double value, CSSPrimitiveValue::UnitTypes);77 void addPropertyToPresentationAttributeStyle(MutableStylePropert ySet&, 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); 78 78 79 79 virtual void addSubresourceAttributeURLs(ListHashSet<URL>&) const OVERRIDE; … … 85 85 PropertySetCSSStyleDeclaration* inlineStyleCSSOMWrapper(); 86 86 void setInlineStyleFromString(const AtomicString&); 87 MutableStylePropert ySet& ensureMutableInlineStyle();87 MutableStyleProperties& ensureMutableInlineStyle(); 88 88 89 89 void makePresentationAttributeCacheKey(PresentationAttributeCacheKey&) const; … … 97 97 } 98 98 99 inline const StylePropert ySet* StyledElement::presentationAttributeStyle()99 inline const StyleProperties* StyledElement::presentationAttributeStyle() 100 100 { 101 101 if (!elementData()) -
trunk/Source/WebCore/editing/ApplyStyleCommand.cpp
r159733 r159856 41 41 #include "RenderObject.h" 42 42 #include "RenderText.h" 43 #include "StylePropert ySet.h"43 #include "StyleProperties.h" 44 44 #include "StyleResolver.h" 45 45 #include "Text.h" … … 300 300 } 301 301 302 static PassRefPtr<MutableStylePropert ySet> copyStyleOrCreateEmpty(const StylePropertySet* style)302 static PassRefPtr<MutableStyleProperties> copyStyleOrCreateEmpty(const StyleProperties* style) 303 303 { 304 304 if (!style) 305 return MutableStylePropert ySet::create();305 return MutableStyleProperties::create(); 306 306 return style->mutableCopy(); 307 307 } … … 397 397 lastStyledNode = node; 398 398 399 RefPtr<MutableStylePropert ySet> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle());399 RefPtr<MutableStyleProperties> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle()); 400 400 float currentFontSize = computedFontSize(node); 401 401 float desiredFontSize = std::max(MinimumFontSize, startingFontSizes.get(node) + style->fontSizeDelta()); … … 526 526 removeNodeAttribute(element, dirAttr); 527 527 } else { 528 RefPtr<MutableStylePropert ySet> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle());528 RefPtr<MutableStyleProperties> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle()); 529 529 inlineStyle->setProperty(CSSPropertyUnicodeBidi, CSSValueNormal); 530 530 inlineStyle->removeProperty(CSSPropertyDirection); … … 770 770 // Add to this element's inline style and skip over its contents. 771 771 HTMLElement* element = toHTMLElement(node.get()); 772 RefPtr<MutableStylePropert ySet> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle());773 if (MutableStylePropert ySet* otherStyle = style->style())772 RefPtr<MutableStyleProperties> inlineStyle = copyStyleOrCreateEmpty(element->inlineStyle()); 773 if (MutableStyleProperties* otherStyle = style->style()) 774 774 inlineStyle->mergeAndOverrideOnConflict(*otherStyle); 775 775 setNodeAttribute(element, styleAttr, inlineStyle->asText()); … … 1388 1388 StringBuilder cssText; 1389 1389 cssText.append(cssStyle); 1390 if (const StylePropert ySet* decl = block->inlineStyle()) {1390 if (const StyleProperties* decl = block->inlineStyle()) { 1391 1391 if (!cssStyle.isEmpty()) 1392 1392 cssText.append(' '); … … 1468 1468 if (styleChange.cssStyle().length()) { 1469 1469 if (styleContainer) { 1470 if (const StylePropert ySet* existingStyle = styleContainer->inlineStyle()) {1470 if (const StyleProperties* existingStyle = styleContainer->inlineStyle()) { 1471 1471 String existingText = existingStyle->asText(); 1472 1472 StringBuilder cssText; -
trunk/Source/WebCore/editing/DeleteButtonController.cpp
r158350 r159856 40 40 #include "RemoveNodeCommand.h" 41 41 #include "RenderBox.h" 42 #include "StylePropert ySet.h"42 #include "StyleProperties.h" 43 43 44 44 namespace WebCore { -
trunk/Source/WebCore/editing/EditingStyle.cpp
r159733 r159856 45 45 #include "RenderStyle.h" 46 46 #include "StyleFontSizeFunctions.h" 47 #include "StylePropert ySet.h"47 #include "StyleProperties.h" 48 48 #include "StyleResolver.h" 49 49 #include "StyleRule.h" … … 90 90 enum EditingPropertiesToInclude { OnlyInheritableEditingProperties, AllEditingProperties }; 91 91 template <class StyleDeclarationType> 92 static PassRefPtr<MutableStylePropert ySet> copyEditingProperties(StyleDeclarationType* style, EditingPropertiesToInclude type)92 static PassRefPtr<MutableStyleProperties> copyEditingProperties(StyleDeclarationType* style, EditingPropertiesToInclude type) 93 93 { 94 94 if (type == AllEditingProperties) … … 106 106 } 107 107 108 static PassRefPtr<MutableStylePropert ySet> copyPropertiesFromComputedStyle(ComputedStyleExtractor& computedStyle, EditingStyle::PropertiesToInclude propertiesToInclude)108 static PassRefPtr<MutableStyleProperties> copyPropertiesFromComputedStyle(ComputedStyleExtractor& computedStyle, EditingStyle::PropertiesToInclude propertiesToInclude) 109 109 { 110 110 switch (propertiesToInclude) { … … 120 120 } 121 121 122 static PassRefPtr<MutableStylePropert ySet> copyPropertiesFromComputedStyle(Node* node, EditingStyle::PropertiesToInclude propertiesToInclude)122 static PassRefPtr<MutableStyleProperties> copyPropertiesFromComputedStyle(Node* node, EditingStyle::PropertiesToInclude propertiesToInclude) 123 123 { 124 124 ComputedStyleExtractor computedStyle(node); … … 126 126 } 127 127 128 static PassRefPtr<CSSValue> extractPropertyValue(const StylePropert ySet* style, CSSPropertyID propertyID)128 static PassRefPtr<CSSValue> extractPropertyValue(const StyleProperties* style, CSSPropertyID propertyID) 129 129 { 130 130 return style ? style->getPropertyCSSValue(propertyID) : PassRefPtr<CSSValue>(); … … 145 145 } 146 146 147 template<typename T> PassRefPtr<MutableStylePropert ySet> getPropertiesNotIn(StylePropertySet* styleWithRedundantProperties, T* baseStyle);147 template<typename T> PassRefPtr<MutableStyleProperties> getPropertiesNotIn(StyleProperties* styleWithRedundantProperties, T* baseStyle); 148 148 enum LegacyFontSizeMode { AlwaysUseLegacyFontSize, UseLegacyFontSizeOnlyIfPixelValuesMatch }; 149 149 static int legacyFontSizeFromCSSValue(Document*, CSSPrimitiveValue*, bool shouldUseFixedFontDefaultSize, LegacyFontSizeMode); 150 150 static bool isTransparentColorValue(CSSValue*); 151 static bool hasTransparentBackgroundColor(StylePropert ySet*);151 static bool hasTransparentBackgroundColor(StyleProperties*); 152 152 static PassRefPtr<CSSValue> backgroundColorInEffect(Node*); 153 153 … … 163 163 virtual bool matches(const Element* element) const { return !m_tagName || element->hasTagName(*m_tagName); } 164 164 virtual bool hasAttribute() const { return false; } 165 virtual bool propertyExistsInStyle(const StylePropert ySet* style) const { return style->getPropertyCSSValue(m_propertyID); }166 virtual bool valueIsPresentInStyle(Element*, StylePropert ySet*) const;165 virtual bool propertyExistsInStyle(const StyleProperties* style) const { return style->getPropertyCSSValue(m_propertyID); } 166 virtual bool valueIsPresentInStyle(Element*, StyleProperties*) const; 167 167 virtual void addToStyle(Element*, EditingStyle*) const; 168 168 … … 196 196 } 197 197 198 bool HTMLElementEquivalent::valueIsPresentInStyle(Element* element, StylePropert ySet* style) const198 bool HTMLElementEquivalent::valueIsPresentInStyle(Element* element, StyleProperties* style) const 199 199 { 200 200 RefPtr<CSSValue> value = style->getPropertyCSSValue(m_propertyID); … … 213 213 return adoptPtr(new HTMLTextDecorationEquivalent(primitiveValue, tagName)); 214 214 } 215 virtual bool propertyExistsInStyle(const StylePropert ySet*) const;216 virtual bool valueIsPresentInStyle(Element*, StylePropert ySet*) const;215 virtual bool propertyExistsInStyle(const StyleProperties*) const; 216 virtual bool valueIsPresentInStyle(Element*, StyleProperties*) const; 217 217 218 218 private: … … 226 226 } 227 227 228 bool HTMLTextDecorationEquivalent::propertyExistsInStyle(const StylePropert ySet* style) const228 bool HTMLTextDecorationEquivalent::propertyExistsInStyle(const StyleProperties* style) const 229 229 { 230 230 return style->getPropertyCSSValue(CSSPropertyWebkitTextDecorationsInEffect) || style->getPropertyCSSValue(CSSPropertyTextDecoration); 231 231 } 232 232 233 bool HTMLTextDecorationEquivalent::valueIsPresentInStyle(Element* element, StylePropert ySet* style) const233 bool HTMLTextDecorationEquivalent::valueIsPresentInStyle(Element* element, StyleProperties* style) const 234 234 { 235 235 RefPtr<CSSValue> styleValue = style->getPropertyCSSValue(CSSPropertyWebkitTextDecorationsInEffect); … … 252 252 bool matches(const Element* elem) const { return HTMLElementEquivalent::matches(elem) && elem->hasAttribute(m_attrName); } 253 253 virtual bool hasAttribute() const { return true; } 254 virtual bool valueIsPresentInStyle(Element*, StylePropert ySet*) const;254 virtual bool valueIsPresentInStyle(Element*, StyleProperties*) const; 255 255 virtual void addToStyle(Element*, EditingStyle*) const; 256 256 virtual PassRefPtr<CSSValue> attributeValueAsCSSValue(Element*) const; … … 275 275 } 276 276 277 bool HTMLAttributeEquivalent::valueIsPresentInStyle(Element* element, StylePropert ySet* style) const277 bool HTMLAttributeEquivalent::valueIsPresentInStyle(Element* element, StyleProperties* style) const 278 278 { 279 279 RefPtr<CSSValue> value = attributeValueAsCSSValue(element); … … 295 295 return 0; 296 296 297 RefPtr<MutableStylePropert ySet> dummyStyle;298 dummyStyle = MutableStylePropert ySet::create();297 RefPtr<MutableStyleProperties> dummyStyle; 298 dummyStyle = MutableStyleProperties::create(); 299 299 dummyStyle->setProperty(m_propertyID, element->getAttribute(m_attrName)); 300 300 return dummyStyle->getPropertyCSSValue(m_propertyID); … … 351 351 } 352 352 353 EditingStyle::EditingStyle(const StylePropert ySet* style)353 EditingStyle::EditingStyle(const StyleProperties* style) 354 354 : m_shouldUseFixedDefaultFontSize(false) 355 355 , m_fontSizeDelta(NoFontDelta) … … 476 476 { 477 477 if (!m_mutableStyle) 478 m_mutableStyle = MutableStylePropert ySet::create();478 m_mutableStyle = MutableStyleProperties::create(); 479 479 480 480 m_mutableStyle->setProperty(propertyID, value, important); … … 541 541 } 542 542 543 void EditingStyle::setStyle(PassRefPtr<MutableStylePropert ySet> style)543 void EditingStyle::setStyle(PassRefPtr<MutableStyleProperties> style) 544 544 { 545 545 m_mutableStyle = style; … … 550 550 } 551 551 552 void EditingStyle::overrideWithStyle(const StylePropert ySet* style)552 void EditingStyle::overrideWithStyle(const StyleProperties* style) 553 553 { 554 554 return mergeStyle(style, OverrideValues); … … 587 587 { 588 588 RefPtr<EditingStyle> textDirection = EditingStyle::create(); 589 textDirection->m_mutableStyle = MutableStylePropert ySet::create();589 textDirection->m_mutableStyle = MutableStyleProperties::create(); 590 590 textDirection->m_mutableStyle->setProperty(CSSPropertyUnicodeBidi, CSSValueEmbed, m_mutableStyle->propertyIsImportant(CSSPropertyUnicodeBidi)); 591 591 textDirection->m_mutableStyle->setProperty(CSSPropertyDirection, m_mutableStyle->getPropertyValue(CSSPropertyDirection), … … 610 610 if (!node || !node->parentNode()) 611 611 return; 612 RefPtr<MutableStylePropert ySet> parentStyle = copyPropertiesFromComputedStyle(node->parentNode(), EditingPropertiesInEffect);613 RefPtr<MutableStylePropert ySet> nodeStyle = copyPropertiesFromComputedStyle(node, EditingPropertiesInEffect);612 RefPtr<MutableStyleProperties> parentStyle = copyPropertiesFromComputedStyle(node->parentNode(), EditingPropertiesInEffect); 613 RefPtr<MutableStyleProperties> nodeStyle = copyPropertiesFromComputedStyle(node, EditingPropertiesInEffect); 614 614 nodeStyle->removeEquivalentProperties(parentStyle.get()); 615 615 m_mutableStyle->removeEquivalentProperties(nodeStyle.get()); … … 621 621 return; 622 622 623 RefPtr<MutableStylePropert ySet> parentStyle = copyPropertiesFromComputedStyle(node->parentNode(), EditingPropertiesInEffect);624 RefPtr<MutableStylePropert ySet> nodeStyle = copyPropertiesFromComputedStyle(node, EditingPropertiesInEffect);623 RefPtr<MutableStyleProperties> parentStyle = copyPropertiesFromComputedStyle(node->parentNode(), EditingPropertiesInEffect); 624 RefPtr<MutableStyleProperties> nodeStyle = copyPropertiesFromComputedStyle(node, EditingPropertiesInEffect); 625 625 nodeStyle->removeEquivalentProperties(parentStyle.get()); 626 626 … … 665 665 TriState EditingStyle::triStateOfStyle(T* styleToCompare, ShouldIgnoreTextOnlyProperties shouldIgnoreTextOnlyProperties) const 666 666 { 667 RefPtr<MutableStylePropert ySet> difference = getPropertiesNotIn(m_mutableStyle.get(), styleToCompare);667 RefPtr<MutableStyleProperties> difference = getPropertiesNotIn(m_mutableStyle.get(), styleToCompare); 668 668 669 669 if (shouldIgnoreTextOnlyProperties == IgnoreTextOnlyProperties) … … 713 713 ASSERT(!conflictingProperties || conflictingProperties->isEmpty()); 714 714 715 const StylePropert ySet* inlineStyle = element->inlineStyle();715 const StyleProperties* inlineStyle = element->inlineStyle(); 716 716 if (!m_mutableStyle || !inlineStyle) 717 717 return false; … … 902 902 903 903 if (element->hasAttribute(HTMLNames::styleAttr)) { 904 if (const StylePropert ySet* style = element->inlineStyle()) {904 if (const StyleProperties* style = element->inlineStyle()) { 905 905 unsigned propertyCount = style->propertyCount(); 906 906 for (unsigned i = 0; i < propertyCount; ++i) { … … 926 926 // which one of editingStyleAtPosition or computedStyle is called. 927 927 RefPtr<EditingStyle> editingStyleAtPosition = EditingStyle::create(position, EditingPropertiesInEffect); 928 StylePropert ySet* styleAtPosition = editingStyleAtPosition->m_mutableStyle.get();928 StyleProperties* styleAtPosition = editingStyleAtPosition->m_mutableStyle.get(); 929 929 930 930 RefPtr<CSSValue> unicodeBidi; … … 983 983 984 984 static inline bool elementMatchesAndPropertyIsNotInInlineStyleDecl(const HTMLElementEquivalent* equivalent, const StyledElement* element, 985 EditingStyle::CSSPropertyOverrideMode mode, StylePropert ySet* style)985 EditingStyle::CSSPropertyOverrideMode mode, StyleProperties* style) 986 986 { 987 987 return equivalent->matches(element) && (!element->inlineStyle() || !equivalent->propertyExistsInStyle(element->inlineStyle())) … … 989 989 } 990 990 991 static PassRefPtr<MutableStylePropert ySet> extractEditingProperties(const StylePropertySet* style, EditingStyle::PropertiesToInclude propertiesToInclude)991 static PassRefPtr<MutableStyleProperties> extractEditingProperties(const StyleProperties* style, EditingStyle::PropertiesToInclude propertiesToInclude) 992 992 { 993 993 if (!style) … … 1075 1075 } 1076 1076 1077 void EditingStyle::mergeStyle(const StylePropert ySet* style, CSSPropertyOverrideMode mode)1077 void EditingStyle::mergeStyle(const StyleProperties* style, CSSPropertyOverrideMode mode) 1078 1078 { 1079 1079 if (!style) … … 1087 1087 unsigned propertyCount = style->propertyCount(); 1088 1088 for (unsigned i = 0; i < propertyCount; ++i) { 1089 StylePropert ySet::PropertyReference property = style->propertyAt(i);1089 StyleProperties::PropertyReference property = style->propertyAt(i); 1090 1090 RefPtr<CSSValue> value = m_mutableStyle->getPropertyCSSValue(property.id()); 1091 1091 … … 1108 1108 } 1109 1109 1110 static PassRefPtr<MutableStylePropert ySet> styleFromMatchedRulesForElement(Element* element, unsigned rulesToInclude)1111 { 1112 RefPtr<MutableStylePropert ySet> style = MutableStylePropertySet::create();1110 static PassRefPtr<MutableStyleProperties> styleFromMatchedRulesForElement(Element* element, unsigned rulesToInclude) 1111 { 1112 RefPtr<MutableStyleProperties> style = MutableStyleProperties::create(); 1113 1113 Vector<RefPtr<StyleRuleBase>> matchedRules = element->document().ensureStyleResolver().styleRulesForElement(element, rulesToInclude); 1114 1114 for (unsigned i = 0; i < matchedRules.size(); ++i) { … … 1122 1122 void EditingStyle::mergeStyleFromRules(StyledElement* element) 1123 1123 { 1124 RefPtr<MutableStylePropert ySet> styleFromMatchedRules = styleFromMatchedRulesForElement(element,1124 RefPtr<MutableStyleProperties> styleFromMatchedRules = styleFromMatchedRulesForElement(element, 1125 1125 StyleResolver::AuthorCSSRules | StyleResolver::CrossOriginCSSRules); 1126 1126 // Styles from the inline style declaration, held in the variable "style", take precedence … … 1140 1140 // For example: style="height: 1%; overflow: visible;" in quirksmode 1141 1141 // FIXME: There are others like this, see <rdar://problem/5195123> Slashdot copy/paste fidelity problem 1142 RefPtr<MutableStylePropert ySet> fromComputedStyle = MutableStylePropertySet::create();1142 RefPtr<MutableStyleProperties> fromComputedStyle = MutableStyleProperties::create(); 1143 1143 ComputedStyleExtractor computedStyle(element); 1144 1144 … … 1146 1146 unsigned propertyCount = m_mutableStyle->propertyCount(); 1147 1147 for (unsigned i = 0; i < propertyCount; ++i) { 1148 StylePropert ySet::PropertyReference property = m_mutableStyle->propertyAt(i);1148 StyleProperties::PropertyReference property = m_mutableStyle->propertyAt(i); 1149 1149 CSSValue* value = property.value(); 1150 1150 if (!value->isPrimitiveValue()) … … 1159 1159 } 1160 1160 1161 static void removePropertiesInStyle(MutableStylePropert ySet* styleToRemovePropertiesFrom, StylePropertySet* style)1161 static void removePropertiesInStyle(MutableStyleProperties* styleToRemovePropertiesFrom, StyleProperties* style) 1162 1162 { 1163 1163 unsigned propertyCount = style->propertyCount(); … … 1176 1176 1177 1177 // 1. Remove style from matched rules because style remain without repeating it in inline style declaration 1178 RefPtr<MutableStylePropert ySet> styleFromMatchedRules = styleFromMatchedRulesForElement(element, StyleResolver::AllButEmptyCSSRules);1178 RefPtr<MutableStyleProperties> styleFromMatchedRules = styleFromMatchedRulesForElement(element, StyleResolver::AllButEmptyCSSRules); 1179 1179 if (styleFromMatchedRules && !styleFromMatchedRules->isEmpty()) 1180 1180 m_mutableStyle = getPropertiesNotIn(m_mutableStyle.get(), styleFromMatchedRules.get()); … … 1205 1205 return; 1206 1206 1207 RefPtr<StylePropert ySet> defaultStyle = styleFromMatchedRulesForElement(element, StyleResolver::UAAndUserCSSRules);1207 RefPtr<StyleProperties> defaultStyle = styleFromMatchedRulesForElement(element, StyleResolver::UAAndUserCSSRules); 1208 1208 1209 1209 removePropertiesInStyle(m_mutableStyle.get(), defaultStyle.get()); … … 1213 1213 { 1214 1214 if (!m_mutableStyle) 1215 m_mutableStyle = MutableStylePropert ySet::create();1215 m_mutableStyle = MutableStyleProperties::create(); 1216 1216 const bool propertyIsImportant = true; 1217 1217 m_mutableStyle->setProperty(CSSPropertyDisplay, CSSValueInline, propertyIsImportant); … … 1345 1345 } 1346 1346 1347 static void reconcileTextDecorationProperties(MutableStylePropert ySet* style)1347 static void reconcileTextDecorationProperties(MutableStyleProperties* style) 1348 1348 { 1349 1349 RefPtr<CSSValue> textDecorationsInEffect = style->getPropertyCSSValue(CSSPropertyWebkitTextDecorationsInEffect); … … 1381 1381 1382 1382 // FIXME: take care of background-color in effect 1383 RefPtr<MutableStylePropert ySet> mutableStyle = getPropertiesNotIn(style->style(), &computedStyle);1383 RefPtr<MutableStyleProperties> mutableStyle = getPropertiesNotIn(style->style(), &computedStyle); 1384 1384 1385 1385 reconcileTextDecorationProperties(mutableStyle.get()); … … 1400 1400 } 1401 1401 1402 static void setTextDecorationProperty(MutableStylePropert ySet* style, const CSSValueList* newTextDecoration, CSSPropertyID propertyID)1402 static void setTextDecorationProperty(MutableStyleProperties* style, const CSSValueList* newTextDecoration, CSSPropertyID propertyID) 1403 1403 { 1404 1404 if (newTextDecoration->length()) … … 1410 1410 } 1411 1411 1412 void StyleChange::extractTextStyles(Document* document, MutableStylePropert ySet* style, bool shouldUseFixedFontDefaultSize)1412 void StyleChange::extractTextStyles(Document* document, MutableStyleProperties* style, bool shouldUseFixedFontDefaultSize) 1413 1413 { 1414 1414 ASSERT(style); … … 1475 1475 } 1476 1476 1477 static void diffTextDecorations(MutableStylePropert ySet* style, CSSPropertyID propertID, CSSValue* refTextDecoration)1477 static void diffTextDecorations(MutableStyleProperties* style, CSSPropertyID propertID, CSSValue* refTextDecoration) 1478 1478 { 1479 1479 RefPtr<CSSValue> textDecoration = style->getPropertyCSSValue(propertID); … … 1528 1528 1529 1529 template<typename T> 1530 static PassRefPtr<MutableStylePropert ySet> extractPropertiesNotIn(StylePropertySet* styleWithRedundantProperties, T* baseStyle)1530 static PassRefPtr<MutableStyleProperties> extractPropertiesNotIn(StyleProperties* styleWithRedundantProperties, T* baseStyle) 1531 1531 { 1532 1532 ASSERT(styleWithRedundantProperties); 1533 RefPtr<MutableStylePropert ySet> result = styleWithRedundantProperties->mutableCopy();1533 RefPtr<MutableStyleProperties> result = styleWithRedundantProperties->mutableCopy(); 1534 1534 1535 1535 result->removeEquivalentProperties(baseStyle); … … 1556 1556 1557 1557 template<typename T> 1558 PassRefPtr<MutableStylePropert ySet> getPropertiesNotIn(StylePropertySet* styleWithRedundantProperties, T* baseStyle)1558 PassRefPtr<MutableStyleProperties> getPropertiesNotIn(StyleProperties* styleWithRedundantProperties, T* baseStyle) 1559 1559 { 1560 1560 return extractPropertiesNotIn(styleWithRedundantProperties, baseStyle); … … 1599 1599 } 1600 1600 1601 bool hasTransparentBackgroundColor(StylePropert ySet* style)1601 bool hasTransparentBackgroundColor(StyleProperties* style) 1602 1602 { 1603 1603 RefPtr<CSSValue> cssValue = style->getPropertyCSSValue(CSSPropertyBackgroundColor); -
trunk/Source/WebCore/editing/EditingStyle.h
r154938 r159856 52 52 class Element; 53 53 class HTMLElement; 54 class MutableStylePropert ySet;54 class MutableStyleProperties; 55 55 class Node; 56 56 class Position; 57 57 class QualifiedName; 58 58 class RenderStyle; 59 class StylePropert ySet;59 class StyleProperties; 60 60 class StyledElement; 61 61 class VisibleSelection; … … 85 85 } 86 86 87 static PassRefPtr<EditingStyle> create(const StylePropert ySet* style)87 static PassRefPtr<EditingStyle> create(const StyleProperties* style) 88 88 { 89 89 return adoptRef(new EditingStyle(style)); … … 97 97 ~EditingStyle(); 98 98 99 MutableStylePropert ySet* style() { return m_mutableStyle.get(); }99 MutableStyleProperties* style() { return m_mutableStyle.get(); } 100 100 bool textDirection(WritingDirection&) const; 101 101 bool isEmpty() const; 102 void setStyle(PassRefPtr<MutableStylePropert ySet>);103 void overrideWithStyle(const StylePropert ySet*);102 void setStyle(PassRefPtr<MutableStyleProperties>); 103 void overrideWithStyle(const StyleProperties*); 104 104 void clear(); 105 105 PassRefPtr<EditingStyle> copy() const; … … 148 148 EditingStyle(Node*, PropertiesToInclude); 149 149 EditingStyle(const Position&, PropertiesToInclude); 150 explicit EditingStyle(const StylePropert ySet*);150 explicit EditingStyle(const StyleProperties*); 151 151 EditingStyle(CSSPropertyID, const String& value); 152 152 void init(Node*, PropertiesToInclude); … … 158 158 bool conflictsWithInlineStyleOfElement(StyledElement*, EditingStyle* extractedStyle, Vector<CSSPropertyID>* conflictingProperties) const; 159 159 void mergeInlineAndImplicitStyleOfElement(StyledElement*, CSSPropertyOverrideMode, PropertiesToInclude); 160 void mergeStyle(const StylePropert ySet*, CSSPropertyOverrideMode);161 162 RefPtr<MutableStylePropert ySet> m_mutableStyle;160 void mergeStyle(const StyleProperties*, CSSPropertyOverrideMode); 161 162 RefPtr<MutableStyleProperties> m_mutableStyle; 163 163 bool m_shouldUseFixedDefaultFontSize; 164 164 float m_fontSizeDelta; … … 214 214 } 215 215 private: 216 void extractTextStyles(Document*, MutableStylePropert ySet*, bool shouldUseFixedFontDefaultSize);216 void extractTextStyles(Document*, MutableStyleProperties*, bool shouldUseFixedFontDefaultSize); 217 217 218 218 String m_cssStyle; -
trunk/Source/WebCore/editing/Editor.cpp
r159733 r159856 78 78 #include "SpellChecker.h" 79 79 #include "SpellingCorrectionCommand.h" 80 #include "StylePropert ySet.h"80 #include "StyleProperties.h" 81 81 #include "Text.h" 82 82 #include "TextCheckerClient.h" … … 747 747 } 748 748 749 void Editor::applyStyle(StylePropert ySet* style, EditAction editingAction)749 void Editor::applyStyle(StyleProperties* style, EditAction editingAction) 750 750 { 751 751 switch (m_frame.selection().selectionType()) { … … 763 763 } 764 764 765 bool Editor::shouldApplyStyle(StylePropert ySet* style, Range* range)765 bool Editor::shouldApplyStyle(StyleProperties* style, Range* range) 766 766 { 767 767 return client()->shouldApplyStyle(style, range); 768 768 } 769 769 770 void Editor::applyParagraphStyle(StylePropert ySet* style, EditAction editingAction)770 void Editor::applyParagraphStyle(StyleProperties* style, EditAction editingAction) 771 771 { 772 772 switch (m_frame.selection().selectionType()) { … … 782 782 } 783 783 784 void Editor::applyStyleToSelection(StylePropert ySet* style, EditAction editingAction)784 void Editor::applyStyleToSelection(StyleProperties* style, EditAction editingAction) 785 785 { 786 786 if (!style || style->isEmpty() || !canEditRichly()) … … 791 791 } 792 792 793 void Editor::applyParagraphStyleToSelection(StylePropert ySet* style, EditAction editingAction)793 void Editor::applyParagraphStyleToSelection(StyleProperties* style, EditAction editingAction) 794 794 { 795 795 if (!style || style->isEmpty() || !canEditRichly()) … … 1424 1424 } 1425 1425 1426 RefPtr<MutableStylePropert ySet> style = MutableStylePropertySet::create();1426 RefPtr<MutableStyleProperties> style = MutableStyleProperties::create(); 1427 1427 style->setProperty(CSSPropertyDirection, direction == LeftToRightWritingDirection ? "ltr" : direction == RightToLeftWritingDirection ? "rtl" : "inherit", false); 1428 1428 applyParagraphStyleToSelection(style.get(), EditActionSetWritingDirection); … … 2731 2731 } 2732 2732 2733 void Editor::computeAndSetTypingStyle(StylePropert ySet* style, EditAction editingAction)2733 void Editor::computeAndSetTypingStyle(StyleProperties* style, EditAction editingAction) 2734 2734 { 2735 2735 if (!style || style->isEmpty()) { -
trunk/Source/WebCore/editing/Editor.h
r157653 r159856 67 67 class SpellCheckRequest; 68 68 class SpellChecker; 69 class StylePropert ySet;69 class StyleProperties; 70 70 class Text; 71 71 class TextCheckerClient; … … 140 140 bool shouldInsertText(const String&, Range*, EditorInsertAction) const; 141 141 bool shouldDeleteRange(Range*) const; 142 bool shouldApplyStyle(StylePropert ySet*, Range*);142 bool shouldApplyStyle(StyleProperties*, Range*); 143 143 144 144 void respondToChangedContents(const VisibleSelection& endingSelection); … … 167 167 bool dispatchCPPEvent(const AtomicString&, ClipboardAccessPolicy); 168 168 169 void applyStyle(StylePropert ySet*, EditAction = EditActionUnspecified);170 void applyParagraphStyle(StylePropert ySet*, EditAction = EditActionUnspecified);171 void applyStyleToSelection(StylePropert ySet*, EditAction);172 void applyParagraphStyleToSelection(StylePropert ySet*, EditAction);169 void applyStyle(StyleProperties*, EditAction = EditActionUnspecified); 170 void applyParagraphStyle(StyleProperties*, EditAction = EditActionUnspecified); 171 void applyStyleToSelection(StyleProperties*, EditAction); 172 void applyParagraphStyleToSelection(StyleProperties*, EditAction); 173 173 174 174 void appliedEditing(PassRefPtr<CompositeEditCommand>); … … 333 333 void setMark(const VisibleSelection&); 334 334 335 void computeAndSetTypingStyle(StylePropert ySet* , EditAction = EditActionUnspecified);335 void computeAndSetTypingStyle(StyleProperties* , EditAction = EditActionUnspecified); 336 336 void applyEditingStyleToBodyElement() const; 337 337 void applyEditingStyleToElement(Element*) const; -
trunk/Source/WebCore/editing/EditorCommand.cpp
r158350 r159856 55 55 #include "Settings.h" 56 56 #include "Sound.h" 57 #include "StylePropert ySet.h"57 #include "StyleProperties.h" 58 58 #include "TypingCommand.h" 59 59 #include "UnlinkCommand.h" … … 99 99 } 100 100 101 static bool applyCommandToFrame(Frame& frame, EditorCommandSource source, EditAction action, StylePropert ySet* style)101 static bool applyCommandToFrame(Frame& frame, EditorCommandSource source, EditAction action, StyleProperties* style) 102 102 { 103 103 // FIXME: We don't call shouldApplyStyle when the source is DOM; is there a good reason for that? … … 117 117 static bool executeApplyStyle(Frame& frame, EditorCommandSource source, EditAction action, CSSPropertyID propertyID, const String& propertyValue) 118 118 { 119 RefPtr<MutableStylePropert ySet> style = MutableStylePropertySet::create();119 RefPtr<MutableStyleProperties> style = MutableStyleProperties::create(); 120 120 style->setProperty(propertyID, propertyValue); 121 121 return applyCommandToFrame(frame, source, action, style.get()); … … 124 124 static bool executeApplyStyle(Frame& frame, EditorCommandSource source, EditAction action, CSSPropertyID propertyID, CSSValueID propertyValue) 125 125 { 126 RefPtr<MutableStylePropert ySet> style = MutableStylePropertySet::create();126 RefPtr<MutableStyleProperties> style = MutableStyleProperties::create(); 127 127 style->setProperty(propertyID, propertyValue); 128 128 return applyCommandToFrame(frame, source, action, style.get()); … … 151 151 152 152 // FIXME: We shouldn't be having to convert new style into text. We should have setPropertyCSSValue. 153 RefPtr<MutableStylePropert ySet> newMutableStyle = MutableStylePropertySet::create();153 RefPtr<MutableStyleProperties> newMutableStyle = MutableStyleProperties::create(); 154 154 newMutableStyle->setProperty(propertyID, newStyle); 155 155 return applyCommandToFrame(frame, source, action, newMutableStyle.get()); … … 174 174 static bool executeApplyParagraphStyle(Frame& frame, EditorCommandSource source, EditAction action, CSSPropertyID propertyID, const String& propertyValue) 175 175 { 176 RefPtr<MutableStylePropert ySet> style = MutableStylePropertySet::create();176 RefPtr<MutableStyleProperties> style = MutableStyleProperties::create(); 177 177 style->setProperty(propertyID, propertyValue); 178 178 // FIXME: We don't call shouldApplyStyle when the source is DOM; is there a good reason for that? … … 591 591 static bool executeMakeTextWritingDirectionLeftToRight(Frame& frame, Event*, EditorCommandSource, const String&) 592 592 { 593 RefPtr<MutableStylePropert ySet> style = MutableStylePropertySet::create();593 RefPtr<MutableStyleProperties> style = MutableStyleProperties::create(); 594 594 style->setProperty(CSSPropertyUnicodeBidi, CSSValueEmbed); 595 595 style->setProperty(CSSPropertyDirection, CSSValueLtr); … … 600 600 static bool executeMakeTextWritingDirectionNatural(Frame& frame, Event*, EditorCommandSource, const String&) 601 601 { 602 RefPtr<MutableStylePropert ySet> style = MutableStylePropertySet::create();602 RefPtr<MutableStyleProperties> style = MutableStyleProperties::create(); 603 603 style->setProperty(CSSPropertyUnicodeBidi, CSSValueNormal); 604 604 frame.editor().applyStyle(style.get(), EditActionSetWritingDirection); … … 608 608 static bool executeMakeTextWritingDirectionRightToLeft(Frame& frame, Event*, EditorCommandSource, const String&) 609 609 { 610 RefPtr<MutableStylePropert ySet> style = MutableStylePropertySet::create();610 RefPtr<MutableStyleProperties> style = MutableStyleProperties::create(); 611 611 style->setProperty(CSSPropertyUnicodeBidi, CSSValueEmbed); 612 612 style->setProperty(CSSPropertyDirection, CSSValueRtl); -
trunk/Source/WebCore/editing/FrameSelection.cpp
r158537 r159856 59 59 #include "Settings.h" 60 60 #include "SpatialNavigation.h" 61 #include "StylePropert ySet.h"61 #include "StyleProperties.h" 62 62 #include "TypingCommand.h" 63 63 #include "VisibleUnits.h" … … 1907 1907 } 1908 1908 1909 PassRefPtr<MutableStylePropert ySet> FrameSelection::copyTypingStyle() const1909 PassRefPtr<MutableStyleProperties> FrameSelection::copyTypingStyle() const 1910 1910 { 1911 1911 if (!m_typingStyle || !m_typingStyle->style()) -
trunk/Source/WebCore/editing/FrameSelection.h
r156982 r159856 42 42 class GraphicsContext; 43 43 class HTMLFormElement; 44 class MutableStylePropert ySet;44 class MutableStyleProperties; 45 45 class RenderObject; 46 46 class RenderView; … … 238 238 239 239 EditingStyle* typingStyle() const; 240 PassRefPtr<MutableStylePropert ySet> copyTypingStyle() const;240 PassRefPtr<MutableStyleProperties> copyTypingStyle() const; 241 241 void setTypingStyle(PassRefPtr<EditingStyle>); 242 242 void clearTypingStyle(); -
trunk/Source/WebCore/editing/RemoveCSSPropertyCommand.cpp
r154938 r159856 29 29 #include "CSSStyleDeclaration.h" 30 30 #include "ExceptionCodePlaceholder.h" 31 #include "StylePropert ySet.h"31 #include "StyleProperties.h" 32 32 #include "StyledElement.h" 33 33 #include <wtf/Assertions.h> … … 50 50 void RemoveCSSPropertyCommand::doApply() 51 51 { 52 const StylePropert ySet* style = m_element->inlineStyle();52 const StyleProperties* style = m_element->inlineStyle(); 53 53 m_oldValue = style->getPropertyValue(m_property); 54 54 m_important = style->propertyIsImportant(m_property); -
trunk/Source/WebCore/editing/RemoveFormatCommand.cpp
r158350 r159856 33 33 #include "FrameSelection.h" 34 34 #include "HTMLNames.h" 35 #include "StylePropert ySet.h"35 #include "StyleProperties.h" 36 36 37 37 namespace WebCore { -
trunk/Source/WebCore/editing/ReplaceSelectionCommand.cpp
r159733 r159856 50 50 #include "SimplifyMarkupCommand.h" 51 51 #include "SmartReplace.h" 52 #include "StylePropert ySet.h"52 #include "StyleProperties.h" 53 53 #include "Text.h" 54 54 #include "TextIterator.h" … … 484 484 StyledElement* element = toStyledElement(node.get()); 485 485 486 const StylePropert ySet* inlineStyle = element->inlineStyle();486 const StyleProperties* inlineStyle = element->inlineStyle(); 487 487 RefPtr<EditingStyle> newInlineStyle = EditingStyle::create(inlineStyle); 488 488 if (inlineStyle) { -
trunk/Source/WebCore/editing/ios/EditorIOS.mm
r159416 r159856 51 51 #include "SharedBuffer.h" 52 52 #include "SoftLinking.h" 53 #include "StylePropert ySet.h"53 #include "StyleProperties.h" 54 54 #include "Text.h" 55 55 #include "TypingCommand.h" … … 171 171 } 172 172 173 RefPtr<MutableStylePropert ySet> style = MutableStylePropertySet::create();173 RefPtr<MutableStyleProperties> style = MutableStyleProperties::create(); 174 174 style->setProperty(CSSPropertyTextAlign, newValue); 175 175 applyParagraphStyle(style.get()); … … 278 278 279 279 RefPtr<EditingStyle> editingStyle = EditingStyle::create(m_frame.document()->body()); 280 RefPtr<MutableStylePropert ySet> defaultStyle = editingStyle.get()->style()->mutableCopy();280 RefPtr<MutableStyleProperties> defaultStyle = editingStyle.get()->style()->mutableCopy(); 281 281 282 282 // 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 55 55 #import "RuntimeApplicationChecks.h" 56 56 #import "Sound.h" 57 #import "StylePropert ySet.h"57 #import "StyleProperties.h" 58 58 #import "Text.h" 59 59 #import "TypingCommand.h" -
trunk/Source/WebCore/editing/markup.cpp
r159649 r159856 53 53 #include "Range.h" 54 54 #include "RenderBlock.h" 55 #include "StylePropert ySet.h"55 #include "StyleProperties.h" 56 56 #include "TextIterator.h" 57 57 #include "VisibleSelection.h" … … 69 69 using namespace HTMLNames; 70 70 71 static bool propertyMissingOrEqualToNone(StylePropert ySet*, CSSPropertyID);71 static bool propertyMissingOrEqualToNone(StyleProperties*, CSSPropertyID); 72 72 73 73 class AttributeChange { … … 125 125 Node* serializeNodes(Node* startNode, Node* pastEnd); 126 126 void wrapWithNode(Node&, bool convertBlocksToInlines = false, RangeFullySelectsNode = DoesFullySelectNode); 127 void wrapWithStyleNode(StylePropert ySet*, Document&, bool isBlock = false);127 void wrapWithStyleNode(StyleProperties*, Document&, bool isBlock = false); 128 128 String takeResults(); 129 129 … … 131 131 132 132 private: 133 void appendStyleNodeOpenTag(StringBuilder&, StylePropert ySet*, Document&, bool isBlock = false);133 void appendStyleNodeOpenTag(StringBuilder&, StyleProperties*, Document&, bool isBlock = false); 134 134 const String& styleNodeCloseTag(bool isBlock = false); 135 135 … … 185 185 } 186 186 187 void StyledMarkupAccumulator::wrapWithStyleNode(StylePropert ySet* style, Document& document, bool isBlock)187 void StyledMarkupAccumulator::wrapWithStyleNode(StyleProperties* style, Document& document, bool isBlock) 188 188 { 189 189 StringBuilder openTag; … … 193 193 } 194 194 195 void StyledMarkupAccumulator::appendStyleNodeOpenTag(StringBuilder& out, StylePropert ySet* style, Document& document, bool isBlock)195 void StyledMarkupAccumulator::appendStyleNodeOpenTag(StringBuilder& out, StyleProperties* style, Document& document, bool isBlock) 196 196 { 197 197 // wrappingStyleForSerialization should have removed -webkit-text-decorations-in-effect … … 455 455 } 456 456 457 static bool propertyMissingOrEqualToNone(StylePropert ySet* style, CSSPropertyID propertyID)457 static bool propertyMissingOrEqualToNone(StyleProperties* style, CSSPropertyID propertyID) 458 458 { 459 459 if (!style) -
trunk/Source/WebCore/html/HTMLBRElement.cpp
r158985 r159856 57 57 } 58 58 59 void HTMLBRElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)59 void HTMLBRElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 60 60 { 61 61 if (name == clearAttr) { -
trunk/Source/WebCore/html/HTMLBRElement.h
r158985 r159856 40 40 41 41 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 42 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;42 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 43 43 44 44 virtual RenderElement* createRenderer(PassRef<RenderStyle>) OVERRIDE; -
trunk/Source/WebCore/html/HTMLBodyElement.cpp
r158985 r159856 36 36 #include "HTMLParserIdioms.h" 37 37 #include "Page.h" 38 #include "StylePropert ySet.h"38 #include "StyleProperties.h" 39 39 40 40 namespace WebCore { … … 69 69 } 70 70 71 void HTMLBodyElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)71 void HTMLBodyElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 72 72 { 73 73 if (name == backgroundAttr) { -
trunk/Source/WebCore/html/HTMLBodyElement.h
r159416 r159856 73 73 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 74 74 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 75 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;75 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 76 76 77 77 virtual InsertionNotificationRequest insertedInto(ContainerNode&) OVERRIDE; -
trunk/Source/WebCore/html/HTMLDivElement.cpp
r158985 r159856 56 56 } 57 57 58 void HTMLDivElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)58 void HTMLDivElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 59 59 { 60 60 if (name == alignAttr) { -
trunk/Source/WebCore/html/HTMLDivElement.h
r158985 r159856 38 38 private: 39 39 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 40 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;40 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 41 41 }; 42 42 -
trunk/Source/WebCore/html/HTMLElement.cpp
r158985 r159856 53 53 #include "ScriptController.h" 54 54 #include "Settings.h" 55 #include "StylePropert ySet.h"55 #include "StyleProperties.h" 56 56 #include "SubframeLoader.h" 57 57 #include "Text.h" … … 139 139 } 140 140 141 void HTMLElement::applyBorderAttributeToStyle(const AtomicString& value, MutableStylePropert ySet& style)141 void HTMLElement::applyBorderAttributeToStyle(const AtomicString& value, MutableStyleProperties& style) 142 142 { 143 143 addPropertyToPresentationAttributeStyle(style, CSSPropertyBorderWidth, parseBorderWidthAttribute(value), CSSPrimitiveValue::CSS_PX); … … 145 145 } 146 146 147 void HTMLElement::mapLanguageAttributeToLocale(const AtomicString& value, MutableStylePropert ySet& style)147 void HTMLElement::mapLanguageAttributeToLocale(const AtomicString& value, MutableStyleProperties& style) 148 148 { 149 149 if (!value.isEmpty()) { … … 163 163 } 164 164 165 void HTMLElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)165 void HTMLElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 166 166 { 167 167 if (name == alignAttr) { … … 603 603 } 604 604 605 void HTMLElement::applyAlignmentAttributeToStyle(const AtomicString& alignment, MutableStylePropert ySet& style)605 void HTMLElement::applyAlignmentAttributeToStyle(const AtomicString& alignment, MutableStyleProperties& style) 606 606 { 607 607 // Vertical alignment with respect to the current baseline of the text … … 966 966 } 967 967 968 void HTMLElement::addHTMLLengthToStyle(MutableStylePropert ySet& style, CSSPropertyID propertyID, const String& value)968 void HTMLElement::addHTMLLengthToStyle(MutableStyleProperties& style, CSSPropertyID propertyID, const String& value) 969 969 { 970 970 // FIXME: This function should not spin up the CSS parser, but should instead just figure out the correct … … 1055 1055 1056 1056 // Color parsing that matches HTML's "rules for parsing a legacy color value" 1057 void HTMLElement::addHTMLColorToStyle(MutableStylePropert ySet& style, CSSPropertyID propertyID, const String& attributeValue)1057 void HTMLElement::addHTMLColorToStyle(MutableStyleProperties& style, CSSPropertyID propertyID, const String& attributeValue) 1058 1058 { 1059 1059 // 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 99 99 HTMLElement(const QualifiedName& tagName, Document&, ConstructionType); 100 100 101 void addHTMLLengthToStyle(MutableStylePropert ySet&, CSSPropertyID, const String& value);102 void addHTMLColorToStyle(MutableStylePropert ySet&, CSSPropertyID, const String& color);101 void addHTMLLengthToStyle(MutableStyleProperties&, CSSPropertyID, const String& value); 102 void addHTMLColorToStyle(MutableStyleProperties&, CSSPropertyID, const String& color); 103 103 104 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStylePropert ySet&);105 void applyBorderAttributeToStyle(const AtomicString&, MutableStylePropert ySet&);104 void applyAlignmentAttributeToStyle(const AtomicString&, MutableStyleProperties&); 105 void applyBorderAttributeToStyle(const AtomicString&, MutableStyleProperties&); 106 106 107 107 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 108 108 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 109 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;109 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 110 110 unsigned parseBorderWidthAttribute(const AtomicString&) const; 111 111 … … 118 118 virtual String nodeName() const OVERRIDE FINAL; 119 119 120 void mapLanguageAttributeToLocale(const AtomicString&, MutableStylePropert ySet&);120 void mapLanguageAttributeToLocale(const AtomicString&, MutableStyleProperties&); 121 121 122 122 virtual HTMLFormElement* virtualForm() const; -
trunk/Source/WebCore/html/HTMLEmbedElement.cpp
r159827 r159856 84 84 } 85 85 86 void HTMLEmbedElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)86 void HTMLEmbedElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 87 87 { 88 88 if (name == hiddenAttr) { -
trunk/Source/WebCore/html/HTMLEmbedElement.h
r159417 r159856 37 37 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 38 38 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 39 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;39 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 40 40 41 41 virtual bool rendererIsNeeded(const RenderStyle&); -
trunk/Source/WebCore/html/HTMLFontElement.cpp
r158985 r159856 32 32 #include "HTMLNames.h" 33 33 #include "HTMLParserIdioms.h" 34 #include "StylePropert ySet.h"34 #include "StyleProperties.h" 35 35 #include <wtf/text/StringBuilder.h> 36 36 … … 187 187 } 188 188 189 void HTMLFontElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)189 void HTMLFontElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 190 190 { 191 191 if (name == sizeAttr) { -
trunk/Source/WebCore/html/HTMLFontElement.h
r158985 r159856 39 39 40 40 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 41 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;41 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 42 42 }; 43 43 -
trunk/Source/WebCore/html/HTMLFrameSetElement.cpp
r158985 r159856 71 71 } 72 72 73 void HTMLFrameSetElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)73 void HTMLFrameSetElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 74 74 { 75 75 if (name == bordercolorAttr) -
trunk/Source/WebCore/html/HTMLFrameSetElement.h
r158985 r159856 72 72 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 73 73 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 74 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;74 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 75 75 76 76 virtual void willAttachRenderers() OVERRIDE; -
trunk/Source/WebCore/html/HTMLHRElement.cpp
r158985 r159856 29 29 #include "CSSValuePool.h" 30 30 #include "HTMLNames.h" 31 #include "StylePropert ySet.h"31 #include "StyleProperties.h" 32 32 33 33 namespace WebCore { … … 58 58 } 59 59 60 void HTMLHRElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)60 void HTMLHRElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 61 61 { 62 62 if (name == alignAttr) { -
trunk/Source/WebCore/html/HTMLHRElement.h
r158985 r159856 39 39 40 40 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 41 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;41 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 42 42 }; 43 43 -
trunk/Source/WebCore/html/HTMLIFrameElement.cpp
r158985 r159856 57 57 } 58 58 59 void HTMLIFrameElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)59 void HTMLIFrameElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 60 60 { 61 61 if (name == widthAttr) -
trunk/Source/WebCore/html/HTMLIFrameElement.h
r158985 r159856 40 40 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 41 41 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 42 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;42 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 43 43 44 44 virtual bool rendererIsNeeded(const RenderStyle&); -
trunk/Source/WebCore/html/HTMLImageElement.cpp
r159489 r159856 86 86 } 87 87 88 void HTMLImageElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)88 void HTMLImageElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 89 89 { 90 90 if (name == widthAttr) -
trunk/Source/WebCore/html/HTMLImageElement.h
r158985 r159856 96 96 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 97 97 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 98 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;98 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 99 99 100 100 virtual void didAttachRenderers() OVERRIDE; -
trunk/Source/WebCore/html/HTMLInputElement.cpp
r159417 r159856 594 594 } 595 595 596 void HTMLInputElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)596 void HTMLInputElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 597 597 { 598 598 if (name == vspaceAttr) { -
trunk/Source/WebCore/html/HTMLInputElement.h
r158985 r159856 362 362 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 363 363 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 364 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;364 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 365 365 virtual void finishParsingChildren() OVERRIDE; 366 366 -
trunk/Source/WebCore/html/HTMLLIElement.cpp
r158985 r159856 58 58 } 59 59 60 void HTMLLIElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)60 void HTMLLIElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 61 61 { 62 62 if (name == typeAttr) { -
trunk/Source/WebCore/html/HTMLLIElement.h
r158985 r159856 38 38 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 39 39 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 40 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;40 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 41 41 42 42 virtual void didAttachRenderers() OVERRIDE; -
trunk/Source/WebCore/html/HTMLMarqueeElement.cpp
r158985 r159856 66 66 } 67 67 68 void HTMLMarqueeElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)68 void HTMLMarqueeElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 69 69 { 70 70 if (name == widthAttr) { -
trunk/Source/WebCore/html/HTMLMarqueeElement.h
r159733 r159856 55 55 56 56 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 57 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;57 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 58 58 59 59 // ActiveDOMObject -
trunk/Source/WebCore/html/HTMLOListElement.cpp
r158985 r159856 62 62 } 63 63 64 void HTMLOListElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)64 void HTMLOListElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 65 65 { 66 66 if (name == typeAttr) { -
trunk/Source/WebCore/html/HTMLOListElement.h
r159733 r159856 56 56 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 57 57 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 58 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;58 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 59 59 60 60 int m_start; -
trunk/Source/WebCore/html/HTMLObjectElement.cpp
r159827 r159856 90 90 } 91 91 92 void HTMLObjectElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)92 void HTMLObjectElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 93 93 { 94 94 if (name == borderAttr) -
trunk/Source/WebCore/html/HTMLObjectElement.h
r158985 r159856 71 71 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 72 72 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 73 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;73 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 74 74 75 75 virtual InsertionNotificationRequest insertedInto(ContainerNode&) OVERRIDE; -
trunk/Source/WebCore/html/HTMLParagraphElement.cpp
r158985 r159856 57 57 } 58 58 59 void HTMLParagraphElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)59 void HTMLParagraphElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 60 60 { 61 61 if (name == alignAttr) { -
trunk/Source/WebCore/html/HTMLParagraphElement.h
r158985 r159856 37 37 38 38 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 39 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;39 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 40 40 }; 41 41 -
trunk/Source/WebCore/html/HTMLPlugInElement.cpp
r159827 r159856 180 180 } 181 181 182 void HTMLPlugInElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)182 void HTMLPlugInElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 183 183 { 184 184 if (name == widthAttr) -
trunk/Source/WebCore/html/HTMLPlugInElement.h
r159827 r159856 91 91 virtual void willDetachRenderers() OVERRIDE; 92 92 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 93 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;93 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 94 94 95 95 virtual bool useFallbackContent() const { return false; } -
trunk/Source/WebCore/html/HTMLPreElement.cpp
r158985 r159856 28 28 #include "CSSValueKeywords.h" 29 29 #include "HTMLNames.h" 30 #include "StylePropert ySet.h"30 #include "StyleProperties.h" 31 31 32 32 namespace WebCore { … … 51 51 } 52 52 53 void HTMLPreElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)53 void HTMLPreElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 54 54 { 55 55 if (name == wrapAttr) -
trunk/Source/WebCore/html/HTMLPreElement.h
r158985 r159856 36 36 37 37 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 38 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;38 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 39 39 }; 40 40 -
trunk/Source/WebCore/html/HTMLTableCaptionElement.cpp
r158985 r159856 52 52 } 53 53 54 void HTMLTableCaptionElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)54 void HTMLTableCaptionElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 55 55 { 56 56 if (name == alignAttr) { -
trunk/Source/WebCore/html/HTMLTableCaptionElement.h
r159604 r159856 39 39 40 40 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 41 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;41 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 42 42 }; 43 43 -
trunk/Source/WebCore/html/HTMLTableCellElement.cpp
r158985 r159856 83 83 } 84 84 85 void HTMLTableCellElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)85 void HTMLTableCellElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 86 86 { 87 87 if (name == nowrapAttr) … … 115 115 } 116 116 117 const StylePropert ySet* HTMLTableCellElement::additionalPresentationAttributeStyle()117 const StyleProperties* HTMLTableCellElement::additionalPresentationAttributeStyle() 118 118 { 119 119 if (HTMLTableElement* table = findParentTable()) -
trunk/Source/WebCore/html/HTMLTableCellElement.h
r158985 r159856 55 55 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 56 56 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 57 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;58 virtual const StylePropert ySet* additionalPresentationAttributeStyle() OVERRIDE;57 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 58 virtual const StyleProperties* additionalPresentationAttributeStyle() OVERRIDE; 59 59 60 60 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; -
trunk/Source/WebCore/html/HTMLTableColElement.cpp
r158985 r159856 55 55 } 56 56 57 void HTMLTableColElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)57 void HTMLTableColElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 58 58 { 59 59 if (name == widthAttr) … … 82 82 } 83 83 84 const StylePropert ySet* HTMLTableColElement::additionalPresentationAttributeStyle()84 const StyleProperties* HTMLTableColElement::additionalPresentationAttributeStyle() 85 85 { 86 86 if (!hasLocalName(colgroupTag)) -
trunk/Source/WebCore/html/HTMLTableColElement.h
r158985 r159856 45 45 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 46 46 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 47 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;48 virtual const StylePropert ySet* additionalPresentationAttributeStyle() OVERRIDE;47 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 48 virtual const StyleProperties* additionalPresentationAttributeStyle() OVERRIDE; 49 49 50 50 int m_span; -
trunk/Source/WebCore/html/HTMLTableElement.cpp
r159604 r159856 40 40 #include "HTMLTableSectionElement.h" 41 41 #include "RenderTable.h" 42 #include "StylePropert ySet.h"42 #include "StyleProperties.h" 43 43 #include <wtf/Ref.h> 44 44 … … 300 300 } 301 301 302 void HTMLTableElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)302 void HTMLTableElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 303 303 { 304 304 if (name == widthAttr) … … 413 413 } 414 414 415 static StylePropert ySet* leakBorderStyle(CSSValueID value)416 { 417 RefPtr<MutableStylePropert ySet> style = MutableStylePropertySet::create();415 static StyleProperties* leakBorderStyle(CSSValueID value) 416 { 417 RefPtr<MutableStyleProperties> style = MutableStyleProperties::create(); 418 418 style->setProperty(CSSPropertyBorderTopStyle, value); 419 419 style->setProperty(CSSPropertyBorderBottomStyle, value); … … 423 423 } 424 424 425 const StylePropert ySet* HTMLTableElement::additionalPresentationAttributeStyle()425 const StyleProperties* HTMLTableElement::additionalPresentationAttributeStyle() 426 426 { 427 427 if (m_frameAttr) … … 432 432 // set on the table's cells during border-conflict resolution. 433 433 if (m_rulesAttr != UnsetRules) { 434 static StylePropert ySet* solidBorderStyle = leakBorderStyle(CSSValueHidden);434 static StyleProperties* solidBorderStyle = leakBorderStyle(CSSValueHidden); 435 435 return solidBorderStyle; 436 436 } … … 439 439 440 440 if (m_borderColorAttr) { 441 static StylePropert ySet* solidBorderStyle = leakBorderStyle(CSSValueSolid);441 static StyleProperties* solidBorderStyle = leakBorderStyle(CSSValueSolid); 442 442 return solidBorderStyle; 443 443 } 444 static StylePropert ySet* outsetBorderStyle = leakBorderStyle(CSSValueOutset);444 static StyleProperties* outsetBorderStyle = leakBorderStyle(CSSValueOutset); 445 445 return outsetBorderStyle; 446 446 } … … 469 469 } 470 470 471 PassRefPtr<StylePropert ySet> HTMLTableElement::createSharedCellStyle()472 { 473 RefPtr<MutableStylePropert ySet> style = MutableStylePropertySet::create();471 PassRefPtr<StyleProperties> HTMLTableElement::createSharedCellStyle() 472 { 473 RefPtr<MutableStyleProperties> style = MutableStyleProperties::create(); 474 474 475 475 switch (cellBorders()) { … … 509 509 } 510 510 511 const StylePropert ySet* HTMLTableElement::additionalCellStyle()511 const StyleProperties* HTMLTableElement::additionalCellStyle() 512 512 { 513 513 if (!m_sharedCellStyle) … … 516 516 } 517 517 518 static StylePropert ySet* leakGroupBorderStyle(int rows)519 { 520 RefPtr<MutableStylePropert ySet> style = MutableStylePropertySet::create();518 static StyleProperties* leakGroupBorderStyle(int rows) 519 { 520 RefPtr<MutableStyleProperties> style = MutableStyleProperties::create(); 521 521 if (rows) { 522 522 style->setProperty(CSSPropertyBorderTopWidth, CSSValueThin); … … 533 533 } 534 534 535 const StylePropert ySet* HTMLTableElement::additionalGroupStyle(bool rows)535 const StyleProperties* HTMLTableElement::additionalGroupStyle(bool rows) 536 536 { 537 537 if (m_rulesAttr != GroupsRules) … … 539 539 540 540 if (rows) { 541 static StylePropert ySet* rowBorderStyle = leakGroupBorderStyle(true);541 static StyleProperties* rowBorderStyle = leakGroupBorderStyle(true); 542 542 return rowBorderStyle; 543 543 } 544 static StylePropert ySet* columnBorderStyle = leakGroupBorderStyle(false);544 static StyleProperties* columnBorderStyle = leakGroupBorderStyle(false); 545 545 return columnBorderStyle; 546 546 } -
trunk/Source/WebCore/html/HTMLTableElement.h
r158985 r159856 66 66 String summary() const; 67 67 68 const StylePropert ySet* additionalCellStyle();69 const StylePropert ySet* additionalGroupStyle(bool rows);68 const StyleProperties* additionalCellStyle(); 69 const StyleProperties* additionalGroupStyle(bool rows); 70 70 71 71 private: … … 74 74 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 75 75 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 76 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;76 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 77 77 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 78 78 79 79 // Used to obtain either a solid or outset border decl and to deal with the frame and rules attributes. 80 virtual const StylePropert ySet* additionalPresentationAttributeStyle() OVERRIDE;80 virtual const StyleProperties* additionalPresentationAttributeStyle() OVERRIDE; 81 81 82 82 virtual void addSubresourceAttributeURLs(ListHashSet<URL>&) const OVERRIDE; … … 87 87 CellBorders cellBorders() const; 88 88 89 PassRefPtr<StylePropert ySet> createSharedCellStyle();89 PassRefPtr<StyleProperties> createSharedCellStyle(); 90 90 91 91 HTMLTableSectionElement* lastBody() const; … … 98 98 99 99 unsigned short m_padding; 100 RefPtr<StylePropert ySet> m_sharedCellStyle;100 RefPtr<StyleProperties> m_sharedCellStyle; 101 101 }; 102 102 -
trunk/Source/WebCore/html/HTMLTablePartElement.cpp
r158985 r159856 34 34 #include "HTMLParserIdioms.h" 35 35 #include "HTMLTableElement.h" 36 #include "StylePropert ySet.h"36 #include "StyleProperties.h" 37 37 38 38 namespace WebCore { … … 47 47 } 48 48 49 void HTMLTablePartElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)49 void HTMLTablePartElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 50 50 { 51 51 if (name == bgcolorAttr) -
trunk/Source/WebCore/html/HTMLTablePartElement.h
r158985 r159856 41 41 42 42 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 43 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;43 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 44 44 45 45 HTMLTableElement* findParentTable() const; -
trunk/Source/WebCore/html/HTMLTableSectionElement.cpp
r155791 r159856 48 48 } 49 49 50 const StylePropert ySet* HTMLTableSectionElement::additionalPresentationAttributeStyle()50 const StyleProperties* HTMLTableSectionElement::additionalPresentationAttributeStyle() 51 51 { 52 52 if (HTMLTableElement* table = findParentTable()) -
trunk/Source/WebCore/html/HTMLTableSectionElement.h
r159570 r159856 57 57 HTMLTableSectionElement(const QualifiedName& tagName, Document&); 58 58 59 virtual const StylePropert ySet* additionalPresentationAttributeStyle() OVERRIDE;59 virtual const StyleProperties* additionalPresentationAttributeStyle() OVERRIDE; 60 60 }; 61 61 -
trunk/Source/WebCore/html/HTMLTextAreaElement.cpp
r158985 r159856 152 152 } 153 153 154 void HTMLTextAreaElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)154 void HTMLTextAreaElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 155 155 { 156 156 if (name == wrapAttr) { -
trunk/Source/WebCore/html/HTMLTextAreaElement.h
r158985 r159856 100 100 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 101 101 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 102 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;102 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 103 103 virtual RenderElement* createRenderer(PassRef<RenderStyle>) OVERRIDE; 104 104 virtual bool appendFormData(FormDataList&, bool) OVERRIDE; -
trunk/Source/WebCore/html/HTMLUListElement.cpp
r158985 r159856 55 55 } 56 56 57 void HTMLUListElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)57 void HTMLUListElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 58 58 { 59 59 if (name == typeAttr) -
trunk/Source/WebCore/html/HTMLUListElement.h
r158985 r159856 37 37 38 38 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 39 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;39 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 40 40 }; 41 41 -
trunk/Source/WebCore/html/HTMLVideoElement.cpp
r159518 r159856 97 97 } 98 98 99 void HTMLVideoElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)99 void HTMLVideoElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 100 100 { 101 101 if (name == widthAttr) -
trunk/Source/WebCore/html/HTMLVideoElement.h
r159827 r159856 82 82 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 83 83 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 84 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;84 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 85 85 virtual bool isVideo() const OVERRIDE { return true; } 86 86 virtual bool hasVideo() const OVERRIDE { return player() && player()->hasVideo(); } -
trunk/Source/WebCore/html/canvas/CanvasRenderingContext2D.cpp
r159791 r159856 51 51 #include "SecurityOrigin.h" 52 52 #include "StrokeStyleApplier.h" 53 #include "StylePropert ySet.h"53 #include "StyleProperties.h" 54 54 #include "StyleResolver.h" 55 55 #include "TextMetrics.h" … … 1994 1994 return; 1995 1995 1996 RefPtr<MutableStylePropert ySet> parsedStyle = MutableStylePropertySet::create();1996 RefPtr<MutableStyleProperties> parsedStyle = MutableStyleProperties::create(); 1997 1997 CSSParser::parseValue(parsedStyle.get(), CSSPropertyFont, newFont, true, strictToCSSParserMode(!m_usesCSSCompatibilityParseMode), 0); 1998 1998 if (parsedStyle->isEmpty()) -
trunk/Source/WebCore/html/canvas/CanvasStyle.cpp
r158650 r159856 36 36 #include "GraphicsContext.h" 37 37 #include "HTMLCanvasElement.h" 38 #include "StylePropert ySet.h"38 #include "StyleProperties.h" 39 39 40 40 #if USE(CG) -
trunk/Source/WebCore/html/shadow/MediaControlElementTypes.cpp
r159363 r159856 39 39 #include "RenderMedia.h" 40 40 #include "RenderMediaControlElements.h" 41 #include "StylePropert ySet.h"41 #include "StyleProperties.h" 42 42 43 43 namespace WebCore { … … 93 93 bool MediaControlElement::isShowing() const 94 94 { 95 const StylePropert ySet* propertySet = m_element->inlineStyle();95 const StyleProperties* propertySet = m_element->inlineStyle(); 96 96 // Following the code from show() and hide() above, we only have 97 97 // to check for the presense of inline display. -
trunk/Source/WebCore/html/shadow/MeterShadowElement.cpp
r158163 r159856 39 39 #include "RenderTheme.h" 40 40 #include "ShadowRoot.h" 41 #include "StylePropert ySet.h"41 #include "StyleProperties.h" 42 42 43 43 namespace WebCore { -
trunk/Source/WebCore/inspector/InspectorCSSAgent.cpp
r159733 r159856 52 52 #include "RenderRegion.h" 53 53 #include "SVGStyleElement.h" 54 #include "StylePropert ySet.h"54 #include "StyleProperties.h" 55 55 #include "StylePropertyShorthand.h" 56 56 #include "StyleResolver.h" … … 1349 1349 1350 1350 // FIXME: Ugliness below. 1351 StylePropert ySet* attributeStyle = const_cast<StylePropertySet*>(toStyledElement(element)->presentationAttributeStyle());1351 StyleProperties* attributeStyle = const_cast<StyleProperties*>(toStyledElement(element)->presentationAttributeStyle()); 1352 1352 if (!attributeStyle) 1353 1353 return 0; 1354 1354 1355 1355 ASSERT_WITH_SECURITY_IMPLICATION(attributeStyle->isMutable()); 1356 MutableStylePropert ySet* mutableAttributeStyle = static_cast<MutableStylePropertySet*>(attributeStyle);1356 MutableStyleProperties* mutableAttributeStyle = static_cast<MutableStyleProperties*>(attributeStyle); 1357 1357 1358 1358 RefPtr<InspectorStyle> inspectorStyle = InspectorStyle::create(InspectorCSSId(), mutableAttributeStyle->ensureCSSStyleDeclaration(), 0); -
trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp
r159416 r159856 89 89 #include "Settings.h" 90 90 #include "ShadowRoot.h" 91 #include "StylePropert ySet.h"91 #include "StyleProperties.h" 92 92 #include "StyleResolver.h" 93 93 #include "StyleSheetList.h" -
trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp
r158514 r159856 54 54 #include "RegularExpression.h" 55 55 #include "SVGNames.h" 56 #include "StylePropert ySet.h"56 #include "StyleProperties.h" 57 57 #include "StyleResolver.h" 58 58 #include "StyleRule.h" … … 367 367 368 368 if (propertyText.stripWhiteSpace().length()) { 369 RefPtr<MutableStylePropert ySet> tempMutableStyle = MutableStylePropertySet::create();369 RefPtr<MutableStyleProperties> tempMutableStyle = MutableStyleProperties::create(); 370 370 RefPtr<CSSRuleSourceData> sourceData = CSSRuleSourceData::create(CSSRuleSourceData::STYLE_RULE); 371 371 Document* ownerDocument = m_parentStyleSheet->pageStyleSheet() ? m_parentStyleSheet->pageStyleSheet()->ownerDocument() : 0; … … 1548 1548 } 1549 1549 1550 RefPtr<MutableStylePropert ySet> tempDeclaration = MutableStylePropertySet::create();1550 RefPtr<MutableStyleProperties> tempDeclaration = MutableStyleProperties::create(); 1551 1551 createCSSParser(&m_element->document())->parseDeclaration(tempDeclaration.get(), m_styleText, result, &m_element->document().elementSheet().contents()); 1552 1552 return true; -
trunk/Source/WebCore/loader/EmptyClients.h
r157764 r159856 417 417 virtual bool shouldChangeSelectedRange(Range*, Range*, EAffinity, bool) OVERRIDE { return false; } 418 418 419 virtual bool shouldApplyStyle(StylePropert ySet*, Range*) OVERRIDE { return false; }419 virtual bool shouldApplyStyle(StyleProperties*, Range*) OVERRIDE { return false; } 420 420 virtual bool shouldMoveRangeAfterDelete(Range*, Range*) OVERRIDE { return false; } 421 421 -
trunk/Source/WebCore/mathml/MathMLElement.cpp
r159680 r159856 84 84 } 85 85 86 void MathMLElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)86 void MathMLElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 87 87 { 88 88 if (name == mathbackgroundAttr) -
trunk/Source/WebCore/mathml/MathMLElement.h
r159680 r159856 49 49 private: 50 50 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 51 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;51 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 52 52 53 53 virtual bool childShouldCreateRenderer(const Node&) const OVERRIDE; -
trunk/Source/WebCore/page/DragController.cpp
r159604 r159856 74 74 #include "Settings.h" 75 75 #include "ShadowRoot.h" 76 #include "StylePropert ySet.h"76 #include "StyleProperties.h" 77 77 #include "Text.h" 78 78 #include "TextEvent.h" … … 455 455 return false; 456 456 RefPtr<Range> innerRange = innerFrame->selection().toNormalizedRange(); 457 RefPtr<MutableStylePropert ySet> style = MutableStylePropertySet::create();457 RefPtr<MutableStyleProperties> style = MutableStyleProperties::create(); 458 458 style->setProperty(CSSPropertyColor, color.serialized(), false); 459 459 if (!innerFrame->editor().shouldApplyStyle(style.get(), innerRange.get())) -
trunk/Source/WebCore/page/EditorClient.h
r157653 r159856 54 54 class Range; 55 55 class SharedBuffer; 56 class StylePropert ySet;56 class StyleProperties; 57 57 class TextCheckerClient; 58 58 class VisibleSelection; … … 81 81 virtual bool shouldChangeSelectedRange(Range* fromRange, Range* toRange, EAffinity, bool stillSelecting) = 0; 82 82 83 virtual bool shouldApplyStyle(StylePropert ySet*, Range*) = 0;83 virtual bool shouldApplyStyle(StyleProperties*, Range*) = 0; 84 84 virtual bool shouldMoveRangeAfterDelete(Range*, Range*) = 0; 85 85 -
trunk/Source/WebCore/page/Frame.cpp
r159791 r159856 90 90 #include "ScrollingCoordinator.h" 91 91 #include "Settings.h" 92 #include "StylePropert ySet.h"92 #include "StyleProperties.h" 93 93 #include "TextIterator.h" 94 94 #include "TextNodeTraversal.h" -
trunk/Source/WebCore/page/PageSerializer.cpp
r159733 r159856 54 54 #include "StyleCachedImage.h" 55 55 #include "StyleImage.h" 56 #include "StylePropert ySet.h"56 #include "StyleProperties.h" 57 57 #include "StyleRule.h" 58 58 #include "StyleSheetContents.h" … … 318 318 } 319 319 320 void PageSerializer::retrieveResourcesForProperties(const StylePropert ySet* styleDeclaration, Document* document)320 void PageSerializer::retrieveResourcesForProperties(const StyleProperties* styleDeclaration, Document* document) 321 321 { 322 322 if (!styleDeclaration) -
trunk/Source/WebCore/page/PageSerializer.h
r156622 r159856 47 47 class Page; 48 48 class RenderElement; 49 class StylePropert ySet;49 class StyleProperties; 50 50 class StyleRule; 51 51 … … 79 79 80 80 void addImageToResources(CachedImage*, RenderElement*, const URL&); 81 void retrieveResourcesForProperties(const StylePropert ySet*, Document*);81 void retrieveResourcesForProperties(const StyleProperties*, Document*); 82 82 void retrieveResourcesForRule(StyleRule*, Document*); 83 83 -
trunk/Source/WebCore/rendering/RenderLayer.cpp
r159733 r159856 103 103 #include "ShadowRoot.h" 104 104 #include "SourceGraphic.h" 105 #include "StylePropert ySet.h"105 #include "StyleProperties.h" 106 106 #include "StyleResolver.h" 107 107 #include "TextStream.h" -
trunk/Source/WebCore/rendering/RenderTableCell.cpp
r159027 r159856 34 34 #include "RenderTableCol.h" 35 35 #include "RenderView.h" 36 #include "StylePropert ySet.h"36 #include "StyleProperties.h" 37 37 #include "TransformState.h" 38 38 #include <wtf/StackStats.h> -
trunk/Source/WebCore/rendering/RenderTreeAsText.cpp
r159553 r159856 55 55 #include "ShadowRoot.h" 56 56 #include "SimpleLineLayoutResolver.h" 57 #include "StylePropert ySet.h"57 #include "StyleProperties.h" 58 58 #include <wtf/HexNumber.h> 59 59 #include <wtf/Vector.h> … … 140 140 return true; 141 141 142 const StylePropert ySet* inlineStyleDecl = elem->inlineStyle();142 const StyleProperties* inlineStyleDecl = elem->inlineStyle(); 143 143 return (!inlineStyleDecl || inlineStyleDecl->isEmpty()); 144 144 } -
trunk/Source/WebCore/svg/SVGAnimateElement.cpp
r159503 r159856 33 33 #include "SVGElement.h" 34 34 #include "SVGNames.h" 35 #include "StylePropert ySet.h"35 #include "StyleProperties.h" 36 36 37 37 namespace WebCore { -
trunk/Source/WebCore/svg/SVGElement.cpp
r159036 r159856 760 760 } 761 761 762 MutableStylePropert ySet* SVGElement::animatedSMILStyleProperties() const762 MutableStyleProperties* SVGElement::animatedSMILStyleProperties() const 763 763 { 764 764 if (m_svgRareData) … … 767 767 } 768 768 769 MutableStylePropert ySet& SVGElement::ensureAnimatedSMILStyleProperties()769 MutableStyleProperties& SVGElement::ensureAnimatedSMILStyleProperties() 770 770 { 771 771 return ensureSVGRareData().ensureAnimatedSMILStyleProperties(); … … 967 967 } 968 968 969 void SVGElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)969 void SVGElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 970 970 { 971 971 CSSPropertyID propertyID = cssPropertyIdForSVGAttributeName(name); … … 1055 1055 return 0; 1056 1056 1057 RefPtr<MutableStylePropert ySet> style = MutableStylePropertySet::create(SVGAttributeMode);1057 RefPtr<MutableStyleProperties> style = MutableStyleProperties::create(SVGAttributeMode); 1058 1058 CSSPropertyID propertyID = cssPropertyIdForSVGAttributeName(attribute->name()); 1059 1059 style->setProperty(propertyID, attribute->value()); -
trunk/Source/WebCore/svg/SVGElement.h
r159036 r159856 127 127 #endif 128 128 129 MutableStylePropert ySet* animatedSMILStyleProperties() const;130 MutableStylePropert ySet& ensureAnimatedSMILStyleProperties();129 MutableStyleProperties* animatedSMILStyleProperties() const; 130 MutableStyleProperties& ensureAnimatedSMILStyleProperties(); 131 131 void setUseOverrideComputedStyle(bool); 132 132 … … 157 157 158 158 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 159 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;159 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 160 160 virtual InsertionNotificationRequest insertedInto(ContainerNode&) OVERRIDE; 161 161 virtual void removedFrom(ContainerNode&) OVERRIDE; -
trunk/Source/WebCore/svg/SVGElementRareData.h
r156819 r159856 21 21 #define SVGElementRareData_h 22 22 23 #include "StylePropert ySet.h"23 #include "StyleProperties.h" 24 24 #include "StyleResolver.h" 25 25 #include <wtf/HashSet.h> … … 62 62 void setCursorImageValue(CSSCursorImageValue* cursorImageValue) { m_cursorImageValue = cursorImageValue; } 63 63 64 MutableStylePropert ySet* animatedSMILStyleProperties() const { return m_animatedSMILStyleProperties.get(); }65 MutableStylePropert ySet& ensureAnimatedSMILStyleProperties()64 MutableStyleProperties* animatedSMILStyleProperties() const { return m_animatedSMILStyleProperties.get(); } 65 MutableStyleProperties& ensureAnimatedSMILStyleProperties() 66 66 { 67 67 if (!m_animatedSMILStyleProperties) 68 m_animatedSMILStyleProperties = MutableStylePropert ySet::create(SVGAttributeMode);68 m_animatedSMILStyleProperties = MutableStyleProperties::create(SVGAttributeMode); 69 69 return *m_animatedSMILStyleProperties; 70 70 } … … 101 101 bool m_useOverrideComputedStyle : 1; 102 102 bool m_needsOverrideComputedStyleUpdate : 1; 103 RefPtr<MutableStylePropert ySet> m_animatedSMILStyleProperties;103 RefPtr<MutableStyleProperties> m_animatedSMILStyleProperties; 104 104 RefPtr<RenderStyle> m_overrideComputedStyle; 105 105 }; -
trunk/Source/WebCore/svg/SVGFontFaceElement.cpp
r157924 r159856 40 40 #include "SVGGlyphElement.h" 41 41 #include "SVGNames.h" 42 #include "StylePropert ySet.h"42 #include "StyleProperties.h" 43 43 #include "StyleResolver.h" 44 44 #include "StyleRule.h" … … 51 51 inline SVGFontFaceElement::SVGFontFaceElement(const QualifiedName& tagName, Document& document) 52 52 : SVGElement(tagName, document) 53 , m_fontFaceRule(StyleRuleFontFace::create(MutableStylePropert ySet::create(CSSStrictMode)))53 , m_fontFaceRule(StyleRuleFontFace::create(MutableStyleProperties::create(CSSStrictMode))) 54 54 , m_fontElement(0) 55 55 { -
trunk/Source/WebCore/svg/SVGImageElement.cpp
r158985 r159856 96 96 } 97 97 98 void SVGImageElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)98 void SVGImageElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 99 99 { 100 100 if (!isSupportedAttribute(name)) -
trunk/Source/WebCore/svg/SVGImageElement.h
r158985 r159856 48 48 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 49 49 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 50 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;50 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 51 51 virtual void svgAttributeChanged(const QualifiedName&); 52 52 -
trunk/Source/WebCore/svg/SVGTextContentElement.cpp
r158985 r159856 229 229 } 230 230 231 void SVGTextContentElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropert ySet& style)231 void SVGTextContentElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStyleProperties& style) 232 232 { 233 233 if (!isSupportedAttribute(name)) -
trunk/Source/WebCore/svg/SVGTextContentElement.h
r158985 r159856 101 101 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 102 102 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 103 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropert ySet&) OVERRIDE;103 virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) OVERRIDE; 104 104 virtual void svgAttributeChanged(const QualifiedName&); 105 105 -
trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.cpp
r155971 r159856 107 107 } 108 108 109 bool EditorClientEfl::shouldApplyStyle(StylePropert ySet* style, Range* range)109 bool EditorClientEfl::shouldApplyStyle(StyleProperties* style, Range* range) 110 110 { 111 111 Ewk_Should_Apply_Style_Event shouldApplyStyleEvent = { style, range }; -
trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.h
r155971 r159856 62 62 63 63 struct Ewk_Should_Apply_Style_Event { 64 WebCore::StylePropert ySet* style;64 WebCore::StyleProperties* style; 65 65 WebCore::Range* range; 66 66 }; … … 97 97 virtual bool shouldChangeSelectedRange(Range* fromRange, Range* toRange, EAffinity, bool stillSelecting); 98 98 99 virtual bool shouldApplyStyle(StylePropert ySet*, Range*);99 virtual bool shouldApplyStyle(StyleProperties*, Range*); 100 100 101 101 virtual bool shouldMoveRangeAfterDelete(Range*, Range*); -
trunk/Source/WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp
r157570 r159856 39 39 #include "PlatformKeyboardEvent.h" 40 40 #include "Settings.h" 41 #include "StylePropert ySet.h"41 #include "StyleProperties.h" 42 42 #include "UndoStep.h" 43 43 #include "WebKitDOMCSSStyleDeclarationPrivate.h" … … 178 178 } 179 179 180 bool EditorClient::shouldApplyStyle(WebCore::StylePropert ySet* set, WebCore::Range* range)181 { 182 gboolean accept = TRUE; 183 Ref<MutableStylePropert ySet> mutableStyle(set->mutableCopy());180 bool EditorClient::shouldApplyStyle(WebCore::StyleProperties* set, WebCore::Range* range) 181 { 182 gboolean accept = TRUE; 183 Ref<MutableStyleProperties> mutableStyle(set->mutableCopy()); 184 184 GRefPtr<WebKitDOMCSSStyleDeclaration> kitDeclaration(kit(mutableStyle->ensureCSSStyleDeclaration())); 185 185 GRefPtr<WebKitDOMRange> kitRange(adoptGRef(kit(range))); -
trunk/Source/WebKit/gtk/WebCoreSupport/EditorClientGtk.h
r155971 r159856 88 88 virtual bool shouldChangeSelectedRange(WebCore::Range* fromRange, WebCore::Range* toRange, WebCore::EAffinity, bool stillSelecting); 89 89 90 virtual bool shouldApplyStyle(WebCore::StylePropert ySet*, WebCore::Range*);90 virtual bool shouldApplyStyle(WebCore::StyleProperties*, WebCore::Range*); 91 91 92 92 virtual bool shouldMoveRangeAfterDelete(WebCore::Range*, WebCore::Range*); -
trunk/Source/WebKit/mac/WebCoreSupport/WebEditorClient.h
r157653 r159856 60 60 virtual bool shouldChangeSelectedRange(WebCore::Range* fromRange, WebCore::Range* toRange, WebCore::EAffinity, bool stillSelecting) OVERRIDE; 61 61 62 virtual bool shouldApplyStyle(WebCore::StylePropert ySet*, WebCore::Range*) OVERRIDE;62 virtual bool shouldApplyStyle(WebCore::StyleProperties*, WebCore::Range*) OVERRIDE; 63 63 64 64 virtual bool shouldMoveRangeAfterDelete(WebCore::Range*, WebCore::Range* rangeToBeReplaced) OVERRIDE; -
trunk/Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm
r159001 r159856 64 64 #import <WebCore/Settings.h> 65 65 #import <WebCore/SpellChecker.h> 66 #import <WebCore/StylePropert ySet.h>66 #import <WebCore/StyleProperties.h> 67 67 #import <WebCore/UndoStep.h> 68 68 #import <WebCore/UserTypingGestureIndicator.h> … … 245 245 } 246 246 247 bool WebEditorClient::shouldApplyStyle(StylePropert ySet* style, Range* range)248 { 249 Ref<MutableStylePropert ySet> mutableStyle(style->isMutable() ? static_cast<MutableStylePropertySet&>(*style) : style->mutableCopy());247 bool WebEditorClient::shouldApplyStyle(StyleProperties* style, Range* range) 248 { 249 Ref<MutableStyleProperties> mutableStyle(style->isMutable() ? static_cast<MutableStyleProperties&>(*style) : style->mutableCopy()); 250 250 return [[m_webView _editingDelegateForwarder] webView:m_webView 251 251 shouldApplyStyle:kit(mutableStyle->ensureCSSStyleDeclaration()) toElementsInDOMRange:kit(range)]; -
trunk/Source/WebKit/mac/WebView/WebFrame.mm
r158163 r159856 93 93 #import <WebCore/SecurityOrigin.h> 94 94 #import <WebCore/SmartReplace.h> 95 #import <WebCore/StylePropert ySet.h>95 #import <WebCore/StyleProperties.h> 96 96 #import <WebCore/SubframeLoader.h> 97 97 #import <WebCore/TextIterator.h> … … 782 782 if (!_private->coreFrame) 783 783 return nil; 784 RefPtr<MutableStylePropert ySet> typingStyle = _private->coreFrame->selection().copyTypingStyle();784 RefPtr<MutableStyleProperties> typingStyle = _private->coreFrame->selection().copyTypingStyle(); 785 785 if (!typingStyle) 786 786 return nil; … … 793 793 return; 794 794 // FIXME: We shouldn't have to create a copy here. 795 Ref<MutableStylePropert ySet> properties(core(style)->copyProperties());795 Ref<MutableStyleProperties> properties(core(style)->copyProperties()); 796 796 _private->coreFrame->editor().computeAndSetTypingStyle(&properties.get(), undoAction); 797 797 } -
trunk/Source/WebKit/mac/WebView/WebHTMLView.mm
r159663 r159856 115 115 #import <WebCore/SharedBuffer.h> 116 116 #import <WebCore/SimpleFontData.h> 117 #import <WebCore/StylePropert ySet.h>117 #import <WebCore/StyleProperties.h> 118 118 #import <WebCore/Text.h> 119 119 #import <WebCore/TextAlternativeWithRange.h> … … 4370 4370 { 4371 4371 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 StylePropert ySeteventually.4373 Ref<MutableStylePropert ySet> 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()); 4374 4374 coreFrame->editor().applyStyleToSelection(&properties.get(), undoAction); 4375 4375 } … … 4674 4674 if (Frame* coreFrame = core([self _frame])) { 4675 4675 // FIXME: We shouldn't have to make a copy here. 4676 Ref<MutableStylePropert ySet> properties(core(style)->copyProperties());4676 Ref<MutableStyleProperties> properties(core(style)->copyProperties()); 4677 4677 coreFrame->editor().applyStyle(&properties.get(), [self _undoActionFromColorPanelWithSelector:selector]); 4678 4678 } -
trunk/Source/WebKit/mac/WebView/WebView.mm
r159460 r159856 174 174 #import <WebCore/SecurityPolicy.h> 175 175 #import <WebCore/Settings.h> 176 #import <WebCore/StylePropert ySet.h>176 #import <WebCore/StyleProperties.h> 177 177 #import <WebCore/SystemVersionMac.h> 178 178 #import <WebCore/TextResourceDecoder.h> … … 5956 5956 if (Frame* coreFrame = core(webFrame)) { 5957 5957 // FIXME: We shouldn't have to make a copy here. 5958 Ref<MutableStylePropert ySet> properties(core(style)->copyProperties());5958 Ref<MutableStyleProperties> properties(core(style)->copyProperties()); 5959 5959 coreFrame->editor().applyStyle(&properties.get()); 5960 5960 } -
trunk/Source/WebKit/win/WebCoreSupport/WebEditorClient.cpp
r155971 r159856 284 284 //{ notImplemented(); return false; } 285 285 286 bool WebEditorClient::shouldApplyStyle(StylePropert ySet* /*style*/, Range* /*toElementsInDOMRange*/)286 bool WebEditorClient::shouldApplyStyle(StyleProperties* /*style*/, Range* /*toElementsInDOMRange*/) 287 287 { notImplemented(); return true; } 288 288 … … 290 290 { notImplemented(); return true; } 291 291 292 bool WebEditorClient::shouldChangeTypingStyle(StylePropert ySet* /*currentStyle*/, StylePropertySet* /*toProposedStyle*/)292 bool WebEditorClient::shouldChangeTypingStyle(StyleProperties* /*currentStyle*/, StyleProperties* /*toProposedStyle*/) 293 293 { notImplemented(); return false; } 294 294 -
trunk/Source/WebKit/win/WebCoreSupport/WebEditorClient.h
r155971 r159856 65 65 66 66 bool shouldInsertNode(WebCore::Node*, WebCore::Range* replacingRange, WebCore::EditorInsertAction); 67 bool shouldApplyStyle(WebCore::StylePropert ySet*, WebCore::Range*);67 bool shouldApplyStyle(WebCore::StyleProperties*, WebCore::Range*); 68 68 bool shouldMoveRangeAfterDelete(WebCore::Range*, WebCore::Range*); 69 bool shouldChangeTypingStyle(WebCore::StylePropert ySet* currentStyle, WebCore::StylePropertySet* toProposedStyle);69 bool shouldChangeTypingStyle(WebCore::StyleProperties* currentStyle, WebCore::StyleProperties* toProposedStyle); 70 70 71 71 void webViewDidChangeTypingStyle(WebNotification*); -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp
r157569 r159856 47 47 #include <WebCore/Page.h> 48 48 #include <WebCore/SpellChecker.h> 49 #include <WebCore/StylePropert ySet.h>49 #include <WebCore/StyleProperties.h> 50 50 #include <WebCore/TextIterator.h> 51 51 #include <WebCore/UndoStep.h> … … 154 154 } 155 155 156 bool WebEditorClient::shouldApplyStyle(StylePropert ySet* style, Range* range)157 { 158 Ref<MutableStylePropert ySet> mutableStyle(style->isMutable() ? static_cast<MutableStylePropertySet&>(*style) : style->mutableCopy());156 bool WebEditorClient::shouldApplyStyle(StyleProperties* style, Range* range) 157 { 158 Ref<MutableStyleProperties> mutableStyle(style->isMutable() ? static_cast<MutableStyleProperties&>(*style) : style->mutableCopy()); 159 159 bool result = m_page->injectedBundleEditorClient().shouldApplyStyle(m_page, mutableStyle->ensureCSSStyleDeclaration(), range); 160 160 notImplemented(); -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.h
r159724 r159856 59 59 virtual bool shouldChangeSelectedRange(WebCore::Range* fromRange, WebCore::Range* toRange, WebCore::EAffinity, bool stillSelecting) OVERRIDE; 60 60 61 virtual bool shouldApplyStyle(WebCore::StylePropert ySet*, WebCore::Range*) OVERRIDE;61 virtual bool shouldApplyStyle(WebCore::StyleProperties*, WebCore::Range*) OVERRIDE; 62 62 virtual bool shouldMoveRangeAfterDelete(WebCore::Range*, WebCore::Range*) OVERRIDE; 63 63 -
trunk/Tools/DumpRenderTree/efl/EditingCallbacks.cpp
r125516 r159856 36 36 #include "Node.h" 37 37 #include "Range.h" 38 #include "StylePropert ySet.h"38 #include "StyleProperties.h" 39 39 #include "TestRunner.h" 40 40 #include "TextAffinity.h"
Note:
See TracChangeset
for help on using the changeset viewer.