Changeset 85834 in webkit
- Timestamp:
- May 4, 2011 10:57:51 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 8 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r85830 r85834 1 2011-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 1 19 2011-05-04 MORITA Hajime <morrita@google.com> 2 20 -
trunk/Source/WebCore/ChangeLog
r85826 r85834 1 2011-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 1 13 2011-05-04 Ryosuke Niwa <rniwa@webkit.org> 2 14 -
trunk/Source/WebCore/css/CSSStyleSelector.cpp
r85811 r85834 8 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/) 9 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 10 * Copyright (C) 2011 Research In Motion Limited. All rights reserved.11 10 * 12 11 * This library is free software; you can redistribute it and/or … … 3539 3538 } 3540 3539 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 #endif3551 };3552 3553 #if !ENABLE(SVG)3554 inline SVGDisplayPropertyGuard::SVGDisplayPropertyGuard(Element*, RenderStyle*)3555 {3556 }3557 3558 inline SVGDisplayPropertyGuard::~SVGDisplayPropertyGuard()3559 {3560 }3561 #else3562 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 #endif3588 3589 3590 3540 // SVG handles zooming in a different way compared to CSS. The whole document is scaled instead 3591 3541 // of each individual length value in the render style / tree. CSSPrimitiveValue::computeLength*() … … 3659 3609 HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(clear, Clear) 3660 3610 return; 3661 case CSSPropertyDisplay: { 3662 SVGDisplayPropertyGuard guard(m_element, m_style.get()); 3611 case CSSPropertyDisplay: 3663 3612 HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(display, Display) 3664 3613 #if ENABLE(WCSS) … … 3678 3627 #endif 3679 3628 return; 3680 }3681 3629 case CSSPropertyEmptyCells: 3682 3630 HANDLE_INHERIT_AND_INITIAL_AND_PRIMITIVE(emptyCells, EmptyCells)
Note: See TracChangeset
for help on using the changeset viewer.