Changeset 84349 in webkit


Ignore:
Timestamp:
Apr 20, 2011, 12:39:36 AM (14 years ago)
Author:
mjs@apple.com
Message:

2011-04-19 Maciej Stachowiak <mjs@apple.com>

Reviewed by Antti Koivisto.

Reproducible crash two-finger zooming at multiple sites in WebCore::RenderLayer::isTransparent
https://bugs.webkit.org/show_bug.cgi?id=58868

I could not figure out how to make a test.

  • rendering/RenderLayer.cpp: (WebCore::RenderLayer::paintLayer): Check for existence of a parent before calling a method on it.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r84348 r84349  
     12011-04-19  Maciej Stachowiak  <mjs@apple.com>
     2
     3        Reviewed by Antti Koivisto.
     4
     5        Reproducible crash two-finger zooming at multiple sites in WebCore::RenderLayer::isTransparent
     6        https://bugs.webkit.org/show_bug.cgi?id=58868
     7
     8        I could not figure out how to make a test.
     9
     10        * rendering/RenderLayer.cpp:
     11        (WebCore::RenderLayer::paintLayer): Check for existence of a
     12        parent before calling a method on it.
     13
    1142011-04-20  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
    215
  • trunk/Source/WebCore/rendering/RenderLayer.cpp

    r84215 r84349  
    25152515
    25162516        // If we have a transparency layer enclosing us and we are the root of a transform, then we need to establish the transparency
    2517         // layer from the parent now.
    2518         if (paintFlags & PaintLayerHaveTransparency)
    2519             parent()->beginTransparencyLayers(p, rootLayer, paintBehavior);
    2520  
     2517        // layer from the parent now, assuming there is a parent
     2518        if (paintFlags & PaintLayerHaveTransparency) {
     2519            if (parent())
     2520                parent()->beginTransparencyLayers(p, rootLayer, paintBehavior);
     2521            else
     2522                beginTransparencyLayers(p, rootLayer, paintBehavior);
     2523        }
     2524
    25212525        // Make sure the parent's clip rects have been calculated.
    25222526        IntRect clipRect = paintDirtyRect;
Note: See TracChangeset for help on using the changeset viewer.