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

Issue 2901433002: Replace NinePieceImage.setMaskDefault with static method. (Closed)

Created:
3 years, 7 months ago by shend
Modified:
3 years, 7 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace NinePieceImage.setMaskDefault with static method. For NinePieceImages that are used as masks, we currently create a default NinePieceImage and then call setMaskDefault on it. This is unnecessarily complicated. Instead, we could just have a static method on NinePieceImage that creates a mask NinePieceImage. This patch adds a static method NinePieceImage::MaskDefaults() that returns a NinePieceImage with its members initialised to mask defaults. BUG=628043 Review-Url: https://codereview.chromium.org/2901433002 Cr-Commit-Position: refs/heads/master@{#474177} Committed: https://chromium.googlesource.com/chromium/src/+/43a17a2ec583e217c93c9895cfe90388b7c8ed2e

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -14 lines) Patch
M third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/style/NinePieceImage.h View 2 chunks +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleRareNonInheritedData.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/style/StyleReflection.h View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (13 generated)
shend
Hi Bugs, PTAL
3 years, 7 months ago (2017-05-22 01:59:26 UTC) #4
Bugs Nash
lgtm, yay for moving code to initialization lists :)
3 years, 7 months ago (2017-05-22 02:56:34 UTC) #5
shend
Hi Alan, PTAL
3 years, 7 months ago (2017-05-22 03:04:57 UTC) #7
alancutter (OOO until 2018)
lgtm
3 years, 7 months ago (2017-05-24 03:01:37 UTC) #10
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/2901433002/1
3 years, 7 months ago (2017-05-24 05:43:44 UTC) #16
commit-bot: I haz the power
3 years, 7 months ago (2017-05-24 05:49:06 UTC) #19
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/43a17a2ec583e217c93c9895cfe9...

Powered by Google App Engine
This is Rietveld 408576698