Changeset 62968 in webkit
- Timestamp:
- Jul 9, 2010 11:22:58 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r62966 r62968 1 2010-07-09 François Sausset <sausset@gmail.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Test for the newly implemented MathML mathcolor & mathbackground attributes 6 https://bugs.webkit.org/show_bug.cgi?id=41895 7 8 * mathml/presentation/attributes.xhtml: Added. 9 * platform/mac/mathml/presentation/attributes-expected.checksum: Added. 10 * platform/mac/mathml/presentation/attributes-expected.png: Added. 11 * platform/mac/mathml/presentation/attributes-expected.txt: Added. 12 1 13 2010-07-09 Vitaly Repeshko <vitalyr@chromium.org> 2 14 -
trunk/WebCore/ChangeLog
r62965 r62968 1 2010-07-09 François Sausset <sausset@gmail.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Implement MathML mathcolor & mathbackground attributes 6 https://bugs.webkit.org/show_bug.cgi?id=41895 7 8 Test: mathml/presentation/attributes.xhtml 9 10 * dom/MappedAttributeEntry.h: 11 (WebCore::): 12 * mathml/MathMLElement.cpp: 13 (WebCore::MathMLElement::MathMLElement): 14 (WebCore::MathMLElement::mapToEntry): 15 (WebCore::MathMLElement::parseMappedAttribute): 16 * mathml/MathMLElement.h: 17 * mathml/mathattrs.in: 18 1 19 2010-07-09 Xiaomei Ji <xji@chromium.org> 2 20 -
trunk/WebCore/dom/MappedAttributeEntry.h
r61637 r62968 5 5 * (C) 2001 Dirk Mueller (mueller@kde.org) 6 6 * Copyright (C) 2003, 2004, 2005, 2006 Apple Computer, Inc. 7 * Copyright (C) 2010 Franois Sausset (sausset@gmail.com). All rights reserved. 7 8 * 8 9 * This library is free software; you can redistribute it and/or … … 45 46 , eSVG 46 47 #endif 48 #if ENABLE(MATHML) 49 , eMathML 50 #endif 47 51 // When adding new entries, make sure to keep eLastEntry at the end of the list. 48 52 , eLastEntry -
trunk/WebCore/mathml/MathMLElement.cpp
r61493 r62968 2 2 * Copyright (C) 2009 Alex Milowski (alex@milowski.com). All rights reserved. 3 3 * Copyright (C) 2010 Apple Inc. All rights reserved. 4 * Copyright (C) 2010 François Sausset (sausset@gmail.com). All rights reserved. 4 5 * 5 6 * Redistribution and use in source and binary forms, with or without … … 47 48 return adoptRef(new MathMLElement(tagName, document)); 48 49 } 50 51 bool MathMLElement::mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const 52 { 53 if (attrName == MathMLNames::mathcolorAttr || attrName == MathMLNames::mathbackgroundAttr) { 54 result = eMathML; 55 return false; 56 } 57 return StyledElement::mapToEntry(attrName, result); 58 } 59 60 void MathMLElement::parseMappedAttribute(Attribute* attr) 61 { 62 if (attr->name() == MathMLNames::mathcolorAttr) 63 addCSSProperty(attr, CSSPropertyColor, attr->value()); 64 else if (attr->name() == MathMLNames::mathbackgroundAttr) 65 addCSSProperty(attr, CSSPropertyBackgroundColor, attr->value()); 66 else 67 StyledElement::parseMappedAttribute(attr); 68 } 49 69 50 70 } -
trunk/WebCore/mathml/MathMLElement.h
r61293 r62968 2 2 * Copyright (C) 2009 Alex Milowski (alex@milowski.com). All rights reserved. 3 3 * Copyright (C) 2010 Apple Inc. All rights reserved. 4 * Copyright (C) 2010 François Sausset (sausset@gmail.com). All rights reserved. 4 5 * 5 6 * Redistribution and use in source and binary forms, with or without … … 42 43 private: 43 44 virtual bool isMathMLElement() const { return true; } 45 virtual bool mapToEntry(const QualifiedName&, MappedAttributeEntry&) const; 46 virtual void parseMappedAttribute(Attribute*); 44 47 }; 45 48 -
trunk/WebCore/mathml/mathattrs.in
r53879 r62968 7 7 denomalign 8 8 linethickness 9 mathbackground 10 mathcolor 9 11 mathsize 10 12 numalign
Note: See TracChangeset
for help on using the changeset viewer.