Changeset 75733 in webkit


Ignore:
Timestamp:
Jan 13, 2011 12:51:45 PM (13 years ago)
Author:
enne@google.com
Message:

2011-01-13 Adrienne Walker <enne@google.com>

Reviewed by Kenneth Russell.

[chromium] Attempt to fix crash in tiled compositor memcpy
https://bugs.webkit.org/show_bug.cgi?id=52379

  • platform/graphics/chromium/LayerTilerChromium.cpp: (WebCore::LayerTilerChromium::update):
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r75728 r75733  
     12011-01-13  Adrienne Walker  <enne@google.com>
     2
     3        Reviewed by Kenneth Russell.
     4
     5        [chromium] Attempt to fix crash in tiled compositor memcpy
     6        https://bugs.webkit.org/show_bug.cgi?id=52379
     7
     8        * platform/graphics/chromium/LayerTilerChromium.cpp:
     9        (WebCore::LayerTilerChromium::update):
     10
    1112011-01-13  Dimitri Glazkov  <dglazkov@chromium.org>
    212
  • trunk/Source/WebCore/platform/graphics/chromium/LayerTilerChromium.cpp

    r74722 r75733  
    316316            const IntPoint anchor = sourceRect.location();
    317317            sourceRect.intersect(layerRectToContentRect(tile->m_dirtyLayerRect));
     318            if (sourceRect.isEmpty())
     319                continue;
    318320
    319321            // Calculate tile-space rectangle to upload into.
    320322            IntRect destRect(IntPoint(sourceRect.x() - anchor.x(), sourceRect.y() - anchor.y()), sourceRect.size());
     323            ASSERT(destRect.x() >= 0);
     324            ASSERT(destRect.y() >= 0);
    321325
    322326            // Offset from paint rectangle to this tile's dirty rectangle.
    323327            IntPoint paintOffset(sourceRect.x() - paintRect.x(), sourceRect.y() - paintRect.y());
     328            ASSERT(paintOffset.x() >= 0);
     329            ASSERT(paintOffset.y() >= 0);
    324330
    325331            uint8_t* pixelSource;
Note: See TracChangeset for help on using the changeset viewer.