Ejemplo n.º 1
0
		/// <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;
		}
Ejemplo n.º 2
0
		/// <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;
		}
Ejemplo n.º 3
0
        /// <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);
        }
Ejemplo n.º 4
0
        /// <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);
        }