Reviewed by andersca
* WebCore.xcodeproj/project.pbxproj:
* page/FrameView.cpp:
(WebCore::FrameView::windowClipRectForLayer):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22062
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-06-07 David Hyatt <hyatt@apple.com>
+
+ Fix crash. Null check layer. Bug 13984.
+
+ Reviewed by andersca
+
+ * WebCore.xcodeproj/project.pbxproj:
+ * page/FrameView.cpp:
+ (WebCore::FrameView::windowClipRectForLayer):
+
2007-06-07 Oliver Hunt <oliver@apple.com>
Reviewed by Justin.
IntRect FrameView::windowClipRectForLayer(const RenderLayer* layer, bool clipToLayerContents) const
{
+ // If we have no layer, just return our window clip rect.
+ if (!layer)
+ return windowClipRect();
+
// Apply the clip from the layer.
IntRect clipRect;
if (clipToLayerContents)