[webkit-changes] [WebKit/WebKit] 324460: Don't crash when RenderStyle is NULL for elements ...

Chirag Shah noreply at github.com
Fri Dec 2 11:25:00 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 324460324818d8c11892d690a58d5b7b37b2209d
      https://github.com/WebKit/WebKit/commit/324460324818d8c11892d690a58d5b7b37b2209d
  Author: Chirag M Shah <chirag_m_shah at apple.com>
  Date:   2022-12-02 (Fri, 02 Dec 2022)

  Changed paths:
    A LayoutTests/fast/rendering/render-style-null-optgroup-crash-expected.txt
    A LayoutTests/fast/rendering/render-style-null-optgroup-crash.html
    M Source/WebCore/rendering/RenderListBox.cpp

  Log Message:
  -----------
  Don't crash when RenderStyle is NULL for elements like optgroup when
rendering
https://bugs.webkit.org/show_bug.cgi?id=248575

Reviewed by Simon Fraser.

* LayoutTests/fast/rendering/render-style-null-optgroup-crash-expected.txt: Added.
* LayoutTests/fast/rendering/render-style-null-optgroup-crash.html: Added.
* Source/WebCore/rendering/RenderListBox.cpp:
(WebCore::RenderListBox::paintItemForeground):
(WebCore::RenderListBox::paintItemBackground):

Canonical link: https://commits.webkit.org/257295@main




More information about the webkit-changes mailing list