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

Issue 902593002: Refactor LengthMode handling in SVGLengthContext (Closed)

Created:
5 years, 10 months ago by fs
Modified:
5 years, 10 months ago
CC:
blink-reviews, krit, ed+blinkwatch_opera.com, f(malita), gyuyoung.kim_webkit.org, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Refactor LengthMode handling in SVGLengthContext The switch that selects the correct "dimension" factor to scale with is repeated three times. Refactor the code so that we get the factor from a helper function instead. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189523

Patch Set 1 #

Patch Set 2 : dimensionForLengthMode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -33 lines) Patch
M Source/core/svg/SVGLengthContext.cpp View 1 3 chunks +17 lines, -33 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
fs
Shaves a few bytes off of the involved methods as well a making for less ...
5 years, 10 months ago (2015-02-04 16:29:19 UTC) #2
pdr.
Nice! LGTM I tried to think of another name than "factorForLengthMode" because factor can be ...
5 years, 10 months ago (2015-02-04 16:34:10 UTC) #3
fs
On 2015/02/04 16:34:10, pdr wrote: > Nice! LGTM > > I tried to think of ...
5 years, 10 months ago (2015-02-04 16:53:32 UTC) #4
pdr.
On 2015/02/04 at 16:53:32, fs wrote: > On 2015/02/04 16:34:10, pdr wrote: > > Nice! ...
5 years, 10 months ago (2015-02-04 17:32:12 UTC) #5
fs
On 2015/02/04 17:32:12, pdr wrote: > On 2015/02/04 at 16:53:32, fs wrote: > > On ...
5 years, 10 months ago (2015-02-04 18:05:10 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/902593002/20001
5 years, 10 months ago (2015-02-04 18:06:25 UTC) #9
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 19:26:16 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189523

Powered by Google App Engine
This is Rietveld 408576698