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 252d0aa7089ab20330dc086bc1cf3870f0b1afb5..117dcb12e7da9112c78eb37504021a75ab5e587c 100644 |
--- a/third_party/WebKit/Source/core/dom/Document.cpp |
+++ b/third_party/WebKit/Source/core/dom/Document.cpp |
@@ -1948,7 +1948,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 || |
@@ -1961,8 +1960,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); |
@@ -1974,7 +1972,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); |
} |