Commit 1e84b2ec authored by nainar's avatar nainar Committed by Commit bot

Generate getters/setters for border-image.

Currently, the border-image property is a 'storage_only' field, so
it has no generated public getters/setters. This patch changes it to an
'external' field so that their getters/setters can be generated as well.

Diff: https://gist.github.com/dc683ef590e3d4e88e1ed7f3a54ff16f/revisions

BUG=628043

Review-Url: https://codereview.chromium.org/2888323002
Cr-Commit-Position: refs/heads/master@{#473403}
parent 2ae3a0a6
......@@ -2185,7 +2185,6 @@
name: "-webkit-border-image",
api_class: true,
custom_value: true,
initial: "InitialNinePieceImage",
},
{
name: "-webkit-border-vertical-spacing",
......
......@@ -191,7 +191,7 @@
},
{
name: "border-image",
field_template: "storage_only",
field_template: "external",
field_type_path: "core/style/NinePieceImage",
field_group: "surround",
default_value: "NinePieceImage()",
......
......@@ -426,11 +426,6 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
}
// Border properties.
// -webkit-border-image
static NinePieceImage InitialNinePieceImage() { return NinePieceImage(); }
const NinePieceImage& BorderImage() const { return BorderImageInternal(); }
void SetBorderImage(const NinePieceImage& b) { SetBorderImageInternal(b); }
// border-image-slice
const LengthBox& BorderImageSlices() const {
return BorderImage().ImageSlices();
......@@ -2972,7 +2967,6 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
SetBorderLeftColorInternal(0);
SetBorderLeftColorInternal(true);
}
void ResetBorderImage() { SetBorderImageInternal(NinePieceImage()); }
void SetBorderRadius(const LengthSize& s) {
SetBorderTopLeftRadius(s);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment