WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 28064
wrong calculation of overflow size for flexbox and table
https://bugs.webkit.org/show_bug.cgi?id=28064
Summary
wrong calculation of overflow size for flexbox and table
Shinichiro Hamaji
Reported
2009-08-07 01:01:30 PDT
RenderFlexibleBox and RenderTable has following code IntRect reflection(reflectionBox()); m_overflowTop = min(m_overflowTop, reflection.y()); m_overflowHeight = max(m_overflowHeight, reflection.bottom()); m_overflowLeft = min(m_overflowLeft, reflection.x()); m_overflowHeight = max(m_overflowWidth, reflection.right()); The last line is obviously wrong. I'll send a patch later.
Attachments
Patch v1
(10.30 KB, patch)
2009-08-07 01:14 PDT
,
Shinichiro Hamaji
no flags
Details
Formatted Diff
Diff
Patch v2
(10.92 KB, patch)
2009-08-09 22:09 PDT
,
Shinichiro Hamaji
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Shinichiro Hamaji
Comment 1
2009-08-07 01:14:22 PDT
Created
attachment 34258
[details]
Patch v1 --- 9 files changed, 117 insertions(+), 62 deletions(-)
Eric Seidel (no email)
Comment 2
2009-08-07 08:40:40 PDT
Comment on
attachment 34258
[details]
Patch v1 It is not immediately apparent to me what was wrong in the table code. Please explain in your ChangeLog. I like how the line spacing was where you copied this from: + style()->getBoxShadowExtent(shadowTop, shadowRight, shadowBottom, shadowLeft); + m_overflowLeft = min(m_overflowLeft, shadowLeft); I would prefer there was a line between the shadow lookups and the first m_overflowLeft setting. r- because your ChangeLog isn't clear enough (or my eyes aren't good enough) to understand easily what this does besides moving code. This change looks GREAT! But I need to know (and future people looking at your patch need to know) what is changed for Table/Flexbox. A simple pointer in the ChangeLog to what the error in the old code was would suffice. Thanks for doing this! Such a fantastic cleanup. :)
Shinichiro Hamaji
Comment 3
2009-08-09 22:09:54 PDT
Created
attachment 34440
[details]
Patch v2 --- 9 files changed, 130 insertions(+), 62 deletions(-)
Shinichiro Hamaji
Comment 4
2009-08-09 22:18:17 PDT
Done! Thanks for the review. As for RenderBlock style, I slightly preferred no spacing, but it was not strong preference. I'm 100% sure your preference should be closer to webkit's preference :) and I added a vertical space. I also added some descriptions in ChangeLog. Sorry for poor descriptions before. Thanks!
Eric Seidel (no email)
Comment 5
2009-08-09 22:23:11 PDT
Comment on
attachment 34440
[details]
Patch v2 Fantastic!
Eric Seidel (no email)
Comment 6
2009-08-12 15:41:52 PDT
Comment on
attachment 34440
[details]
Patch v2 Rejecting patch 34440 from commit-queue. This patch will require manual commit. WebKitTools/Scripts/run-webkit-tests --no-launch-safari --quiet failed with exit code 1
Eric Seidel (no email)
Comment 7
2009-08-12 15:51:35 PDT
transitions/transition-end-event-transform.html -> failed Not sure if it was related to your patch or not.
Shinichiro Hamaji
Comment 8
2009-08-13 02:01:27 PDT
(In reply to
comment #7
)
> transitions/transition-end-event-transform.html -> failed > Not sure if it was related to your patch or not.
Hmm... I don't see this failure.
Eric Seidel (no email)
Comment 9
2009-08-13 08:54:39 PDT
Comment on
attachment 34440
[details]
Patch v2 It's possible my local test run was simply flakey. I"ll add it back to the queue.
Eric Seidel (no email)
Comment 10
2009-08-13 09:16:19 PDT
Comment on
attachment 34440
[details]
Patch v2 Clearing flags on attachment: 34440 Committing to
http://svn.webkit.org/repository/webkit/trunk
... M LayoutTests/ChangeLog M LayoutTests/fast/reflections/reflection-overflow-scroll-expected.txt M LayoutTests/fast/reflections/reflection-overflow-scroll.html M LayoutTests/fast/reflections/resources/reflection-overflow-scroll.js M WebCore/ChangeLog M WebCore/rendering/RenderBlock.cpp M WebCore/rendering/RenderBlock.h M WebCore/rendering/RenderFlexibleBox.cpp M WebCore/rendering/RenderTable.cpp Committed
r47200
M WebCore/ChangeLog M WebCore/rendering/RenderFlexibleBox.cpp M WebCore/rendering/RenderBlock.cpp M WebCore/rendering/RenderBlock.h M WebCore/rendering/RenderTable.cpp M LayoutTests/ChangeLog M LayoutTests/fast/reflections/reflection-overflow-scroll-expected.txt M LayoutTests/fast/reflections/reflection-overflow-scroll.html M LayoutTests/fast/reflections/resources/reflection-overflow-scroll.js
r47200
= df611cf32e24948c658a71bf104e67f8eaf2971a (trunk) No changes between current HEAD and refs/remotes/trunk Resetting to the latest refs/remotes/trunk
http://trac.webkit.org/changeset/47200
Eric Seidel (no email)
Comment 11
2009-08-13 09:16:26 PDT
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.
Top of Page
Format For Printing
XML
Clone This Bug