Commit 3190ea54 authored by mitz@apple.com's avatar mitz@apple.com

Reviewed by Adele Peterson.

        - fix "background-position: inherit"

        * css/CSSStyleSelector.cpp:
        Made HANDLE_MULTILAYER_INHERIT_AND_INITIAL fall through and added
        a return statement in HANDLE_MULTILAYER_VALUE. Also removed an unused
        macro.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30823 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 814ceb77
2008-03-05 Dan Bernstein <mitz@apple.com>
Reviewed by Adele Peterson.
- fix "background-position: inherit"
* css/CSSStyleSelector.cpp:
Made HANDLE_MULTILAYER_INHERIT_AND_INITIAL fall through and added
a return statement in HANDLE_MULTILAYER_VALUE. Also removed an unused
macro.
2008-03-05 Alp Toker <alp@atoker.com>
Add a missing make dependency for derived sources to improve
......@@ -124,18 +124,17 @@ if (isInherit) { \
currChild->clear##Prop(); \
currChild = currChild->next(); \
} \
return; \
} \
if (isInitial) { \
} else if (isInitial) { \
LayerType* currChild = m_style->access##LayerType##s(); \
currChild->set##Prop(RenderStyle::initial##Prop()); \
for (currChild = currChild->next(); currChild; currChild = currChild->next()) \
currChild->clear##Prop(); \
return; \
}
#define HANDLE_MULTILAYER_VALUE(layerType, LayerType, prop, Prop, value) { \
HANDLE_MULTILAYER_INHERIT_AND_INITIAL(layerType, LayerType, prop, Prop) \
if (isInherit || isInitial) \
return; \
LayerType* currChild = m_style->access##LayerType##s(); \
LayerType* prevChild = 0; \
if (value->isValueList()) { \
......@@ -167,9 +166,6 @@ HANDLE_MULTILAYER_INHERIT_AND_INITIAL(backgroundLayer, BackgroundLayer, prop, Pr
#define HANDLE_BACKGROUND_VALUE(prop, Prop, value) \
HANDLE_MULTILAYER_VALUE(backgroundLayer, BackgroundLayer, prop, Prop, value)
#define HANDLE_TRANSITION_INHERIT_AND_INITIAL(prop, Prop) \
HANDLE_MULTILAYER_INHERIT_AND_INITIAL(transition, Transition, prop, Prop)
#define HANDLE_TRANSITION_VALUE(prop, Prop, value) \
HANDLE_MULTILAYER_VALUE(transition, Transition, prop, Prop, value)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment