webengine/osswebengine/WebCore/rendering/RenderBR.cpp
branchRCL_3
changeset 93 79859ed3eea9
parent 91 30342f40acbf
child 94 919f36ff910f
--- a/webengine/osswebengine/WebCore/rendering/RenderBR.cpp	Thu Aug 19 10:58:56 2010 +0300
+++ b/webengine/osswebengine/WebCore/rendering/RenderBR.cpp	Tue Aug 31 16:17:46 2010 +0300
@@ -45,9 +45,7 @@
     // We only treat a box as text for a <br> if we are on a line by ourself or in strict mode
     // (Note the use of strict mode.  In "almost strict" mode, we don't treat the box for <br> as text.)
     InlineTextBox* box = static_cast<InlineTextBox*>(RenderText::createInlineBox(makePlaceholder, isRootLineBox, isOnlyRun));
-    if ( box ) {	
-        box->setIsText(isOnlyRun || document()->inStrictMode());
-    }    
+    box->setIsText(isOnlyRun || document()->inStrictMode());
     return box;
 }