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 if ( box ) { |
48 box->setIsText(isOnlyRun || document()->inStrictMode()); |
49 box->setIsText(isOnlyRun || document()->inStrictMode()); |
|
50 } |
|
51 return box; |
49 return box; |
52 } |
50 } |
53 |
51 |
54 short RenderBR::baselinePosition(bool firstLine, bool isRootLineBox) const |
52 short RenderBR::baselinePosition(bool firstLine, bool isRootLineBox) const |
55 { |
53 { |