New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 628414 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jul 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: Linux , All
Pri: 2
Type: Bug

Blocking:
issue 529938



Sign in to add a comment

Incorrect cull rect for svg text with text-shadow.

Project Member Reported by wkorman@chromium.org, Jul 14 2016

Issue description

Breakout from  http://crbug.com/529938  --

svg/custom/repaint-shadow.svg fails as seen here:

https://storage.googleapis.com/chromium-layout-test-archives/linux_blink_rel/88307/layout-test-results/results.html

Commenting out quickReject based on cull rect in drawing_display_item.cc fixes the test, also note cull rect vs visual rect/paint-invalidation-rect (the latter looks right):

{index: 3, client: "0x3961c9c58010 InlineTextBox 'X'", type: "DrawingPaintPhaseForeground", rect: [20.000000,19.000000 50.000000x51.000000], cacheIsValid: true, visualRect: [20,19 255x256]},
{index: 4, client: "0x3961c9c580a0 InlineTextBox 'X'", type: "DrawingPaintPhaseForeground", rect: [171.000000,19.000000 50.000000x51.000000], cacheIsValid: true, visualRect: [171,19 255x256]},

It looks like the position/size of the shadow is just not incorporated into the cull rect.
 
I think SVGInlineTextBoxPainter::boundsForDrawingRecorder should be incorporating bounds for text shadow. SVGInlineTextBoxPainter::setupTextPaint uses a looper to copy the text painting, but the bounds doesn't incorporate the shadow.
Status: Fixed (was: Assigned)

Sign in to add a comment