Chromium Code Reviews| Index: Source/core/layout/LayoutObject.cpp |
| diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp |
| index 99aa447fc57f3e52a9d4b00e267a3f877b6f4cf4..55edfc0f459616aa9cc4eefd4c95df928b868c71 100644 |
| --- a/Source/core/layout/LayoutObject.cpp |
| +++ b/Source/core/layout/LayoutObject.cpp |
| @@ -75,6 +75,7 @@ |
| #include "core/layout/compositing/DeprecatedPaintLayerCompositor.h" |
| #include "core/page/AutoscrollController.h" |
| #include "core/page/Page.h" |
| +#include "core/page/scrolling/SnapCoordinator.h" |
| #include "core/paint/DeprecatedPaintLayer.h" |
| #include "core/paint/ObjectPainter.h" |
| #include "core/style/ContentData.h" |
| @@ -1965,6 +1966,9 @@ void LayoutObject::styleDidChange(StyleDifference diff, const ComputedStyle* old |
| frame->localFrameRoot()->eventHandler().scheduleCursorUpdate(); |
| } |
| } |
| + |
| + if (SnapCoordinator* snapCoordinator = document().frame()->snapCoordinator()) |
| + snapCoordinator->styleChanged(node(), oldStyle); |
|
esprehn
2015/09/24 17:37:41
This doesn't belong here, I think you want it in E
majidvp
2015/10/15 21:47:02
Done.
|
| } |
| void LayoutObject::propagateStyleToAnonymousChildren(bool blockChildrenOnly) |