webengine/osswebengine/WebCore/rendering/RenderBR.cpp
branchRCL_3
changeset 48 79859ed3eea9
parent 46 30342f40acbf
child 49 919f36ff910f
equal deleted inserted replaced
47:e1bea15f9a39 48:79859ed3eea9
    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 {