webengine/osswebengine/WebCore/rendering/RenderBR.cpp
branchRCL_3
changeset 46 30342f40acbf
parent 0 dd21522fd290
child 48 79859ed3eea9
equal deleted inserted replaced
44:800203832575 46:30342f40acbf
    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 {