Changeset 61326 in webkit
- Timestamp:
- Jun 17, 2010 8:11:42 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r61324 r61326 1 2010-06-17 Alex Milowski <alex@milowski.com> 2 3 Reviewed by Darin Adler. 4 5 Fixed a compile error in the paint() methods by making them use the 6 new visitedDependentColor() method. 7 https://bugs.webkit.org/show_bug.cgi?id=40327 8 9 * mathml/RenderMathMLRoot.cpp: 10 (WebCore::RenderMathMLRoot::paint): 11 (WebCore::RenderMathMLRoot::layout): Fixed a crash where every child 12 was assumed to be a RenderMathMLBlock instance when that isn't the 13 case. Also, layout() needed to mark the index for layout before 14 calling layout() on the index. 15 * mathml/RenderMathMLSquareRoot.cpp: 16 (WebCore::RenderMathMLSquareRoot::paint): 17 1 18 2010-06-17 Darin Adler <darin@apple.com> 2 19 -
trunk/WebCore/mathml/RenderMathMLRoot.cpp
r58349 r61326 146 146 info.context->setStrokeThickness(gRadicalLineThickness * style()->fontSize()); 147 147 info.context->setStrokeStyle(SolidStroke); 148 info.context->setStrokeColor(style()-> color(), sRGBColorSpace);148 info.context->setStrokeColor(style()->visitedDependentColor(CSSPropertyColor), sRGBColorSpace); 149 149 info.context->setLineJoin(MiterJoin); 150 150 info.context->setMiterLimit(style()->fontSize()); … … 205 205 206 206 RenderObject* current = lastChild()->firstChild(); 207 208 toRenderMathMLBlock(current)->style()->setVerticalAlign(BASELINE); 207 current->style()->setVerticalAlign(BASELINE); 209 208 210 209 if (!maxHeight) … … 239 238 markContainingBlocksForLayout(); 240 239 RenderBlock::layout(); 241 240 242 241 indexBox->style()->setBottom(Length(radicalHeight + style()->paddingBottom().value(), Fixed)); 243 242 243 // Now that we've potentially changed its position, we need layout the index again. 244 indexBox->setNeedsLayoutAndPrefWidthsRecalc(); 244 245 indexBox->layout(); 245 246 } -
trunk/WebCore/mathml/RenderMathMLSquareRoot.cpp
r58349 r61326 115 115 info.context->setStrokeThickness(gRadicalLineThickness * style()->fontSize()); 116 116 info.context->setStrokeStyle(SolidStroke); 117 info.context->setStrokeColor(style()-> color(), sRGBColorSpace);117 info.context->setStrokeColor(style()->visitedDependentColor(CSSPropertyColor), sRGBColorSpace); 118 118 info.context->setLineJoin(MiterJoin); 119 119 info.context->setMiterLimit(style()->fontSize());
Note: See TracChangeset
for help on using the changeset viewer.