WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
94146
Remove dependency on RenderStyle from FractionalLayoutBoxExtent and LayoutBox
https://bugs.webkit.org/show_bug.cgi?id=94146
Summary
Remove dependency on RenderStyle from FractionalLayoutBoxExtent and LayoutBox
Emil A Eklund
Reported
2012-08-15 13:50:11 PDT
FractionalLayoutBoxExtent and LayoutBox currently have a dependency on RenderStyle to resolve writing mode and directional. This breaks encapsulation and makes it hard to reuse the box classes.
Attachments
Patch
(39.48 KB, patch)
2012-08-15 15:48 PDT
,
Emil A Eklund
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Emil A Eklund
Comment 1
2012-08-15 15:48:45 PDT
Created
attachment 158651
[details]
Patch
Emil A Eklund
Comment 2
2012-08-15 15:50:00 PDT
s/directional/directionality/
Emil A Eklund
Comment 3
2012-08-17 13:39:39 PDT
Simon, any chance you could take a look at this change?
Emil A Eklund
Comment 4
2012-08-22 09:43:14 PDT
Ping?
Eric Seidel (no email)
Comment 5
2012-08-22 11:57:41 PDT
Comment on
attachment 158651
[details]
Patch I think this is a fantastic change.
WebKit Review Bot
Comment 6
2012-08-22 12:01:04 PDT
Comment on
attachment 158651
[details]
Patch Rejecting
attachment 158651
[details]
from commit-queue. Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2 Last 500 characters of output: at 3145 (offset 5 lines). Hunk #4 succeeded at 3306 (offset 5 lines). patching file Source/WebCore/rendering/RenderBox.h Hunk #1 succeeded at 234 (offset 4 lines). patching file Source/WebCore/rendering/style/RenderStyle.h Hunk #2 succeeded at 725 (offset 7 lines). patching file Source/WebCore/rendering/style/RenderStyleConstants.h Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--force', u'--reviewer', u'Eric Seidel']" exit_code: 1 cwd: /mnt/git/webkit-commit-queue/ Full output:
http://queues.webkit.org/results/13570324
Julien Chaffraix
Comment 7
2012-08-22 12:33:18 PDT
Comment on
attachment 158651
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=158651&action=review
Thanks for fixing this platform violation.
> Source/WebCore/ChangeLog:54 > + Change methods to take a WirtingMode parameter instead of a RenderStyle pointer.
Typo: WritingMode
> Source/WebCore/rendering/style/RenderStyleConstants.h:-136 > -};
Nit: May be good to leave some comment about where to find WritingMode's definition, especially since we don't include it here.
Emil A Eklund
Comment 8
2012-08-23 09:21:48 PDT
Committed
r126437
: <
http://trac.webkit.org/changeset/126437
>
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