Chromium Code Reviews
DescriptionSplit Gradient impl into separate classes
In preparation of adding a new gradient type (conic), refactor Gradient into separate, private
subclasses.
* more specific factory names: createLinear(), createRadial()
* remove unused getters: p0(), p1(), startRadius(), endRadius(), spreadMethod().
* refactor isRadial() as a type getter.
* relocate isZeroSize() to CanvasGradient (its only client).
Refactor-only, no functional changes.
BUG=614368
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Review-Url: https://codereview.chromium.org/2785203002
Cr-Commit-Position: refs/heads/master@{#461207}
Committed: https://chromium.googlesource.com/chromium/src/+/fb6b69556d51265620cc759174e77484fc6c6067
Patch Set 1 #Patch Set 2 : isZeroSize, Mac build fix #Patch Set 3 : cleanup #Patch Set 4 : anonymous subclasses #
Total comments: 2
Patch Set 5 : review #Dependent Patchsets: Messages
Total messages: 34 (26 generated)
|