/// <summary>Call this if the current property requies a border object.</summary> public BorderProperty GetBorder(ComputedStyle style){ BorderProperty border=style.Border; if(border==null){ style.Border=border=new BorderProperty(style.Element); style.EnforceNoInline(); } // Flag it as having a change: border.Changed=true; return border; }
/// <summary>Call this if the current property requires a background image object.</summary> public BackgroundImage GetBackground(ComputedStyle style){ BackgroundImage image=style.BGImage; if(image==null){ style.BGImage=image=new BackgroundImage(style.Element); style.EnforceNoInline(); } // Flag it as having a change: image.Changed=true; return image; }
/// <summary>Call this if the current property requies a border object.</summary> public BorderProperty GetBorder(ComputedStyle style) { BorderProperty border = style.Border; if (border == null) { style.Border = border = new BorderProperty(style.Element); style.EnforceNoInline(); } // Flag it as having a change: border.Changed = true; return(border); }
/// <summary>Call this if the current property requires a background image object.</summary> public BackgroundImage GetBackground(ComputedStyle style) { BackgroundImage image = style.BGImage; if (image == null) { style.BGImage = image = new BackgroundImage(style.Element); style.EnforceNoInline(); } // Flag it as having a change: image.Changed = true; return(image); }