• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/tidy-15.15/tidy/src/

Lines Matching +defs:color +defs:name

68     node->element = TY_(tmbstrdup)( dict->name );
79 MemFree(props->name);
86 static StyleProp *InsertProperty( StyleProp* props, ctmbstr name, ctmbstr value )
96 cmp = TY_(tmbstrcmp)(props->name, name);
109 prop->name = TY_(tmbstrdup)(name);
126 prop->name = TY_(tmbstrdup)(name);
141 delimit the strings for the property name and value.
147 tmbstr name, value = NULL, name_end, value_end, line;
151 name = line;
153 while (*name)
155 while (*name == ' ')
156 ++name;
158 name_end = name;
194 prop = InsertProperty(prop, name, value);
200 name = value_end + 1;
221 len += TY_(tmbstrlen)(prop->name) + 2;
231 s = prop->name;
330 then append class name after a space.
375 then append class name after an underscore
392 static void AddColorRule( Lexer* lexer, ctmbstr selector, ctmbstr color )
394 if ( selector && color )
397 TY_(AddStringLiteral)(lexer, " { color: ");
398 TY_(AddStringLiteral)(lexer, color);
407 bgcolor="foo" -> body { background-color: foo }
408 text="foo" -> body { color: foo }
409 link="foo" -> :link { color: foo }
410 vlink="foo" -> :visited { color: foo }
411 alink="foo" -> :active { color: foo }
418 tmbstr color = NULL;
437 color = attr->value;
442 if ( bgurl || bgcolor || color )
454 TY_(AddStringLiteral)(lexer, " background-color: ");
459 if (color)
461 TY_(AddStringLiteral)(lexer, " color: ");
462 TY_(AddStringLiteral)(lexer, color);
464 MemFree(color);
648 the same property name.
744 for attaching styles, if so the class name
872 static void AddFontColor( TidyDocImpl* doc, Node *node, ctmbstr color)
875 TY_(tmbsnprintf)(buf, sizeof(buf), "color: %s", color);
897 the font face, size and color attributes
1932 if ( node->tag && TY_(tmbstrcmp)(node->tag->name,"o:p")==0)
2038 /* search for <meta name="GENERATOR" content="Microsoft ..."> */
2195 prop->name = TY_(tmbstrdup)( pszBegin );
2213 if (0 != TY_(tmbstrncasecmp)( prop->name, "charset", 7 ))
2216 MemFree( prop->name );
2217 prop->name = (tmbstr)MemAlloc( 8 + TY_(tmbstrlen)(enc) + 1 );
2218 TY_(tmbstrcpy)(prop->name, "charset=");
2219 TY_(tmbstrcpy)(prop->name+8, enc);
2528 AttVal *name = TY_(AttrGetById)(node, TidyAttr_NAME);
2531 /* todo: how are empty name/id attributes handled? */
2533 if (name && id)
2535 Bool NameHasValue = AttrHasValue(name);
2539 TY_(tmbstrcmp)(name->value, id->value) != 0 ) )
2540 TY_(ReportAttrError)( doc, node, name, ID_NAME_MISMATCH);
2542 else if (name && wantId)
2547 if (TY_(IsValidHTMLID)(name->value))
2549 TY_(RepairAttrValue)(doc, node, "id", name->value);
2553 TY_(ReportAttrError)(doc, node, name, INVALID_XML_ID);
2562 TY_(RepairAttrValue)(doc, node, "name", id->value);
2568 if (name && !wantName)
2569 TY_(RemoveAttribute)(doc, node, name);