diff options
author | Ben Murdoch <benm@google.com> | 2010-10-22 13:02:20 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-10-26 15:21:41 +0100 |
commit | a94275402997c11dd2e778633dacf4b7e630a35d (patch) | |
tree | e66f56c67e3b01f22c9c23cd932271ee9ac558ed /WebCore/rendering/RenderListItem.cpp | |
parent | 09e26c78506587b3f5d930d7bc72a23287ffbec0 (diff) | |
download | external_webkit-a94275402997c11dd2e778633dacf4b7e630a35d.zip external_webkit-a94275402997c11dd2e778633dacf4b7e630a35d.tar.gz external_webkit-a94275402997c11dd2e778633dacf4b7e630a35d.tar.bz2 |
Merge WebKit at r70209: Initial merge by Git
Change-Id: Id23a68efa36e9d1126bcce0b137872db00892c8e
Diffstat (limited to 'WebCore/rendering/RenderListItem.cpp')
-rw-r--r-- | WebCore/rendering/RenderListItem.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/rendering/RenderListItem.cpp b/WebCore/rendering/RenderListItem.cpp index b414f38..1f600fe 100644 --- a/WebCore/rendering/RenderListItem.cpp +++ b/WebCore/rendering/RenderListItem.cpp @@ -102,7 +102,7 @@ static Node* enclosingList(const RenderListItem* listItem) static RenderListItem* previousListItem(Node* list, const RenderListItem* item) { - for (RenderObject* renderer = item->previousInPreOrder(); renderer != list->renderer(); renderer = renderer->previousInPreOrder()) { + for (RenderObject* renderer = item->previousInPreOrder(); renderer && renderer != list->renderer(); renderer = renderer->previousInPreOrder()) { if (!renderer->isListItem()) continue; Node* otherList = enclosingList(toRenderListItem(renderer)); @@ -261,7 +261,7 @@ void RenderListItem::positionListMarker() // FIXME: Inline flows in the line box hierarchy that have self-painting layers should act as cutoff points // and really shouldn't keep propagating overflow up. This won't really break anything other than repainting // not being as tight as it could be though. - if (style()->direction() == LTR) { + if (style()->isLeftToRightDirection()) { int leftLineOffset = logicalLeftOffsetForLine(yOffset, logicalLeftOffsetForLine(yOffset, false), false); markerXPos = leftLineOffset - xOffset - paddingLeft() - borderLeft() + m_marker->marginLeft(); m_marker->inlineBoxWrapper()->adjustPosition(markerXPos - markerOldX, 0); @@ -326,12 +326,12 @@ String RenderListItem::markerTextWithSuffix() const const String markerSuffix = m_marker->suffix(); Vector<UChar> resultVector; - if (m_marker->style()->direction() == RTL) + if (!m_marker->style()->isLeftToRightDirection()) resultVector.append(markerSuffix.characters(), markerSuffix.length()); resultVector.append(markerText.characters(), markerText.length()); - if (m_marker->style()->direction() == LTR) + if (m_marker->style()->isLeftToRightDirection()) resultVector.append(markerSuffix.characters(), markerSuffix.length()); return String::adopt(resultVector); |