| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 170bd8ed07e092c6d043f440aad3382d4289cce8..defb45978c9c4d9b1f3ec0979dc66adcac2d3553 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -1729,18 +1729,22 @@ void Document::inheritHtmlAndBodyElementStyles(StyleRecalcChange change)
|
| columnGap = overflowStyle->columnGap();
|
| }
|
|
|
| + WebScrollBlocksOn scrollBlocksOn = documentElementStyle->scrollBlocksOn();
|
| +
|
| RefPtr<RenderStyle> documentStyle = renderView()->style();
|
| if (documentStyle->writingMode() != rootWritingMode
|
| || documentStyle->direction() != rootDirection
|
| || documentStyle->overflowX() != overflowX
|
| || documentStyle->overflowY() != overflowY
|
| - || documentStyle->columnGap() != columnGap) {
|
| + || documentStyle->columnGap() != columnGap
|
| + || documentStyle->scrollBlocksOn() != scrollBlocksOn) {
|
| RefPtr<RenderStyle> newStyle = RenderStyle::clone(documentStyle.get());
|
| newStyle->setWritingMode(rootWritingMode);
|
| newStyle->setDirection(rootDirection);
|
| newStyle->setColumnGap(columnGap);
|
| newStyle->setOverflowX(overflowX);
|
| newStyle->setOverflowY(overflowY);
|
| + newStyle->setScrollBlocksOn(scrollBlocksOn);
|
| renderView()->setStyle(newStyle);
|
| setupFontBuilder(newStyle.get());
|
| }
|
|
|