Changeset 27579 in webkit


Ignore:
Timestamp:
Nov 7, 2007, 12:59:00 PM (18 years ago)
Author:
mitz@apple.com
Message:

WebCore:

Reviewed by Dave Hyatt.

Test: fast/css/display-none-inline-style-change-crash.html

  • dom/Element.cpp: (WebCore::Element::recalcStyle): Fixed the crash by null-checking the current style and removed other checks that are not strictly necessary.

LayoutTests:

Reviewed by Dave Hyatt.

  • fast/css/display-none-inline-style-change-crash-expected.txt: Added.
  • fast/css/display-none-inline-style-change-crash.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r27576 r27579  
     12007-11-07  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Dave Hyatt.
     4
     5        - test for http://bugs.webkit.org/show_bug.cgi?id=15887
     6          REGRESSION (r27576): Crash in RenderStyle::affectedByHoverRules clicking link on Digg
     7
     8        * fast/css/display-none-inline-style-change-crash-expected.txt: Added.
     9        * fast/css/display-none-inline-style-change-crash.html: Added.
     10
    1112007-11-07  Dan Bernstein  <mitz@apple.com>
    212
  • trunk/WebCore/ChangeLog

    r27578 r27579  
     12007-11-07  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Dave Hyatt.
     4
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=15887
     6          REGRESSION (r27576): Crash in RenderStyle::affectedByHoverRules clicking link on Digg
     7
     8        Test: fast/css/display-none-inline-style-change-crash.html
     9
     10        * dom/Element.cpp:
     11        (WebCore::Element::recalcStyle): Fixed the crash by null-checking
     12        the current style and removed other checks that are not strictly
     13        necessary.
     14
    1152007-11-07  Tristan O'Tierney  <tristan@apple.com>
    216
  • trunk/WebCore/dom/Element.cpp

    r27576 r27579  
    725725        }
    726726
    727         if (newStyle && change != Force && styleChangeType() != FullStyleChange && document()->usesDescendantRules()) {
     727        if (currentStyle && newStyle) {
    728728            // Preserve "affected by" bits that were propagated to us from descendants
    729729            if (currentStyle->affectedByHoverRules())
Note: See TracChangeset for help on using the changeset viewer.