Summary: | Changing flexbox justify/alignment doesn't update their positioning | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Eric <ericbidelman> | ||||||
Component: | Layout and Rendering | Assignee: | Tony Chang <tony> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | eric, ojan, tony, webkit.review.bot | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 62048 | ||||||||
Attachments: |
|
Description
Eric
2012-06-05 14:57:15 PDT
Created attachment 145875 [details]
Test case
I don't have time to investigate this right now, but I suspect that the bug is that in RenderStyle::diff, we don't compare the new values on rareNonInheritedData. Previously, we would compare rareNonInheritedData->m_flexibleBox against each other, but moving the values to rareNonInheritedData doesn't automatically do this. Once we realize that the style has changed, we'll probably re-layout properly. The fix is probably around line RenderStyle.cpp:376. Created attachment 145903 [details]
Patch
I wasn't making progress on my other bug, so I decided to fix this :) Comment on attachment 145903 [details] Patch Clearing flags on attachment: 145903 Committed r119564: <http://trac.webkit.org/changeset/119564> All reviewed patches have been landed. Closing bug. |