Bug 77771

Summary: positive and negative flex values are not being cleared on style changes
Product: WebKit Reporter: Tony Chang <tony>
Component: New BugsAssignee: Tony Chang <tony>
Status: RESOLVED FIXED    
Severity: Normal CC: macpherson, menard, ojan, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing none

Tony Chang
Reported 2012-02-03 13:32:11 PST
positive and negative flex values are not being cleared on style changes
Attachments
Patch (4.46 KB, patch)
2012-02-03 13:33 PST, Tony Chang
no flags
Patch for landing (5.35 KB, patch)
2012-02-03 13:43 PST, Tony Chang
no flags
Tony Chang
Comment 1 2012-02-03 13:33:27 PST
Ojan Vafai
Comment 2 2012-02-03 13:40:00 PST
Comment on attachment 125397 [details] Patch How about writing this as: float positiveFlex = 0; float negativeFlex = 0; if (!value->isPrimitiveValue()) { if (!flexDirection || !value->isFlexValue()) return; CSSFlexValue* flexValue = static_cast<CSSFlexValue*>(value); value = flexValue->preferredSize(); positiveFlex = flexValue->positiveFlex(); negativeFlex = flexValue->negativeFlex(); } if (flexDirection == FlexWidth) { ... } else if (flexDirection == FlexHeight) { ... }
Tony Chang
Comment 3 2012-02-03 13:43:00 PST
Created attachment 125402 [details] Patch for landing
WebKit Review Bot
Comment 4 2012-02-03 16:10:35 PST
Comment on attachment 125402 [details] Patch for landing Clearing flags on attachment: 125402 Committed r106704: <http://trac.webkit.org/changeset/106704>
WebKit Review Bot
Comment 5 2012-02-03 16:10:40 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.