Changeset 83098 in webkit
- Timestamp:
- Apr 6, 2011 2:08:20 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r83097 r83098 1 2011-04-06 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Eric Seidel. 4 5 borderPaddingMarginStart and borderPaddingMarginEnd should take RenderInline 6 https://bugs.webkit.org/show_bug.cgi?id=57965 7 8 Changed the argument types of borderPaddingMarginStart and borderPaddingMarginEnd 9 from RenderBoxModelObject to RenderInline since they call marginStart and marginEnd 10 instead of marginStartForChild and marginEndForChild respectively. 11 12 Calling these two functions on RenderInline is okay because writing-mode cannot differ 13 from that of the containing block. 14 15 * rendering/RenderBlockLineLayout.cpp: 16 (WebCore::borderPaddingMarginStart): 17 (WebCore::borderPaddingMarginEnd): 18 (WebCore::inlineLogicalWidth): 19 1 20 2011-04-06 Sheriff Bot <webkit.review.bot@gmail.com> 2 21 -
trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp
r83076 r83098 61 61 const unsigned cMaxLineDepth = 200; 62 62 63 static inline int borderPaddingMarginStart(RenderBoxModelObject* child) 64 { 65 // FIXME: Should we call marginStartForChild instead? 63 static inline int borderPaddingMarginStart(RenderInline* child) 64 { 66 65 return child->marginStart() + child->paddingStart() + child->borderStart(); 67 66 } 68 67 69 static inline int borderPaddingMarginEnd(Render BoxModelObject* child)68 static inline int borderPaddingMarginEnd(RenderInline* child) 70 69 { 71 70 return child->marginEnd() + child->paddingEnd() + child->borderEnd(); … … 77 76 int extraWidth = 0; 78 77 RenderObject* parent = child->parent(); 79 while (parent->isInline() && !parent->isInlineBlockOrInlineTable() && lineDepth++ < cMaxLineDepth) { 80 RenderBoxModelObject* parentAsBoxModelObject = toRenderBoxModelObject(parent); 81 ASSERT(parentAsBoxModelObject); 78 while (parent->isRenderInline() && lineDepth++ < cMaxLineDepth) { 79 RenderInline* parentAsRenderInline = toRenderInline(parent); 82 80 if (start && !child->previousSibling()) 83 extraWidth += borderPaddingMarginStart(parentAs BoxModelObject);81 extraWidth += borderPaddingMarginStart(parentAsRenderInline); 84 82 if (end && !child->nextSibling()) 85 extraWidth += borderPaddingMarginEnd(parentAs BoxModelObject);83 extraWidth += borderPaddingMarginEnd(parentAsRenderInline); 86 84 child = parent; 87 85 parent = child->parent();
Note: See TracChangeset
for help on using the changeset viewer.