WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
93037
Remove dependency on LayoutTypes.h from transformation code
https://bugs.webkit.org/show_bug.cgi?id=93037
Summary
Remove dependency on LayoutTypes.h from transformation code
Emil A Eklund
Reported
2012-08-02 15:50:30 PDT
TransformationMatrix includes LayoutTypes.h which is in rendering, this is a layering violation and makes using the it outside of rendering complicated.
Attachments
Patch
(3.32 KB, patch)
2012-08-02 15:53 PDT
,
Emil A Eklund
no flags
Details
Formatted Diff
Diff
Patch
(3.34 KB, patch)
2012-08-02 15:55 PDT
,
Emil A Eklund
no flags
Details
Formatted Diff
Diff
Patch
(6.57 KB, patch)
2012-08-02 16:29 PDT
,
Emil A Eklund
no flags
Details
Formatted Diff
Diff
Patch
(7.35 KB, patch)
2012-08-02 17:03 PDT
,
Emil A Eklund
no flags
Details
Formatted Diff
Diff
Patch for landing
(7.30 KB, patch)
2012-08-03 11:54 PDT
,
Emil A Eklund
no flags
Details
Formatted Diff
Diff
Show Obsolete
(4)
View All
Add attachment
proposed patch, testcase, etc.
Emil A Eklund
Comment 1
2012-08-02 15:53:49 PDT
Created
attachment 156185
[details]
Patch
Emil A Eklund
Comment 2
2012-08-02 15:55:49 PDT
Created
attachment 156187
[details]
Patch
Levi Weintraub
Comment 3
2012-08-02 15:56:55 PDT
Comment on
attachment 156187
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=156187&action=review
> Source/WebCore/ChangeLog:9 > + TransformationMatrix includes LayoutTypes.h which is in rendering, > + this is a layering violation. Remove this dependency as it is no longer
Grammar Levi says: This is a run on. Period or conjunction needed :p
Emil A Eklund
Comment 4
2012-08-02 16:00:23 PDT
We'll also have to change it not to use MAX_LAYOUT_UNIT...
Emil A Eklund
Comment 5
2012-08-02 16:29:55 PDT
Created
attachment 156198
[details]
Patch
Levi Weintraub
Comment 6
2012-08-02 16:38:42 PDT
Comment on
attachment 156198
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=156198&action=review
> Source/WebCore/platform/FractionalLayoutUnit.h:188 > + static FractionalLayoutUnit clamp(double value) > + { > + return clampTo<FractionalLayoutUnit>(value, FractionalLayoutUnit::min(), FractionalLayoutUnit::max()); > + }
I don't like the duplication of this code here and in LayoutTypes.h. Seems like if this is where this needs to live to prevent layering problems, we should eliminate the version in LayoutTypes.
Emil A Eklund
Comment 7
2012-08-02 17:03:07 PDT
Created
attachment 156211
[details]
Patch
Levi Weintraub
Comment 8
2012-08-02 17:07:55 PDT
Comment on
attachment 156211
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=156211&action=review
> Source/WebCore/ChangeLog:16 > + * rendering/LayoutTypes.h: > + Remove clampToLayoutUnit > +
We don't usually put whitespace here, and this could just be one line.
> Source/WebCore/ChangeLog:21 > + Add FractionalLayoutUnit::clamp method that clamps a double to a > + FractionalLayoutUnit. > +
Ditto.
> Source/WebCore/ChangeLog:27 > + Use clamp/max/min from FractionalLayoutUnit instead of going through > + LayoutUnit abstraction. > +
Ditto.
Emil A Eklund
Comment 9
2012-08-03 11:54:28 PDT
Created
attachment 156427
[details]
Patch for landing
WebKit Review Bot
Comment 10
2012-08-03 15:00:24 PDT
Comment on
attachment 156427
[details]
Patch for landing Clearing flags on attachment: 156427 Committed
r124658
: <
http://trac.webkit.org/changeset/124658
>
WebKit Review Bot
Comment 11
2012-08-03 15:00:28 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