Changeset 107019 in webkit
- Timestamp:
- Feb 7, 2012 5:49:27 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r107018 r107019 1 2012-02-07 David Barton <dbarton@mathscribe.com> 2 3 Remove extraneous MathML code before bug 52444 fix 4 https://bugs.webkit.org/show_bug.cgi?id=78034 5 6 Reviewed by Eric Seidel. 7 8 The rendering of the scrollbar in row-expected.png was flaky, presumably due to a test 9 environment timing issue, so I removed it. 10 11 * mathml/presentation/row.xhtml: 12 * platform/mac/mathml/presentation/row-expected.png: 13 * platform/mac/mathml/presentation/row-expected.txt: 14 1 15 2012-02-07 Ami Fischman <fischman@chromium.org> 2 16 -
trunk/LayoutTests/mathml/presentation/row.xhtml
r70221 r107019 5 5 mo { 6 6 background-color: rgb(200,200,200); 7 } 8 body { 9 overflow: hidden; 7 10 } 8 11 </style> -
trunk/LayoutTests/platform/mac/mathml/presentation/row-expected.txt
r95566 r107019 1 layer at (0,0) size 785x6142 RenderView at (0,0) size 785x6003 layer at (0,0) size 785x6144 RenderBlock {html} at (0,0) size 785x6145 RenderBody {body} at (8,16) size 7 69x5826 RenderBlock {p} at (0,0) size 7 69x191 layer at (0,0) size 800x614 2 RenderView at (0,0) size 800x600 3 layer at (0,0) size 800x614 4 RenderBlock {html} at (0,0) size 800x614 5 RenderBody {body} at (8,16) size 784x582 6 RenderBlock {p} at (0,0) size 784x19 7 7 RenderMathMLMath {math} at (0,3) size 27x16 8 8 RenderInline {mi} at (0,0) size 7x16 … … 17 17 text run at (18,0) width 8: "1" 18 18 RenderText {#text} at (0,0) size 0x0 19 RenderBlock {p} at (0,35) size 7 69x2119 RenderBlock {p} at (0,35) size 784x21 20 20 RenderText {#text} at (0,2) size 40x18 21 21 text run at (0,2) width 40: "16px: " … … 95 95 RenderBlock {div} at (13,5) size 16x16 [bgcolor=#00FF00] 96 96 RenderText {#text} at (0,0) size 0x0 97 RenderBlock {p} at (0,72) size 7 69x3697 RenderBlock {p} at (0,72) size 784x36 98 98 RenderText {#text} at (0,8) size 40x18 99 99 text run at (0,8) width 40: "24px: " … … 146 146 RenderBlock {div} at (18,5) size 24x24 [bgcolor=#00FF00] 147 147 RenderText {#text} at (0,0) size 0x0 148 RenderBlock {p} at (0,124) size 7 69x50148 RenderBlock {p} at (0,124) size 784x50 149 149 RenderText {#text} at (0,19) size 40x18 150 150 text run at (0,19) width 40: "32px: " … … 197 197 RenderBlock {div} at (18,11) size 32x32 [bgcolor=#00FF00] 198 198 RenderText {#text} at (0,0) size 0x0 199 RenderBlock {p} at (0,190) size 7 69x80199 RenderBlock {p} at (0,190) size 784x80 200 200 RenderText {#text} at (0,41) size 40x18 201 201 text run at (0,41) width 40: "48px: " … … 248 248 RenderBlock {div} at (18,22) size 48x48 [bgcolor=#00FF00] 249 249 RenderText {#text} at (0,0) size 0x0 250 RenderBlock {p} at (0,286) size 7 69x215250 RenderBlock {p} at (0,286) size 784x215 251 251 RenderText {#text} at (0,140) size 48x18 252 252 text run at (0,140) width 48: "120px: " … … 299 299 RenderBlock {div} at (18,73) size 48x120 [bgcolor=#00FF00] 300 300 RenderText {#text} at (0,0) size 0x0 301 RenderBlock {p} at (0,517) size 7 69x65301 RenderBlock {p} at (0,517) size 784x65 302 302 RenderMathMLMath {math} at (0,0) size 156x65 303 303 RenderMathMLRow {mrow} at (1,0) size 154x65 -
trunk/Source/WebCore/ChangeLog
r107014 r107019 1 2012-02-07 David Barton <dbarton@mathscribe.com> 2 3 Remove extraneous MathML code before bug 52444 fix 4 https://bugs.webkit.org/show_bug.cgi?id=78034 5 6 Reviewed by Eric Seidel. 7 8 Per Darin Adler, I am breaking up the patch fixing bug 52444 into smaller pieces. 9 This patch removes a couple unused functions, some extra blank lines, unused #include 10 directives, etc., and adds a very few WebKit-standard changes to these files. 11 12 No new tests. 13 14 * rendering/mathml/RenderMathMLBlock.cpp: 15 (WebCore): 16 * rendering/mathml/RenderMathMLBlock.h: 17 (WebCore::RenderMathMLBlock::getBoxModelObjectHeight): 18 - changed to a static member function since 'this' is unused; 19 removed redundant non-const version 20 (WebCore::RenderMathMLBlock::getBoxModelObjectWidth): 21 - changed to a static member function since 'this' is unused; 22 removed redundant non-const version 23 (WebCore): 24 * rendering/mathml/RenderMathMLFraction.cpp: 25 * rendering/mathml/RenderMathMLMath.cpp: 26 * rendering/mathml/RenderMathMLMath.h: 27 * rendering/mathml/RenderMathMLOperator.h: 28 (WebCore): 29 * rendering/mathml/RenderMathMLRoot.cpp: 30 * rendering/mathml/RenderMathMLRow.cpp: 31 * rendering/mathml/RenderMathMLRow.h: 32 * rendering/mathml/RenderMathMLSquareRoot.cpp: 33 * rendering/mathml/RenderMathMLSquareRoot.h: 34 * rendering/mathml/RenderMathMLSubSup.cpp: 35 * rendering/mathml/RenderMathMLSubSup.h: 36 * rendering/mathml/RenderMathMLUnderOver.cpp: 37 * rendering/mathml/RenderMathMLUnderOver.h: 38 1 39 2012-02-07 David Reveman <reveman@chromium.org> 2 40 -
trunk/Source/WebCore/rendering/mathml/RenderMathMLBlock.cpp
r95901 r107019 110 110 #endif // ENABLE(DEBUG_MATH_LAYOUT) 111 111 112 113 112 } 114 113 -
trunk/Source/WebCore/rendering/mathml/RenderMathMLBlock.h
r95901 r107019 53 53 54 54 protected: 55 int getBoxModelObjectHeight(RenderObject* object) 56 { 57 if (object && object->isBoxModelObject()) { 58 RenderBoxModelObject* box = toRenderBoxModelObject(object); 59 return box->offsetHeight(); 60 } 61 62 return 0; 63 } 64 int getBoxModelObjectHeight(const RenderObject* object) 55 static LayoutUnit getBoxModelObjectHeight(const RenderObject* object) 65 56 { 66 57 if (object && object->isBoxModelObject()) { … … 71 62 return 0; 72 63 } 73 int getBoxModelObjectWidth(RenderObject* object) 74 { 75 if (object && object->isBoxModelObject()) { 76 RenderBoxModelObject* box = toRenderBoxModelObject(object); 77 return box->offsetWidth(); 78 } 79 80 return 0; 81 } 82 int getBoxModelObjectWidth(const RenderObject* object) 64 static LayoutUnit getBoxModelObjectWidth(const RenderObject* object) 83 65 { 84 66 if (object && object->isBoxModelObject()) { … … 107 89 } 108 90 91 // This will catch anyone doing an unnecessary cast. 92 void toRenderMathMLBlock(const RenderMathMLBlock*); 93 109 94 } 110 111 95 112 96 #endif // ENABLE(MATHML) -
trunk/Source/WebCore/rendering/mathml/RenderMathMLFraction.cpp
r106900 r107019 183 183 } 184 184 185 186 185 #endif // ENABLE(MATHML) -
trunk/Source/WebCore/rendering/mathml/RenderMathMLMath.cpp
r95901 r107019 44 44 45 45 #endif // ENABLE(MATHML) 46 -
trunk/Source/WebCore/rendering/mathml/RenderMathMLMath.h
r95901 r107019 44 44 } 45 45 46 47 46 #endif // ENABLE(MATHML) 48 47 #endif // RenderMathMLMath_h -
trunk/Source/WebCore/rendering/mathml/RenderMathMLOperator.h
r106900 r107019 69 69 } 70 70 71 // This will catch anyone doing an unnecessary cast. 72 void toRenderMathMLOperator(const RenderMathMLOperator*); 73 71 74 inline UChar convertHyphenMinusToMinusSign(UChar glyph) 72 75 { -
trunk/Source/WebCore/rendering/mathml/RenderMathMLRoot.cpp
r103151 r107019 253 253 254 254 #endif // ENABLE(MATHML) 255 256 -
trunk/Source/WebCore/rendering/mathml/RenderMathMLRow.cpp
r106900 r107019 134 134 135 135 #endif // ENABLE(MATHML) 136 -
trunk/Source/WebCore/rendering/mathml/RenderMathMLRow.h
r106900 r107019 49 49 } 50 50 51 52 51 #endif // ENABLE(MATHML) 53 52 #endif // RenderMathMLRow_h -
trunk/Source/WebCore/rendering/mathml/RenderMathMLSquareRoot.cpp
r95901 r107019 190 190 191 191 #endif // ENABLE(MATHML) 192 193 -
trunk/Source/WebCore/rendering/mathml/RenderMathMLSquareRoot.h
r95901 r107019 49 49 50 50 #endif // RenderMathMLSquareRoot_h 51 52 53 -
trunk/Source/WebCore/rendering/mathml/RenderMathMLSubSup.cpp
r106900 r107019 30 30 #include "RenderMathMLSubSup.h" 31 31 32 #include "FontSelector.h"33 32 #include "MathMLNames.h" 34 #include "RenderInline.h"35 #include "RenderTable.h"36 #include "RenderTableCell.h"37 #include "RenderTableRow.h"38 #include "RenderTableSection.h"39 #include "RenderText.h"40 33 41 34 namespace WebCore { -
trunk/Source/WebCore/rendering/mathml/RenderMathMLSubSup.h
r106900 r107019 24 24 */ 25 25 26 27 26 #ifndef RenderMathMLSubSup_h 28 27 #define RenderMathMLSubSup_h … … 31 30 32 31 #include "RenderMathMLBlock.h" 33 #include "RenderTable.h"34 32 35 33 namespace WebCore { -
trunk/Source/WebCore/rendering/mathml/RenderMathMLUnderOver.cpp
r106900 r107019 293 293 } 294 294 295 296 295 #endif // ENABLE(MATHML) -
trunk/Source/WebCore/rendering/mathml/RenderMathMLUnderOver.h
r106900 r107019 23 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 24 */ 25 26 25 27 26 #ifndef RenderMathMLUnderOver_h
Note: See TracChangeset
for help on using the changeset viewer.