Move color CSS properties to the new StyleBuilder
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Dec 2014 18:37:21 +0000 (18:37 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Dec 2014 18:37:21 +0000 (18:37 +0000)
commit914d3a9abc9062747b56a3327785953a83c0df4a
treefa8aad0ffeb593387ea1c698e6508de81a37bea9
parenta5980bf96c90b906439f48594192cfd97cf51508
Move color CSS properties to the new StyleBuilder
https://bugs.webkit.org/show_bug.cgi?id=139898

Reviewed by Antti Koivisto.

Move color CSS properties to the new StyleBuilder by teaching the
StyleBuilder generator how to handle them.

* css/CSSPropertyNames.in:
- Move color properties to the new StyleBuilder.

* css/DeprecatedStyleBuilder.cpp:
(WebCore::DeprecatedStyleBuilder::DeprecatedStyleBuilder):
(WebCore::defaultInitialColor): Deleted.
(WebCore::ApplyPropertyColor::applyInheritValue): Deleted.
(WebCore::ApplyPropertyColor::applyInitialValue): Deleted.
(WebCore::ApplyPropertyColor::applyValue): Deleted.
(WebCore::ApplyPropertyColor::applyColorValue): Deleted.
(WebCore::ApplyPropertyColor::createHandler): Deleted.
- Drop color properties support from the DeprecatedStyleBuilder.

* css/makeprop.pl:
- Teach the StyleBuilder generator how to handle color properties.
- Use a class for StyleBuilderFunctions instead of a namespace so
  that it can be made a friend of RenderStyle class.

* rendering/style/RenderStyle.h:
- Mark StyleBuilderFunctions class as friend as its functions
  can set RenderStyle members directly. This is similar to what
  is already done for StyleBuilderCustom class. The new color
  properties handling calls private methods on RenderStyle.
- Mark invalidColor() method as static as it does not require
  an instance.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@177687 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/css/CSSPropertyNames.in
Source/WebCore/css/DeprecatedStyleBuilder.cpp
Source/WebCore/css/makeprop.pl
Source/WebCore/rendering/style/RenderStyle.h