Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Issue 2124553002: Refine cull rect for SVGInlineTextBox painting (Closed)

Created:
4 years, 5 months ago by fs
Modified:
4 years, 5 months ago
Reviewers:
chrishtr, pdr.
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refine cull rect for SVGInlineTextBox painting The PaintInfo cull rect can (will) change between paints, so use the moral equivalent of logicalOverflowRect() to compute a more accurate cull rect instead. This fixes under-invalidation in the following tests: svg/dynamic-updates/SVGTextElement-dom-lengthAdjust-attr.html, svg/dynamic-updates/SVGTextElement-dom-textLength-attr.html, svg/dynamic-updates/SVGTextElement-svgdom-lengthAdjust-prop.html and svg/dynamic-updates/SVGTextElement-svgdom-textLength-prop.html Exposed by https://codereview.chromium.org/2104943005 BUG=231560 Committed: https://crrev.com/1d600ed3a61c66119bf732d3b17d3e8372c8cdb7 Cr-Commit-Position: refs/heads/master@{#404265}

Patch Set 1 #

Patch Set 2 : Try 2 #

Patch Set 3 : Adjust to match calculateBoundaries #

Total comments: 7

Patch Set 4 : Add boundsForDrawingRecorder; expose helper from InlineTextBoxPainter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -4 lines) Patch
M third_party/WebKit/Source/core/paint/InlineTextBoxPainter.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/InlineTextBoxPainter.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp View 1 2 3 3 chunks +23 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (5 generated)
fs
4 years, 5 months ago (2016-07-05 14:31:09 UTC) #3
chrishtr
https://codereview.chromium.org/2124553002/diff/40001/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp File third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp (right): https://codereview.chromium.org/2124553002/diff/40001/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp#newcode70 third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp:70: // We compute the paint rect with what looks ...
4 years, 5 months ago (2016-07-06 20:53:20 UTC) #4
pdr.
LGTM with Chris's comments addressed. If you want, you can add the following to the ...
4 years, 5 months ago (2016-07-06 21:04:20 UTC) #5
pdr.
https://codereview.chromium.org/2124553002/diff/40001/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp File third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp (right): https://codereview.chromium.org/2124553002/diff/40001/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp#newcode36 third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp:36: static bool paintsMarkerHighlights(const LayoutObject& layoutObject) Make InlineTextBoxPainter's paintsMarkerHighlights a ...
4 years, 5 months ago (2016-07-06 21:06:46 UTC) #6
fs
https://codereview.chromium.org/2124553002/diff/40001/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp File third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp (right): https://codereview.chromium.org/2124553002/diff/40001/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp#newcode36 third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp:36: static bool paintsMarkerHighlights(const LayoutObject& layoutObject) On 2016/07/06 at 21:06:46, ...
4 years, 5 months ago (2016-07-06 21:32:41 UTC) #7
pdr.
On 2016/07/06 at 21:32:41, fs wrote: > https://codereview.chromium.org/2124553002/diff/40001/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp > File third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp (right): > > https://codereview.chromium.org/2124553002/diff/40001/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp#newcode36 ...
4 years, 5 months ago (2016-07-06 21:46:47 UTC) #8
fs
https://codereview.chromium.org/2124553002/diff/40001/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp File third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp (right): https://codereview.chromium.org/2124553002/diff/40001/third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp#newcode70 third_party/WebKit/Source/core/paint/SVGInlineTextBoxPainter.cpp:70: // We compute the paint rect with what looks ...
4 years, 5 months ago (2016-07-06 23:33:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2124553002/60001
4 years, 5 months ago (2016-07-07 21:30:58 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-07 22:50:54 UTC) #13
commit-bot: I haz the power
4 years, 5 months ago (2016-07-07 22:52:59 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1d600ed3a61c66119bf732d3b17d3e8372c8cdb7
Cr-Commit-Position: refs/heads/master@{#404265}

Powered by Google App Engine
This is Rietveld 408576698