2006-05-14 Sam Weinig <sam.weinig@gmail.com>
[WebKit-https.git] / WebCore / rendering / InlineFlowBox.cpp
index c754c76057b310535d3618d9846fe6362292bea6..97bcf3fff220e82253435aac4cc2e0e1bae4a2a4 100644 (file)
@@ -213,14 +213,11 @@ void InlineFlowBox::determineSpacingForFlowBoxes(bool lastLine, RenderObject* en
         if (!flow->lastLineBox()->isConstructed()) {
             if (ltr) {
                 if (!nextLineBox() &&
-                    ((lastLine && !object()->continuation()) || nextOnLineExists()
-                     || onEndChain(endObject)))
+                    ((lastLine && !object()->continuation()) || nextOnLineExists() || onEndChain(endObject)))
                     includeRightEdge = true;
-            }
-            else {
-                if ((!prevLineBox() || !prevLineBox()->isConstructed()) &&
-                    ((lastLine && !object()->continuation()) ||
-                     prevOnLineExists() || onEndChain(endObject)))
+            } else {
+                if ((!prevLineBox() || prevLineBox()->isConstructed()) &&
+                    ((lastLine && !object()->continuation()) || prevOnLineExists() || onEndChain(endObject)))
                     includeLeftEdge = true;
             }
         }