Changeset 159680 in webkit
- Timestamp:
- Nov 21, 2013 9:03:26 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r159671 r159680 1 2013-11-21 Frédéric Wang <fred.wang@free.fr> 2 3 Map the dir attribute to the CSS direction property. 4 https://bugs.webkit.org/show_bug.cgi?id=124572. 5 6 Reviewed by Darin Adler. 7 8 * mathml/presentation/direction-overall-expected.html: test that dir does not apply to msqrt 9 * mathml/presentation/direction-overall.html: 10 * mathml/presentation/mstyle-css-attributes-expected.html: Added. 11 * mathml/presentation/mstyle-css-attributes.html: Added. 12 13 Add more tests for presentation attributes on mstyle. 14 1 15 2013-11-21 Bear Travis <betravis@adobe.com> 2 16 -
trunk/LayoutTests/mathml/presentation/direction-overall-expected.html
r159504 r159680 34 34 </p> 35 35 36 <p> 37 msqrt: 38 <math> 39 <msqrt> 40 <mspace width="25px" height="25px" mathbackground="red"/> 41 <mspace width="25px" height="25px" mathbackground="green"/> 42 <mspace width="25px" height="25px" mathbackground="blue"/> 43 </msqrt> 44 </math> 45 </p> 46 36 47 </body> 37 48 </html> -
trunk/LayoutTests/mathml/presentation/direction-overall.html
r159504 r159680 38 38 </p> 39 39 40 <!-- dir="rtl" on <msqrt> should be ignored. The rectangle 41 inside this element should be displayed left-to-right. --> 42 43 <p> 44 msqrt: 45 <math> 46 <msqrt dir="rtl"> 47 <mspace width="25px" height="25px" mathbackground="red"/> 48 <mspace width="25px" height="25px" mathbackground="green"/> 49 <mspace width="25px" height="25px" mathbackground="blue"/> 50 </msqrt> 51 </math> 52 </p> 53 40 54 </body> 41 55 </html> -
trunk/Source/WebCore/ChangeLog
r159679 r159680 1 2013-11-21 Frédéric Wang <fred.wang@free.fr> 2 3 Map the dir attribute to the CSS direction property. 4 https://bugs.webkit.org/show_bug.cgi?id=124572. 5 6 Reviewed by Darin Adler. 7 8 Test: mathml/presentation/mstyle-css-attributes.html 9 10 * mathml/MathMLElement.cpp: 11 (WebCore::MathMLElement::isPresentationAttribute): reorder attributes 12 (WebCore::MathMLElement::collectStyleForPresentationAttribute): reorder tags that accept dir 13 (WebCore::MathMLElement::isMathMLToken): add an inline function to test that a tag corresponds to a MathML Token Element. 14 * mathml/MathMLElement.h: 15 16 Follow-up work to address Darin's comments. 17 1 18 2013-11-21 Peter Molnar <pmolnar.u-szeged@partner.samsung.com> 2 19 -
trunk/Source/WebCore/mathml/MathMLElement.cpp
r159504 r159680 79 79 bool MathMLElement::isPresentationAttribute(const QualifiedName& name) const 80 80 { 81 if (name == mathbackgroundAttr || name == mathsizeAttr || name == mathcolorAttr || name == fontsizeAttr || name == backgroundAttr || name == colorAttr || name == fontstyleAttr || name == fontweightAttr || name == fontfamilyAttr || name == dirAttr)81 if (name == backgroundAttr || name == colorAttr || name == dirAttr || name == fontfamilyAttr || name == fontsizeAttr || name == fontstyleAttr || name == fontweightAttr || name == mathbackgroundAttr || name == mathcolorAttr || name == mathsizeAttr) 82 82 return true; 83 83 return StyledElement::isPresentationAttribute(name); … … 108 108 addPropertyToPresentationAttributeStyle(style, CSSPropertyFontFamily, value); 109 109 else if (name == dirAttr) { 110 if (hasTagName(mathTag) || hasTagName(m styleTag) || hasTagName(mrowTag) || hasTagName(mtextTag) || hasTagName(msTag) || hasTagName(moTag) || hasTagName(miTag) || hasTagName(mnTag))110 if (hasTagName(mathTag) || hasTagName(mrowTag) || hasTagName(mstyleTag) || isMathMLToken()) 111 111 addPropertyToPresentationAttributeStyle(style, CSSPropertyDirection, value); 112 112 } else { … … 123 123 } 124 124 125 bool MathMLElement::isMathMLToken() const 126 { 127 return hasTagName(miTag) || hasTagName(mnTag) || hasTagName(moTag) || hasTagName(msTag) || hasTagName(mtextTag); 128 } 129 125 130 } 126 131 -
trunk/Source/WebCore/mathml/MathMLElement.h
r159036 r159680 52 52 53 53 virtual bool childShouldCreateRenderer(const Node&) const OVERRIDE; 54 55 inline bool isMathMLToken() const; 54 56 }; 55 57
Note: See TracChangeset
for help on using the changeset viewer.