Index: Source/core/html/HTMLBodyElement.cpp |
diff --git a/Source/core/html/HTMLBodyElement.cpp b/Source/core/html/HTMLBodyElement.cpp |
index eed6b0ccc044ff4651261af1214e5e0907678360..23d1423fef1a73f7031cb4cf8993ed8a7b8071be 100644 |
--- a/Source/core/html/HTMLBodyElement.cpp |
+++ b/Source/core/html/HTMLBodyElement.cpp |
@@ -268,6 +268,9 @@ int HTMLBodyElement::scrollLeft() |
void HTMLBodyElement::setScrollLeft(int scrollLeft) |
{ |
+ if (!document().inQuirksMode()) |
+ return; |
+ |
Document& document = this->document(); |
document.updateLayoutIgnorePendingStylesheets(); |
Frame* frame = document.frame(); |
@@ -296,6 +299,9 @@ int HTMLBodyElement::scrollTop() |
void HTMLBodyElement::setScrollTop(int scrollTop) |
{ |
+ if (!document().inQuirksMode()) |
+ return; |
+ |
Document& document = this->document(); |
document.updateLayoutIgnorePendingStylesheets(); |
Frame* frame = document.frame(); |