equal
deleted
inserted
replaced
43 InlineBox* RenderBR::createInlineBox(bool makePlaceholder, bool isRootLineBox, bool isOnlyRun) |
43 InlineBox* RenderBR::createInlineBox(bool makePlaceholder, bool isRootLineBox, bool isOnlyRun) |
44 { |
44 { |
45 // We only treat a box as text for a <br> if we are on a line by ourself or in strict mode |
45 // We only treat a box as text for a <br> if we are on a line by ourself or in strict mode |
46 // (Note the use of strict mode. In "almost strict" mode, we don't treat the box for <br> as text.) |
46 // (Note the use of strict mode. In "almost strict" mode, we don't treat the box for <br> as text.) |
47 InlineTextBox* box = static_cast<InlineTextBox*>(RenderText::createInlineBox(makePlaceholder, isRootLineBox, isOnlyRun)); |
47 InlineTextBox* box = static_cast<InlineTextBox*>(RenderText::createInlineBox(makePlaceholder, isRootLineBox, isOnlyRun)); |
48 box->setIsText(isOnlyRun || document()->inStrictMode()); |
48 if ( box ) { |
|
49 box->setIsText(isOnlyRun || document()->inStrictMode()); |
|
50 } |
49 return box; |
51 return box; |
50 } |
52 } |
51 |
53 |
52 short RenderBR::baselinePosition(bool firstLine, bool isRootLineBox) const |
54 short RenderBR::baselinePosition(bool firstLine, bool isRootLineBox) const |
53 { |
55 { |