WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
156550
Text on compositing layer with negative letter-spacing is truncated.
https://bugs.webkit.org/show_bug.cgi?id=156550
Summary
Text on compositing layer with negative letter-spacing is truncated.
zalan
Reported
2016-04-13 12:42:20 PDT
Visual overflow for the negative letter-spacing is not computed properly so we end up with a narrow layer for the text.
Attachments
Patch
(6.84 KB, patch)
2016-04-13 12:51 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
Patch
(6.93 KB, patch)
2016-04-13 14:09 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
zalan
Comment 1
2016-04-13 12:42:53 PDT
rdar://problem/24212140
zalan
Comment 2
2016-04-13 12:51:29 PDT
Created
attachment 276345
[details]
Patch
Antti Koivisto
Comment 3
2016-04-13 12:54:51 PDT
r=me
Simon Fraser (smfr)
Comment 4
2016-04-13 13:06:20 PDT
Comment on
attachment 276345
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=276345&action=review
> Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp:68 > +static FloatRect computeOverflow(const RenderBlockFlow& flow, const FloatRect& rect)
What is the rect that's passed in? It could use a better name.
> Source/WebCore/rendering/SimpleLineLayoutFunctions.cpp:78 > + if (letterSpacing >= 0) > + return overflowRect; > + > + overflowRect.expand(-letterSpacing, 0);
Wouldn't this be clearer with a std::max(letterSpacing, 0)?
zalan
Comment 5
2016-04-13 14:09:01 PDT
Created
attachment 276351
[details]
Patch
WebKit Commit Bot
Comment 6
2016-04-13 15:11:39 PDT
Comment on
attachment 276351
[details]
Patch Clearing flags on attachment: 276351 Committed
r199516
: <
http://trac.webkit.org/changeset/199516
>
WebKit Commit Bot
Comment 7
2016-04-13 15:11:43 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