[webkit-changes] cvs commit: WebCore/khtml/xml dom_nodeimpl.cpp
Timothy
thatcher at opensource.apple.com
Wed Nov 16 17:17:42 PST 2005
thatcher 05/11/16 17:17:41
Modified: . Tag: Safari-2-0-branch ChangeLog
khtml/rendering Tag: Safari-2-0-branch render_layer.cpp
khtml/xml Tag: Safari-2-0-branch dom_nodeimpl.cpp
Log:
Merged fix from TOT to Safari-2-0-branch
2005-11-16 Adele Peterson <adele at apple.com>
Reviewed by Dave Harrson.
- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=5759
<rdar://problem/4346132> REGRESSION (10.4.3-10.4.4): horizontal link scrolling broken at aplacecalledcommon.co.uk (5759)
* khtml/rendering/render_layer.cpp: (khtml::RenderLayer::getRectToExpose): If the rect is larger than the visible rect, and we're trying to align to the closest edge, align to the left edge.
* khtml/xml/dom_nodeimpl.cpp: (DOM::ContainerNodeImpl::getRect): If width or height is negative, we were setting both to zero.
Now we only set the negative value to zero without affecting the other value.
Revision Changes Path
No revision
No revision
1.1.2.66 +15 -0 WebCore/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/WebCore/ChangeLog,v
retrieving revision 1.1.2.65
retrieving revision 1.1.2.66
diff -u -r1.1.2.65 -r1.1.2.66
--- ChangeLog 16 Nov 2005 01:36:11 -0000 1.1.2.65
+++ ChangeLog 17 Nov 2005 01:17:31 -0000 1.1.2.66
@@ -1,3 +1,18 @@
+2005-11-16 Timothy Hatcher <timothy at apple.com>
+
+ Merged fix from TOT to Safari-2-0-branch
+
+ 2005-11-16 Adele Peterson <adele at apple.com>
+
+ Reviewed by Dave Harrson.
+
+ - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=5759
+ <rdar://problem/4346132> REGRESSION (10.4.3-10.4.4): horizontal link scrolling broken at aplacecalledcommon.co.uk (5759)
+
+ * khtml/rendering/render_layer.cpp: (khtml::RenderLayer::getRectToExpose): If the rect is larger than the visible rect, and we're trying to align to the closest edge, align to the left edge.
+ * khtml/xml/dom_nodeimpl.cpp: (DOM::ContainerNodeImpl::getRect): If width or height is negative, we were setting both to zero.
+ Now we only set the negative value to zero without affecting the other value.
+
2005-11-15 Timothy Hatcher <timothy at apple.com>
Merged fix from TOT to Safari-2-0-branch
No revision
No revision
1.94.6.4 +4 -4 WebCore/khtml/rendering/render_layer.cpp
Index: render_layer.cpp
===================================================================
RCS file: /cvs/root/WebCore/khtml/rendering/render_layer.cpp,v
retrieving revision 1.94.6.3
retrieving revision 1.94.6.4
diff -u -r1.94.6.3 -r1.94.6.4
--- render_layer.cpp 13 Nov 2005 00:18:39 -0000 1.94.6.3
+++ render_layer.cpp 17 Nov 2005 01:17:39 -0000 1.94.6.4
@@ -628,8 +628,8 @@
if (scrollX == noScroll)
x = visibleRect.x();
- // If we're trying to align to the closest edge, and the exposeRect is further right than the visibleRect, then alignRight.
- else if ((scrollX == alignRight) || ((scrollX == alignToClosestEdge) && exposeRect.right() > visibleRect.right()))
+ // If we're trying to align to the closest edge, and the exposeRect is further right than the visibleRect, and not bigger than the visible area, then alignRight.
+ else if ((scrollX == alignRight) || ((scrollX == alignToClosestEdge) && exposeRect.right() > visibleRect.right() && w < visibleRect.width()))
x = exposeRect.right() - visibleRect.width();
else if (scrollX == alignCenter)
x -= (visibleRect.width() - w) / 2;
@@ -656,8 +656,8 @@
if (scrollY == noScroll)
y = visibleRect.y();
- // If we're trying to align to the closest edge, and the exposeRect is further down than the visibleRect, then alignBottom.
- else if ((scrollY == alignBottom) || ((scrollY == alignToClosestEdge) && exposeRect.bottom() > visibleRect.bottom()))
+ // If we're trying to align to the closest edge, and the exposeRect is further down than the visibleRect, and not bigger than the visible area, then alignBottom.
+ else if ((scrollY == alignBottom) || ((scrollY == alignToClosestEdge) && exposeRect.bottom() > visibleRect.bottom() && h < visibleRect.height()))
y = exposeRect.bottom() - visibleRect.height();
else if (scrollY == alignCenter)
y -= (visibleRect.height() - h) / 2;
No revision
No revision
1.140.8.12 +5 -3 WebCore/khtml/xml/dom_nodeimpl.cpp
Index: dom_nodeimpl.cpp
===================================================================
RCS file: /cvs/root/WebCore/khtml/xml/dom_nodeimpl.cpp,v
retrieving revision 1.140.8.11
retrieving revision 1.140.8.12
diff -u -r1.140.8.11 -r1.140.8.12
--- dom_nodeimpl.cpp 12 Nov 2005 01:24:35 -0000 1.140.8.11
+++ dom_nodeimpl.cpp 17 Nov 2005 01:17:40 -0000 1.140.8.12
@@ -2295,9 +2295,11 @@
if (yPos==0)
yPos = yEnd;
}
- if ( xEnd <= xPos || yEnd <= yPos )
- return QRect( QPoint( xPos, yPos ), QSize() );
-
+ if (xEnd < xPos)
+ xEnd = xPos;
+ if (yEnd < yPos)
+ yEnd = yPos;
+
return QRect(xPos, yPos, xEnd - xPos, yEnd - yPos);
}
More information about the webkit-changes
mailing list