Reduce amount of code that includes StylePropertySet.h
authorakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Feb 2013 15:49:25 +0000 (15:49 +0000)
committerakling@apple.com <akling@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Feb 2013 15:49:25 +0000 (15:49 +0000)
commit9182db5ab17ba14b7968db334a814399d6e97b3b
treeff99a67aaa55aad8efde2600d06580d7eecfb4ce
parente335f3db000ef48191b2107e8f4117c2b6d1a4fb
Reduce amount of code that includes StylePropertySet.h
<http://webkit.org/b/101149>

Reviewed by Antti Koivisto.

Source/WebCore:

StylePropertySet.h and dependents were getting included by the majority of WebKit
through either StyledElement.h or CSSStyleDeclaration.h. This change removes those includes
and moves inclusion to .cpp files instead. After this change, it's possible to hack most
of WebCore/css/ and rebuild <100 files instead of >1000.

The only real code change in here is changing CSSStyleDeclaration::cssPropertyMatches()
to take a CSSPropertyID/CSSValue* combo instead of a StylePropertySet::Reference.

* css/CSSComputedStyleDeclaration.cpp:
(WebCore::CSSComputedStyleDeclaration::cssPropertyMatches):
* css/CSSComputedStyleDeclaration.h:
(CSSComputedStyleDeclaration):
* css/CSSStyleDeclaration.h:
(CSSStyleDeclaration):
* css/PropertySetCSSStyleDeclaration.cpp:
(WebCore::PropertySetCSSStyleDeclaration::cssPropertyMatches):
* css/PropertySetCSSStyleDeclaration.h:
* css/SelectorChecker.h:
* css/SelectorCheckerFastPath.cpp:
* css/SelectorFilter.cpp:
* css/SelectorFilter.h:
* css/StylePropertySet.cpp:
(WebCore::StylePropertySet::propertyMatches):
(WebCore::StylePropertySet::removeEquivalentProperties):
* css/StylePropertySet.h:
* css/StyleResolver.cpp:
(WebCore::StyleResolver::MatchedProperties::MatchedProperties):
(WebCore::StyleResolver::MatchedProperties::~MatchedProperties):
* css/StyleResolver.h:
(MatchedProperties):
* css/StyleRule.cpp:
* css/ViewportStyleResolver.cpp:
(WebCore::ViewportStyleResolver::~ViewportStyleResolver):
* css/ViewportStyleResolver.h:
(ViewportStyleResolver):
* css/WebKitCSSKeyframeRule.cpp:
(WebCore::StyleKeyframe::StyleKeyframe):
(WebCore::StyleKeyframe::~StyleKeyframe):
* css/WebKitCSSKeyframeRule.h:
(StyleKeyframe):
* dom/Attr.cpp:
* dom/Document.cpp:
* dom/Element.cpp:
* dom/StyledElement.cpp:
(WebCore::StyledElement::addPropertyToPresentationAttributeStyle):
* dom/StyledElement.h:
(StyledElement):
* editing/FrameSelection.cpp:
* editing/RemoveCSSPropertyCommand.cpp:
(WebCore::RemoveCSSPropertyCommand::~RemoveCSSPropertyCommand):
* editing/RemoveCSSPropertyCommand.h:
(RemoveCSSPropertyCommand):
* editing/RemoveFormatCommand.cpp:
* html/HTMLBodyElement.cpp:
* html/HTMLElement.cpp:
(WebCore::HTMLElement::addHTMLLengthToStyle):
(WebCore::HTMLElement::addHTMLColorToStyle):
* html/HTMLElement.h:
(HTMLElement):
* html/HTMLFontElement.cpp:
* html/HTMLHRElement.cpp:
* html/HTMLPreElement.cpp:
* html/HTMLTableElement.cpp:
* html/HTMLTablePartElement.cpp:
* html/canvas/CanvasStyle.cpp:
* html/shadow/MediaControlElementTypes.cpp:
* inspector/InspectorStyleSheet.cpp:
* page/PageSerializer.cpp:
* rendering/RenderTableCell.cpp:
* svg/SVGAnimateElement.cpp:
* svg/SVGElementRareData.h:
* svg/SVGFontFaceElement.cpp:

Source/WebKit/gtk:

* WebCoreSupport/EditorClientGtk.cpp:

Source/WebKit/mac:

* WebCoreSupport/WebEditorClient.mm:
* WebView/WebFrame.mm:
* WebView/WebView.mm:

Source/WebKit2:

* WebProcess/WebCoreSupport/WebEditorClient.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@143926 268f45cc-cd09-0410-ab3c-d52691b4dbfc
52 files changed:
Source/WebCore/ChangeLog
Source/WebCore/css/CSSComputedStyleDeclaration.cpp
Source/WebCore/css/CSSComputedStyleDeclaration.h
Source/WebCore/css/CSSStyleDeclaration.h
Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp
Source/WebCore/css/PropertySetCSSStyleDeclaration.h
Source/WebCore/css/SelectorChecker.h
Source/WebCore/css/SelectorCheckerFastPath.cpp
Source/WebCore/css/SelectorFilter.cpp
Source/WebCore/css/SelectorFilter.h
Source/WebCore/css/StylePropertySet.cpp
Source/WebCore/css/StylePropertySet.h
Source/WebCore/css/StyleResolver.cpp
Source/WebCore/css/StyleResolver.h
Source/WebCore/css/StyleRule.cpp
Source/WebCore/css/ViewportStyleResolver.cpp
Source/WebCore/css/ViewportStyleResolver.h
Source/WebCore/css/WebKitCSSKeyframeRule.cpp
Source/WebCore/css/WebKitCSSKeyframeRule.h
Source/WebCore/dom/Attr.cpp
Source/WebCore/dom/Document.cpp
Source/WebCore/dom/Element.cpp
Source/WebCore/dom/StyledElement.cpp
Source/WebCore/dom/StyledElement.h
Source/WebCore/editing/FrameSelection.cpp
Source/WebCore/editing/RemoveCSSPropertyCommand.cpp
Source/WebCore/editing/RemoveCSSPropertyCommand.h
Source/WebCore/editing/RemoveFormatCommand.cpp
Source/WebCore/html/HTMLBodyElement.cpp
Source/WebCore/html/HTMLElement.cpp
Source/WebCore/html/HTMLElement.h
Source/WebCore/html/HTMLFontElement.cpp
Source/WebCore/html/HTMLHRElement.cpp
Source/WebCore/html/HTMLPreElement.cpp
Source/WebCore/html/HTMLTableElement.cpp
Source/WebCore/html/HTMLTablePartElement.cpp
Source/WebCore/html/canvas/CanvasStyle.cpp
Source/WebCore/html/shadow/MediaControlElementTypes.cpp
Source/WebCore/inspector/InspectorStyleSheet.cpp
Source/WebCore/page/PageSerializer.cpp
Source/WebCore/rendering/RenderTableCell.cpp
Source/WebCore/svg/SVGAnimateElement.cpp
Source/WebCore/svg/SVGElementRareData.h
Source/WebCore/svg/SVGFontFaceElement.cpp
Source/WebKit/gtk/ChangeLog
Source/WebKit/gtk/WebCoreSupport/EditorClientGtk.cpp
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm
Source/WebKit/mac/WebView/WebFrame.mm
Source/WebKit/mac/WebView/WebView.mm
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebCoreSupport/WebEditorClient.cpp