Refactor basic shapes

This commit is contained in:
Anthony Ramine 2017-05-21 16:47:13 +02:00
parent 8cd4330b2a
commit a65c874ec8
7 changed files with 510 additions and 618 deletions

View file

@ -3853,8 +3853,7 @@ fn static_assert() {
use gecko_bindings::structs::{StyleFillRule, StyleGeometryBox, StyleShapeSource};
use gecko::conversions::basic_shape::set_corners_from_radius;
use gecko::values::GeckoStyleCoordConvertible;
use values::computed::basic_shape::BasicShape;
use values::generics::basic_shape::{ShapeSource, FillRule};
use values::generics::basic_shape::{BasicShape, FillRule, ShapeSource};
let ref mut ${ident} = self.gecko.${gecko_ffi_name};
// clean up existing struct
unsafe { Gecko_DestroyShapeSource(${ident}) };