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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2932593004: Update the snap points css properties (Closed)
Patch Set: Fix nits Created 3 years, 6 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: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 61e9adeb3203d5c6948e4f18c22edcda46cf3448..fd0f51ca7d38f92ec8bf9f4d8e17b4cd052e75c0 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -1949,7 +1949,6 @@ void Document::InheritHtmlAndBodyElementStyles(StyleRecalcChange change) {
}
ScrollSnapType snap_type = overflow_style->GetScrollSnapType();
- const LengthPoint& snap_destination = overflow_style->ScrollSnapDestination();
RefPtr<ComputedStyle> document_style = GetLayoutViewItem().MutableStyle();
if (document_style->GetWritingMode() != root_writing_mode ||
@@ -1962,8 +1961,7 @@ void Document::InheritHtmlAndBodyElementStyles(StyleRecalcChange change) {
document_style->OverflowX() != overflow_x ||
document_style->OverflowY() != overflow_y ||
document_style->ColumnGap() != column_gap ||
- document_style->GetScrollSnapType() != snap_type ||
- document_style->ScrollSnapDestination() != snap_destination) {
+ document_style->GetScrollSnapType() != snap_type) {
RefPtr<ComputedStyle> new_style = ComputedStyle::Clone(*document_style);
new_style->SetWritingMode(root_writing_mode);
new_style->SetDirection(root_direction);
@@ -1975,7 +1973,6 @@ void Document::InheritHtmlAndBodyElementStyles(StyleRecalcChange change) {
new_style->SetOverflowY(overflow_y);
new_style->SetColumnGap(column_gap);
new_style->SetScrollSnapType(snap_type);
- new_style->SetScrollSnapDestination(snap_destination);
GetLayoutViewItem().SetStyle(new_style);
SetupFontBuilder(*new_style);
}

Powered by Google App Engine
This is Rietveld 408576698