Changeset 85834 in webkit


Ignore:
Timestamp:
May 4, 2011 10:57:51 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-05-04 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r85788.
http://trac.webkit.org/changeset/85788
https://bugs.webkit.org/show_bug.cgi?id=60250

svg/text/text-block-child-crash.xhtml asserts (Requested by
Ossy on #webkit).

  • svg/custom/display-table-caption-foreignObject-expected.txt: Removed.
  • svg/custom/display-table-caption-foreignObject.svg: Removed.
  • svg/custom/display-table-caption-inherit-foreignObject-expected.txt: Removed.
  • svg/custom/display-table-caption-inherit-foreignObject.xhtml: Removed.
  • svg/custom/display-table-caption-inherit-text-expected.txt: Removed.
  • svg/custom/display-table-caption-inherit-text.xhtml: Removed.
  • svg/custom/display-table-caption-text-expected.txt: Removed.
  • svg/custom/display-table-caption-text.svg: Removed.

2011-05-04 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r85788.
http://trac.webkit.org/changeset/85788
https://bugs.webkit.org/show_bug.cgi?id=60250

svg/text/text-block-child-crash.xhtml asserts (Requested by
Ossy on #webkit).

  • css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applyProperty):
Location:
trunk
Files:
8 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r85830 r85834  
     12011-05-04  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r85788.
     4        http://trac.webkit.org/changeset/85788
     5        https://bugs.webkit.org/show_bug.cgi?id=60250
     6
     7        svg/text/text-block-child-crash.xhtml asserts (Requested by
     8        Ossy on #webkit).
     9
     10        * svg/custom/display-table-caption-foreignObject-expected.txt: Removed.
     11        * svg/custom/display-table-caption-foreignObject.svg: Removed.
     12        * svg/custom/display-table-caption-inherit-foreignObject-expected.txt: Removed.
     13        * svg/custom/display-table-caption-inherit-foreignObject.xhtml: Removed.
     14        * svg/custom/display-table-caption-inherit-text-expected.txt: Removed.
     15        * svg/custom/display-table-caption-inherit-text.xhtml: Removed.
     16        * svg/custom/display-table-caption-text-expected.txt: Removed.
     17        * svg/custom/display-table-caption-text.svg: Removed.
     18
    1192011-05-04  MORITA Hajime <morrita@google.com>
    220
  • trunk/Source/WebCore/ChangeLog

    r85826 r85834  
     12011-05-04  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r85788.
     4        http://trac.webkit.org/changeset/85788
     5        https://bugs.webkit.org/show_bug.cgi?id=60250
     6
     7        svg/text/text-block-child-crash.xhtml asserts (Requested by
     8        Ossy on #webkit).
     9
     10        * css/CSSStyleSelector.cpp:
     11        (WebCore::CSSStyleSelector::applyProperty):
     12
    1132011-05-04  Ryosuke Niwa  <rniwa@webkit.org>
    214
  • trunk/Source/WebCore/css/CSSStyleSelector.cpp

    r85811 r85834  
    88 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/)
    99 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
    10  * Copyright (C) 2011 Research In Motion Limited. All rights reserved.
    1110 *
    1211 * This library is free software; you can redistribute it and/or
     
    35393538}
    35403539
    3541 class SVGDisplayPropertyGuard {
    3542     WTF_MAKE_NONCOPYABLE(SVGDisplayPropertyGuard);
    3543 public:
    3544     SVGDisplayPropertyGuard(Element*, RenderStyle*);
    3545     ~SVGDisplayPropertyGuard();
    3546 private:
    3547 #if ENABLE(SVG)
    3548     RenderStyle* m_style;
    3549     EDisplay m_originalDisplayPropertyValue;
    3550 #endif
    3551 };
    3552 
    3553 #if !ENABLE(SVG)
    3554 inline SVGDisplayPropertyGuard::SVGDisplayPropertyGuard(Element*, RenderStyle*)
    3555 {
    3556 }
    3557 
    3558 inline SVGDisplayPropertyGuard::~SVGDisplayPropertyGuard()
    3559 {
    3560 }
    3561 #else
    3562 static inline bool isAcceptableForSVGElement(EDisplay displayPropertyValue)
    3563 {
    3564     return displayPropertyValue == INLINE || displayPropertyValue == BLOCK || displayPropertyValue == NONE;
    3565 }
    3566 
    3567 inline SVGDisplayPropertyGuard::SVGDisplayPropertyGuard(Element* element, RenderStyle* style)
    3568 {
    3569     if (!(element && element->isSVGElement())) {
    3570         m_originalDisplayPropertyValue = NONE;
    3571         m_style = 0;
    3572         return;
    3573     }
    3574     m_style = style;
    3575     m_originalDisplayPropertyValue = style->display();
    3576     ASSERT(isAcceptableForSVGElement(m_originalDisplayPropertyValue));
    3577 }
    3578 
    3579 inline SVGDisplayPropertyGuard::~SVGDisplayPropertyGuard()
    3580 {
    3581     if (!m_style)
    3582         return;
    3583     if (isAcceptableForSVGElement(m_style->display()))
    3584         return;
    3585     m_style->setDisplay(m_originalDisplayPropertyValue);
    3586 }
    3587 #endif
    3588 
    3589 
    35903540// SVG handles zooming in a different way compared to CSS. The whole document is scaled instead
    35913541// of each individual length value in the render style / tree. CSSPrimitiveValue::computeLength*()
     
    36593609        HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(clear, Clear)
    36603610        return;
    3661     case CSSPropertyDisplay: {
    3662         SVGDisplayPropertyGuard guard(m_element, m_style.get());
     3611    case CSSPropertyDisplay:
    36633612        HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(display, Display)
    36643613#if ENABLE(WCSS)
     
    36783627#endif
    36793628        return;
    3680     }
    36813629    case CSSPropertyEmptyCells:
    36823630        HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(emptyCells, EmptyCells)
Note: See TracChangeset for help on using the changeset viewer.