Changeset 95386 in webkit


Ignore:
Timestamp:
Sep 17, 2011 4:12:16 PM (13 years ago)
Author:
hyatt@apple.com
Message:

https://bugs.webkit.org/show_bug.cgi?id=68307

Crash in border image cssText. Make sure to null check all the components, since they're all
optional now.

Reviewed by Sam Weinig.

Source/WebCore:

Added fast/borders/border-image-slice-omission.html

  • css/CSSBorderImageValue.cpp:

(WebCore::CSSBorderImageValue::cssText):

LayoutTests:

  • fast/borders/border-image-slice-omission.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r95384 r95386  
     12011-09-17  David Hyatt  <hyatt@apple.com>
     2
     3        https://bugs.webkit.org/show_bug.cgi?id=68307
     4       
     5        Crash in border image cssText. Make sure to null check all the components, since they're all
     6        optional now.
     7
     8        Reviewed by Sam Weinig.
     9
     10        * fast/borders/border-image-slice-omission.html: Added.
     11
    1122011-09-17  Csaba Osztrogonác  <ossy@webkit.org>
    213
  • trunk/Source/WebCore/ChangeLog

    r95385 r95386  
     12011-09-17  David Hyatt  <hyatt@apple.com>
     2
     3        https://bugs.webkit.org/show_bug.cgi?id=68307
     4       
     5        Crash in border image cssText. Make sure to null check all the components, since they're all
     6        optional now.
     7
     8        Reviewed by Sam Weinig.
     9
     10        Added fast/borders/border-image-slice-omission.html
     11
     12        * css/CSSBorderImageValue.cpp:
     13        (WebCore::CSSBorderImageValue::cssText):
     14
    1152011-09-17  Aaron Boodman  <aa@chromium.org>
    216
  • trunk/Source/WebCore/css/CSSBorderImageValue.cpp

    r94912 r95386  
    4444{
    4545    // Image first.
    46     String text(m_image->cssText());
    47     text += " ";
     46    String text;
     47   
     48    if (m_image)
     49        text += m_image->cssText();
    4850
    4951    // Now the slices.
    50     text += m_imageSlice->cssText();
     52    if (m_imageSlice) {
     53        if (!text.isEmpty())
     54            text += " ";
     55        text += m_imageSlice->cssText();
     56    }
    5157
    5258    // Now the border widths.
     
    6369    if (m_repeat) {
    6470        // Now the keywords.
    65         text += " ";
     71        if (!text.isEmpty())
     72            text += " ";
    6673        text += m_repeat->cssText();
    6774    }
Note: See TracChangeset for help on using the changeset viewer.