Changeset 68335 in webkit


Ignore:
Timestamp:
Sep 25, 2010, 10:34:01 AM (14 years ago)
Author:
mitz@apple.com
Message:

<rdar://problem/8478160> Null deref in InlineBox::height()
https://bugs.webkit.org/show_bug.cgi?id=45344

Reviewed by John Sullivan.

WebCore:

Test: fast/css/first-line-parent-style-different.html

  • rendering/RenderObject.cpp:

(WebCore::RenderObject::firstLineStyleSlowCase): Set the pseudo style bit on the RenderStyle
which is going to supply the first-line style rather than on this object’s RenderStyle. The
styles may differ.

LayoutTests:

  • fast/css/first-line-parent-style-different-expected.txt: Added.
  • fast/css/first-line-parent-style-different.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r68332 r68335  
     12010-09-25  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by John Sullivan.
     4
     5        <rdar://problem/8478160> Null deref in InlineBox::height()
     6        https://bugs.webkit.org/show_bug.cgi?id=45344
     7
     8        * fast/css/first-line-parent-style-different-expected.txt: Added.
     9        * fast/css/first-line-parent-style-different.html: Added.
     10
    1112010-09-25  Andreas Kling  <andreas.kling@nokia.com>
    212
  • trunk/WebCore/ChangeLog

    r68334 r68335  
     12010-09-25  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by John Sullivan.
     4
     5        <rdar://problem/8478160> Null deref in InlineBox::height()
     6        https://bugs.webkit.org/show_bug.cgi?id=45344
     7
     8        Test: fast/css/first-line-parent-style-different.html
     9
     10        * rendering/RenderObject.cpp:
     11        (WebCore::RenderObject::firstLineStyleSlowCase): Set the pseudo style bit on the RenderStyle
     12        which is going to supply the first-line style rather than on this object’s RenderStyle. The
     13        styles may differ.
     14
    1152010-09-25  Dan Bernstein  <mitz@apple.com>
    216
  • trunk/WebCore/rendering/RenderObject.cpp

    r68278 r68335  
    23432343        if (parentStyle != renderer->parent()->style()) {
    23442344            // A first-line style is in effect. Cache a first-line style for ourselves.
    2345             style->setHasPseudoStyle(FIRST_LINE_INHERITED);
     2345            renderer->style()->setHasPseudoStyle(FIRST_LINE_INHERITED);
    23462346            style = renderer->getCachedPseudoStyle(FIRST_LINE_INHERITED, parentStyle);
    23472347        }
Note: See TracChangeset for help on using the changeset viewer.