Lines Matching defs:property
177 * 1. Is a style property appropriate on the given element?
179 * 2. Is the value of the style property useful?
181 * Is it the default value (and the property on the parent is not set or does not inherit)?
200 gchar const * property = g_quark_to_string(iter->key);
203 // Check if a property is applicable to an element (i.e. is font-family useful for a <rect>?).
204 if( !SPAttributeRelCSS::findIfValid( property, element ) ) {
206 g_warning( "<%s id=\"%s\">: CSS Style property: \"%s\" is inappropriate.",
207 element.c_str(), id.c_str(), property );
210 toDelete.insert(property);
215 // Find parent value for same property (property)
222 if( !g_strcmp0( property, property_p ) ) {
229 // If parent has same property value and property is inherited, mark for deletion.
230 if ( !g_strcmp0( value, value_p ) && SPAttributeRelCSS::findIfInherit( property ) ) {
233 g_warning( "<%s id=\"%s\">: CSS Style property: \"%s\" has same value as parent (%s).",
234 element.c_str(), id.c_str(), property, value );
237 toDelete.insert( property );
242 // If property value is same as default and the parent value not set or property is not inherited,
244 if ( SPAttributeRelCSS::findIfDefault( property, value ) &&
245 ( (css_parent != NULL && value_p == NULL) || !SPAttributeRelCSS::findIfInherit( property ) ) ) {
248 g_warning( "<%s id=\"%s\">: CSS Style property: \"%s\" with default value (%s) not needed.",
249 element.c_str(), id.c_str(), property, value );
252 toDelete.insert( property );