Title: [94690] trunk/Source/WebCore
- Revision
- 94690
- Author
- [email protected]
- Date
- 2011-09-07 11:15:12 -0700 (Wed, 07 Sep 2011)
Log Message
Null owningRenderer crash in RenderScrollbar::updateScrollbarParts.
https://bugs.webkit.org/show_bug.cgi?id=67669
Reviewed by James Robinson.
Owning renderer can be cleared for custom scrollbars in clearOwningRenderer()
call. We need a null check in updateScrollbarParts, so that we do not crash.
No tests since issue seen in crash reports only and I donot know a way to
reproduce.
* rendering/RenderScrollbar.cpp:
(WebCore::RenderScrollbar::updateScrollbarParts):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (94689 => 94690)
--- trunk/Source/WebCore/ChangeLog 2011-09-07 18:14:50 UTC (rev 94689)
+++ trunk/Source/WebCore/ChangeLog 2011-09-07 18:15:12 UTC (rev 94690)
@@ -1,3 +1,19 @@
+2011-09-06 Abhishek Arya <[email protected]>
+
+ Null owningRenderer crash in RenderScrollbar::updateScrollbarParts.
+ https://bugs.webkit.org/show_bug.cgi?id=67669
+
+ Reviewed by James Robinson.
+
+ Owning renderer can be cleared for custom scrollbars in clearOwningRenderer()
+ call. We need a null check in updateScrollbarParts, so that we do not crash.
+
+ No tests since issue seen in crash reports only and I donot know a way to
+ reproduce.
+
+ * rendering/RenderScrollbar.cpp:
+ (WebCore::RenderScrollbar::updateScrollbarParts):
+
2011-09-05 Jocelyn Turcotte <[email protected]>
[Qt][WK2] Make TiledDrawingArea request tiles only in the direction the viewport is panned to.
Modified: trunk/Source/WebCore/rendering/RenderScrollbar.cpp (94689 => 94690)
--- trunk/Source/WebCore/rendering/RenderScrollbar.cpp 2011-09-07 18:14:50 UTC (rev 94689)
+++ trunk/Source/WebCore/rendering/RenderScrollbar.cpp 2011-09-07 18:15:12 UTC (rev 94690)
@@ -195,7 +195,8 @@
if (newThickness != oldThickness) {
setFrameRect(IntRect(x(), y(), isHorizontal ? width() : newThickness, isHorizontal ? newThickness : height()));
- owningRenderer()->setChildNeedsLayout(true);
+ if (RenderBox* box = owningRenderer())
+ box->setChildNeedsLayout(true);
}
}
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes