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

Issue 1996363003: Avoid calling updateAllLifecyclePhasesExceptPaint in SVGImage if not needed. (Closed)

Created:
4 years, 7 months ago by chrishtr
Modified:
4 years, 7 months ago
Reviewers:
fs
CC:
blink-reviews, chromium-reviews, krit, f(malita), fs, gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid calling updateAllLifecyclePhasesExceptPaint in SVGImage if not needed. BUG=613662

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -11 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.h View 1 2 2 chunks +5 lines, -1 line 1 comment Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 2 chunks +7 lines, -5 lines 3 comments Download
M third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp View 1 2 3 2 chunks +8 lines, -3 lines 1 comment Download
M third_party/WebKit/Source/platform/Widget.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/Widget.cpp View 1 2 3 2 chunks +15 lines, -0 lines 2 comments Download

Messages

Total messages: 6 (3 generated)
chrishtr
4 years, 7 months ago (2016-05-23 20:21:35 UTC) #4
fs
https://codereview.chromium.org/1996363003/diff/80001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/1996363003/diff/80001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode1465 third_party/WebKit/Source/core/frame/FrameView.cpp:1465: if (m_currentUrl == url && m_currentUrlFragmentBehavior == behavior) Is ...
4 years, 7 months ago (2016-05-23 21:25:57 UTC) #5
chrishtr
4 years, 7 months ago (2016-05-23 21:29:31 UTC) #6
I'm going to drop this CL because of the issue you raised. The impact on the
referenced benchmark was very small anyway.

https://codereview.chromium.org/1996363003/diff/80001/third_party/WebKit/Sour...
File third_party/WebKit/Source/core/frame/FrameView.cpp (right):

https://codereview.chromium.org/1996363003/diff/80001/third_party/WebKit/Sour...
third_party/WebKit/Source/core/frame/FrameView.cpp:1465: if (m_currentUrl == url
&& m_currentUrlFragmentBehavior == behavior)
On 2016/05/23 at 21:25:56, fs wrote:
> Is the general gain great enough to store the url in FrameView, or could we
just store it in SVGImage for now? (Storing the behavior wouldn't be needed
because it's always the same.) Forwarding the return value probably still makes
sense. Another thing to take into account is that if rendering isn't ready on
the first call, the url would still be stored and then the call to
processUrlFragment after rendering is ready would do nothing.

Indeed. The last point you made is probably a bug in this CL..

Powered by Google App Engine
This is Rietveld 408576698