WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
217427
[LFC][Integration] Add line iterator
https://bugs.webkit.org/show_bug.cgi?id=217427
Summary
[LFC][Integration] Add line iterator
Antti Koivisto
Reported
2020-10-07 05:24:32 PDT
Iterate lines
Attachments
patch
(31.66 KB, patch)
2020-10-07 06:38 PDT
,
Antti Koivisto
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Antti Koivisto
Comment 1
2020-10-07 06:38:48 PDT
Created
attachment 410747
[details]
patch
zalan
Comment 2
2020-10-07 08:22:49 PDT
Comment on
attachment 410747
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=410747&action=review
> Source/WebCore/layout/integration/LayoutIntegrationRunIterator.h:65 > + float logicalLeft() const { return isHorizontal() ? rect().x() : rect().y(); } > + float logicalRight() const { return isHorizontal() ? rect().maxX() : rect().maxY(); } > + float logicalWidth() const { return isHorizontal() ? rect().width() : rect().height(); } > + float logicalHeight() const { return isHorizontal() ? rect().height() : rect().width(); }
Assuming that the display items are all flipped from logical to physical during the layout -> display transition, is this the case when the caller really expects logical coordinates here and we need to flip them back from physical to logical (curious about the use case)?
EWS
Comment 3
2020-10-07 08:47:21 PDT
Committed
r268124
: <
https://trac.webkit.org/changeset/268124
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 410747
[details]
.
Radar WebKit Bug Importer
Comment 4
2020-10-07 08:48:17 PDT
<
rdar://problem/70049577
>
Antti Koivisto
Comment 5
2020-10-07 08:51:09 PDT
> Assuming that the display items are all flipped from logical to physical > during the layout -> display transition, is this the case when the caller > really expects logical coordinates here and we need to flip them back from > physical to logical (curious about the use case)?
These are here just to make porting the existing InlineBox based code easier. It sometimes uses logical coordinates. It should be pretty easy to systematically convert such code later by eliminating these APIs.
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