Changeset 96151 in webkit for trunk/Source/JavaScriptCore


Ignore:
Timestamp:
Sep 27, 2011, 1:54:16 PM (14 years ago)
Author:
[email protected]
Message:

Rapidly refreshing a feMorphology[erode] with r=0 can sometimes cause display corruption
https://bugs.webkit.org/show_bug.cgi?id=68816
<rdar://problem/10186468>

Reviewed by Simon Fraser.

If a filter returns without writing into its result buffer, make sure to return an cleared buffer.

Test: svg/filters/feMorphology-zero-radius.svg

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r96146 r96151  
     12011-09-27  Tim Horton  <[email protected]>
     2
     3        Rapidly refreshing a feMorphology[erode] with r=0 can sometimes cause display corruption
     4        https://bugs.webkit.org/show_bug.cgi?id=68816
     5        <rdar://problem/10186468>
     6
     7        Reviewed by Simon Fraser.
     8       
     9        Add ByteArray::clear, which zeros the memory in the ByteArray.
     10
     11        * wtf/ByteArray.h:
     12        (WTF::ByteArray::clear): Added.
     13
    1142011-09-27  Sheriff Bot  <[email protected]>
    215
  • trunk/Source/JavaScriptCore/wtf/ByteArray.h

    r95901 r96151  
    7171        unsigned char* data() { return m_data; }
    7272
     73        void clear() { memset(m_data, 0, m_size); }
     74
    7375        void deref()
    7476        {
Note: See TracChangeset for help on using the changeset viewer.