<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>138782</bug_id>
          
          <creation_ts>2014-11-16 16:15:05 -0800</creation_ts>
          <short_desc>Crash when setting &apos;flex-shrink&apos; CSS property to a calculated value</short_desc>
          <delta_ts>2014-11-18 16:18:09 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>138783</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>138778</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Dumez">cdumez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1049078</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2014-11-16 16:15:05 -0800</bug_when>
    <thetext>Crash when setting &apos;flex-shrink&apos; CSS property to a calculated value, e.g. &apos;calc(2 * 3)&apos;.

Backtrace:
SHOULD NEVER BE REACHED
/Users/chris/WebKit/OpenSource/Source/WebCore/css/CSSPrimitiveValueMappings.h(123) : float WebCore::CSSPrimitiveValue::operator float() const
1   0x1113e2770 WTFCrash
2   0x1145cc6be WebCore::CSSPrimitiveValue::operator float&lt;float&gt;() const
3   0x1145c41ee WebCore::StyleBuilderFunctions::applyValueFlexShrink(WebCore::StyleResolver&amp;, WebCore::CSSValue&amp;)
4   0x1145bc35c WebCore::StyleBuilder::applyProperty(WebCore::CSSPropertyID, WebCore::StyleResolver&amp;, WebCore::CSSValue&amp;, bool, bool)
5   0x114604f03 WebCore::StyleResolver::applyProperty(WebCore::CSSPropertyID, WebCore::CSSValue*)
6   0x1146127e7 WebCore::StyleResolver::CascadedProperties::Property::apply(WebCore::StyleResolver&amp;)
7   0x1146049ea WebCore::StyleResolver::applyCascadedProperties(WebCore::StyleResolver::CascadedProperties&amp;, int, int)
8   0x114603137 WebCore::StyleResolver::applyMatchedProperties(WebCore::StyleResolver::MatchResult const&amp;, WebCore::Element const*, WebCore::StyleResolver::ShouldUseMatchedPropertiesCache)
9   0x114600dc3 WebCore::StyleResolver::styleForElement(WebCore::Element*, WebCore::RenderStyle*, WebCore::StyleSharingBehavior, WebCore::RuleMatchingBehavior, WebCore::RenderRegion const*)
10  0x114632513 WebCore::Style::styleForElement(WebCore::Element&amp;, WebCore::RenderStyle&amp;)
11  0x114630482 WebCore::Style::resolveLocal(WebCore::Element&amp;, WebCore::RenderStyle&amp;, WebCore::Style::RenderTreePosition&amp;, WebCore::Style::Change)
12  0x11462debd WebCore::Style::resolveTree(WebCore::Element&amp;, WebCore::RenderStyle&amp;, WebCore::Style::RenderTreePosition&amp;, WebCore::Style::Change)
13  0x11462e11b WebCore::Style::resolveTree(WebCore::Element&amp;, WebCore::RenderStyle&amp;, WebCore::Style::RenderTreePosition&amp;, WebCore::Style::Change)
14  0x11462e11b WebCore::Style::resolveTree(WebCore::Element&amp;, WebCore::RenderStyle&amp;, WebCore::Style::RenderTreePosition&amp;, WebCore::Style::Change)
15  0x11462dd78 WebCore::Style::resolveTree(WebCore::Document&amp;, WebCore::Style::Change)
16  0x112eb6516 WebCore::Document::recalcStyle(WebCore::Style::Change)
17  0x112eb26ff WebCore::Document::updateStyleIfNeeded()
18  0x112eac9e9 WebCore::Document::styleRecalcTimerFired(WebCore::Timer&amp;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1049634</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Dumez">cdumez</who>
    <bug_when>2014-11-18 16:18:09 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 138783 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>