Title: [162994] trunk/Source/WebCore
Revision
162994
Author
aes...@apple.com
Date
2014-01-28 19:06:01 -0800 (Tue, 28 Jan 2014)

Log Message

[iOS] REGRESSION (r162663): Webpages have strange artifacts or corruption around tile boundaries
https://bugs.webkit.org/show_bug.cgi?id=127823

Reviewed by Daniel Bates.

Original patch by Simon Fraser.

* platform/ScrollView.cpp: Specify LegacyIOSDocumentViewRect when calling visibleContentRect().

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (162993 => 162994)


--- trunk/Source/WebCore/ChangeLog	2014-01-29 02:58:04 UTC (rev 162993)
+++ trunk/Source/WebCore/ChangeLog	2014-01-29 03:06:01 UTC (rev 162994)
@@ -1,3 +1,14 @@
+2014-01-28  Andy Estes  <aes...@apple.com>
+
+        [iOS] REGRESSION (r162663): Webpages have strange artifacts or corruption around tile boundaries
+        https://bugs.webkit.org/show_bug.cgi?id=127823
+
+        Reviewed by Daniel Bates.
+
+        Original patch by Simon Fraser.
+
+        * platform/ScrollView.cpp: Specify LegacyIOSDocumentViewRect when calling visibleContentRect().
+
 2014-01-28  Zoltan Horvath  <zol...@webkit.org>
 
         [CSS Shapes] Adjust inset sizing syntax to the latest specification

Modified: trunk/Source/WebCore/platform/ScrollView.cpp (162993 => 162994)


--- trunk/Source/WebCore/platform/ScrollView.cpp	2014-01-29 02:58:04 UTC (rev 162993)
+++ trunk/Source/WebCore/platform/ScrollView.cpp	2014-01-29 03:06:01 UTC (rev 162994)
@@ -382,7 +382,7 @@
 {
     // If no scrollbars are present, it does not indicate content is not be scrollable.
     if (!m_horizontalScrollbar && !m_verticalScrollbar && !prohibitsScrolling()) {
-        IntSize scrollSize = m_contentsSize - visibleContentRect().size();
+        IntSize scrollSize = m_contentsSize - visibleContentRect(LegacyIOSDocumentVisibleRect).size();
         scrollSize.clampNegativeToZero();
         return orientation == HorizontalScrollbar ? scrollSize.width() : scrollSize.height();
     }
@@ -1025,7 +1025,7 @@
 {
     IntRect paintRect = rect;
     if (clipsRepaints() && !paintsEntireContents())
-        paintRect.intersect(visibleContentRect());
+        paintRect.intersect(visibleContentRect(LegacyIOSDocumentVisibleRect));
     if (paintRect.isEmpty())
         return;
 
@@ -1142,7 +1142,7 @@
 
     IntRect documentDirtyRect = rect;
     if (!paintsEntireContents()) {
-        IntRect visibleAreaWithoutScrollbars(location(), visibleContentRect().size());
+        IntRect visibleAreaWithoutScrollbars(location(), visibleContentRect(LegacyIOSDocumentVisibleRect).size());
         documentDirtyRect.intersect(visibleAreaWithoutScrollbars);
     }
 
@@ -1156,7 +1156,7 @@
             context->translate(-scrollX(), -scrollY());
             documentDirtyRect.moveBy(scrollPosition());
 
-            context->clip(visibleContentRect());
+            context->clip(visibleContentRect(LegacyIOSDocumentVisibleRect));
         }
 
         paintContents(context, documentDirtyRect);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to