WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
179279
[LayoutState cleanup] Move offset/cliprect/pagination code to dedicated methods
https://bugs.webkit.org/show_bug.cgi?id=179279
Summary
[LayoutState cleanup] Move offset/cliprect/pagination code to dedicated methods
alan
Reported
2017-11-03 20:03:27 PDT
ssia.
Attachments
Patch
(10.88 KB, patch)
2017-11-03 20:06 PDT
,
alan
no flags
Details
Formatted Diff
Diff
Patch
(10.11 KB, patch)
2017-11-04 14:07 PDT
,
alan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2017-11-03 20:03:53 PDT
<
rdar://problem/35348171
>
alan
Comment 2
2017-11-03 20:06:32 PDT
Created
attachment 326006
[details]
Patch
Antti Koivisto
Comment 3
2017-11-04 10:09:54 PDT
Comment on
attachment 326006
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=326006&action=review
> Source/WebCore/rendering/LayoutState.h:86 > + void computeOffsets(RenderBox&, LayoutSize offset); > + void computeClipRect(RenderBox&); > + void computePaginationInformation(RenderBox&, LayoutUnit pageLogicalHeight, bool pageLogicalHeightChanged);
It would be nice if compute* methods would return the results instead of mutating the object state (they could be const). This might be something to consider in future.
alan
Comment 4
2017-11-04 14:07:55 PDT
Created
attachment 326043
[details]
Patch
alan
Comment 5
2017-11-04 14:08:37 PDT
(In reply to Antti Koivisto from
comment #3
)
> Comment on
attachment 326006
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=326006&action=review
> > > Source/WebCore/rendering/LayoutState.h:86 > > + void computeOffsets(RenderBox&, LayoutSize offset); > > + void computeClipRect(RenderBox&); > > + void computePaginationInformation(RenderBox&, LayoutUnit pageLogicalHeight, bool pageLogicalHeightChanged); > > It would be nice if compute* methods would return the results instead of > mutating the object state (they could be const). This might be something to > consider in future.
Good idea!
WebKit Commit Bot
Comment 6
2017-11-04 14:41:14 PDT
Comment on
attachment 326043
[details]
Patch Clearing flags on attachment: 326043 Committed
r224460
: <
https://trac.webkit.org/changeset/224460
>
WebKit Commit Bot
Comment 7
2017-11-04 14:41:15 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