⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 199037 in webkit


Ignore:
Timestamp:
Apr 4, 2016, 8:56:46 PM (10 years ago)
Author:
Simon Fraser
Message:

Don't crash when rendering form controls with Display List Drawing enabled
https://bugs.webkit.org/show_bug.cgi?id=156122

Reviewed by Sam Weinig.

Don't attempt to paint form controls if display-list drawing is enabled, since
doing so attempts to get at a CGContextRef that doens't exist.

  • rendering/RenderTheme.cpp:

(WebCore::RenderTheme::paint):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r199034 r199037  
     12016-04-04  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Don't crash when rendering form controls with Display List Drawing enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=156122
     5
     6        Reviewed by Sam Weinig.
     7       
     8        Don't attempt to paint form controls if display-list drawing is enabled, since
     9        doing so attempts to get at a CGContextRef that doens't exist.
     10
     11        * rendering/RenderTheme.cpp:
     12        (WebCore::RenderTheme::paint):
     13
    1142016-04-04  Zalan Bujtas  <zalan@apple.com>
    215
  • trunk/Source/WebCore/rendering/RenderTheme.cpp

    r195180 r199037  
    274274    }
    275275    if (paintInfo.context().paintingDisabled())
     276        return false;
     277
     278    if (UNLIKELY(paintInfo.context().isRecording()))
    276279        return false;
    277280
Note: See TracChangeset for help on using the changeset viewer.