OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Alex Milowski (alex@milowski.com). All rights reserved. | 2 * Copyright (C) 2010 Alex Milowski (alex@milowski.com). All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 26 matching lines...) Expand all Loading... |
37 public: | 37 public: |
38 RenderMathMLSubSup(Element*); | 38 RenderMathMLSubSup(Element*); |
39 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0); | 39 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0); |
40 | 40 |
41 virtual RenderMathMLOperator* unembellishedOperator(); | 41 virtual RenderMathMLOperator* unembellishedOperator(); |
42 | 42 |
43 protected: | 43 protected: |
44 virtual void layout(); | 44 virtual void layout(); |
45 | 45 |
46 private: | 46 private: |
47 void fixScriptsStyle(); | 47 void fixAnonymousStyles(); |
48 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE; | 48 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OV
ERRIDE; |
49 | 49 |
50 virtual const char* renderName() const { return "RenderMathMLSubSup"; } | 50 virtual const char* renderName() const { return "RenderMathMLSubSup"; } |
51 | 51 |
52 // Omit our subscript and/or superscript. This may return 0 for a non-MathML
base (which | 52 // Omit our subscript and/or superscript. This may return 0 for a non-MathML
base (which |
53 // won't occur in valid MathML). | 53 // won't occur in valid MathML). |
54 RenderBoxModelObject* base() const; | 54 RenderBoxModelObject* base() const; |
55 | 55 |
56 enum SubSupType { Sub, Super, SubSup }; | 56 enum SubSupType { Sub, Super, SubSup }; |
57 SubSupType m_kind; | 57 SubSupType m_kind; |
58 RenderMathMLBlock* m_scripts; | 58 RenderMathMLBlock* m_scripts; |
59 }; | 59 }; |
60 | 60 |
61 } | 61 } |
62 | 62 |
63 #endif // ENABLE(MATHML) | 63 #endif // ENABLE(MATHML) |
64 | 64 |
65 #endif // RenderMathMLSubSup_h | 65 #endif // RenderMathMLSubSup_h |
OLD | NEW |