Remove unused macros from StyleResolver.cpp
authorljaehun.lim@samsung.com <ljaehun.lim@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 6 Sep 2015 01:50:13 +0000 (01:50 +0000)
committerljaehun.lim@samsung.com <ljaehun.lim@samsung.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 6 Sep 2015 01:50:13 +0000 (01:50 +0000)
https://bugs.webkit.org/show_bug.cgi?id=148163

Reviewed by Andreas Kling.

HANDLE_INHERIT and HANDLE_INHERIT_AND_INITIAL are not used after
StyleBuilder refactoring.

No new tests because there is no behavior change.

* css/StyleResolver.cpp:
Remove HANDLE_INHERIT and HANDLE_INHERIT_AND_INITIAL.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189441 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/css/StyleResolver.cpp

index b683f4c..300d350 100644 (file)
@@ -1,3 +1,18 @@
+2015-09-05  Jaehun Lim  <ljaehun.lim@samsung.com>
+
+        Remove unused macros from StyleResolver.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=148163
+
+        Reviewed by Andreas Kling.
+
+        HANDLE_INHERIT and HANDLE_INHERIT_AND_INITIAL are not used after
+        StyleBuilder refactoring.
+
+        No new tests because there is no behavior change.
+
+        * css/StyleResolver.cpp:
+        Remove HANDLE_INHERIT and HANDLE_INHERIT_AND_INITIAL.
+
 2015-09-05  Brian Burg  <bburg@apple.com>
 
         Web Inspector: tighten up lifetimes for Agent-owned objects, and initialize agents using contexts
index 1356b6f..31236fa 100644 (file)
@@ -205,19 +205,6 @@ private:
 
 static void extractDirectionAndWritingMode(const RenderStyle&, const StyleResolver::MatchResult&, TextDirection&, WritingMode&);
 
-#define HANDLE_INHERIT(prop, Prop) \
-if (isInherit) { \
-    m_state.style()->set##Prop(m_state.parentStyle()->prop()); \
-    return; \
-}
-
-#define HANDLE_INHERIT_AND_INITIAL(prop, Prop) \
-HANDLE_INHERIT(prop, Prop) \
-if (isInitial) { \
-    m_state.style()->set##Prop(RenderStyle::initial##Prop()); \
-    return; \
-}
-
 RenderStyle* StyleResolver::s_styleNotYetAvailable;
 
 inline void StyleResolver::State::cacheBorderAndBackground()