Changeset 239526 in webkit


Ignore:
Timestamp:
Dec 21, 2018 4:02:19 PM (5 years ago)
Author:
Alan Bujtas
Message:

[iOS] Using file upload can trigger a crash under RenderThemeIOS::paintFileUploadIconDecorations()
https://bugs.webkit.org/show_bug.cgi?id=192357
<rdar://problem/42852260>

Reviewed by Simon Fraser.

Do not try to paint the file picker when painting is disabled.

  • rendering/RenderFileUploadControl.cpp:

(WebCore::RenderFileUploadControl::paintObject):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r239523 r239526  
     12018-12-21  Zalan Bujtas  <zalan@apple.com>
     2
     3        [iOS] Using file upload can trigger a crash under RenderThemeIOS::paintFileUploadIconDecorations()
     4        https://bugs.webkit.org/show_bug.cgi?id=192357
     5        <rdar://problem/42852260>
     6
     7        Reviewed by Simon Fraser.
     8
     9        Do not try to paint the file picker when painting is disabled.
     10
     11        * rendering/RenderFileUploadControl.cpp:
     12        (WebCore::RenderFileUploadControl::paintObject):
     13
    1142018-12-21  Jiewen Tan  <jiewen_tan@apple.com>
    215
  • trunk/Source/WebCore/rendering/RenderFileUploadControl.cpp

    r238359 r239526  
    118118        return;
    119119   
     120    if (paintInfo.context().paintingDisabled())
     121        return;
     122
    120123    // Push a clip.
    121124    GraphicsContextStateSaver stateSaver(paintInfo.context(), false);
Note: See TracChangeset for help on using the changeset viewer.