Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1301)

Unified Diff: Source/core/layout/LayoutObject.cpp

Issue 1188563005: Compute snap offsets (both repeat and element based) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Clean up TODOs Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698