Chromium Code Reviews| Index: third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp |
| diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp |
| index b44925bed08f099a2ad791ae7fb6780cdcfc35e9..38515931c17f1dc4006c96b4eb4bf5ebafed77fc 100644 |
| --- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp |
| +++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderCustom.cpp |
| @@ -966,10 +966,26 @@ void StyleBuilderFunctions::applyValueCSSPropertyBaselineShift( |
| } |
| } |
| +void StyleBuilderFunctions::applyInitialCSSPropertyPosition( |
| + StyleResolverState& state) { |
| + state.Style()->SetPosition(ComputedStyle::InitialPosition()); |
| + state.Style()->SetIsInStickySubtree(state.ParentStyle()->IsInStickySubtree()); |
| +} |
| + |
| void StyleBuilderFunctions::applyInheritCSSPropertyPosition( |
| StyleResolverState& state) { |
| if (!state.ParentNode()->IsDocumentNode()) |
| state.Style()->SetPosition(state.ParentStyle()->GetPosition()); |
| + state.Style()->SetIsInStickySubtree(state.ParentStyle()->IsInStickySubtree()); |
|
flackr
2017/04/27 15:50:02
I patched this in and I only see StyleBuilderFunct
smcgruer
2017/04/27 16:05:28
Did you set position to inherit? That is the case
flackr
2017/04/27 17:17:01
But if the methods don't get called automatically
flackr
2017/04/27 17:20:53
Looks like it doesn't get inherited to the descend
flackr
2017/04/27 19:20:51
Nevermind I was mistakenly assuming the offsetTop
smcgruer
2017/04/28 18:20:37
Done.
|
| +} |
| + |
| +void StyleBuilderFunctions::applyValueCSSPropertyPosition( |
| + StyleResolverState& state, |
| + const CSSValue& value) { |
| + EPosition position = ToCSSIdentifierValue(value).ConvertTo<EPosition>(); |
| + state.Style()->SetPosition(position); |
| + state.Style()->SetIsInStickySubtree(position == EPosition::kSticky || |
| + state.ParentStyle()->IsInStickySubtree()); |
| } |
| void StyleBuilderFunctions::applyInitialCSSPropertyCaretColor( |