summaryrefslogtreecommitdiff
path: root/Source/WebCore/rendering/InlineFlowBox.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/rendering/InlineFlowBox.h')
-rw-r--r--Source/WebCore/rendering/InlineFlowBox.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/Source/WebCore/rendering/InlineFlowBox.h b/Source/WebCore/rendering/InlineFlowBox.h
index a81af717b..bfdf87efd 100644
--- a/Source/WebCore/rendering/InlineFlowBox.h
+++ b/Source/WebCore/rendering/InlineFlowBox.h
@@ -88,7 +88,7 @@ public:
virtual void setConstructed()
{
InlineBox::setConstructed();
- for (InlineBox* child = firstChild(); child; child = child->next())
+ for (InlineBox* child = firstChild(); child; child = child->nextOnLine())
child->setConstructed();
}
@@ -137,13 +137,13 @@ public:
{
if (!includeLogicalLeftEdge())
return 0;
- return isHorizontal() ? renderer()->style()->borderLeftWidth() : renderer()->style()->borderTopWidth();
+ return isHorizontal() ? renderer()->style(isFirstLineStyle())->borderLeftWidth() : renderer()->style(isFirstLineStyle())->borderTopWidth();
}
int borderLogicalRight() const
{
if (!includeLogicalRightEdge())
return 0;
- return isHorizontal() ? renderer()->style()->borderRightWidth() : renderer()->style()->borderBottomWidth();
+ return isHorizontal() ? renderer()->style(isFirstLineStyle())->borderRightWidth() : renderer()->style(isFirstLineStyle())->borderBottomWidth();
}
int paddingLogicalLeft() const
{
@@ -297,20 +297,22 @@ protected:
InlineFlowBox* m_prevLineBox; // The previous box that also uses our RenderObject
InlineFlowBox* m_nextLineBox; // The next box that also uses our RenderObject
- bool m_includeLogicalLeftEdge : 1;
- bool m_includeLogicalRightEdge : 1;
- bool m_hasTextChildren : 1;
- bool m_hasTextDescendants : 1;
- bool m_descendantsHaveSameLineHeightAndBaseline : 1;
+private:
+ unsigned m_includeLogicalLeftEdge : 1;
+ unsigned m_includeLogicalRightEdge : 1;
+ unsigned m_hasTextChildren : 1;
+ unsigned m_hasTextDescendants : 1;
+ unsigned m_descendantsHaveSameLineHeightAndBaseline : 1;
+protected:
// The following members are only used by RootInlineBox but moved here to keep the bits packed.
// Whether or not this line uses alphabetic or ideographic baselines by default.
unsigned m_baselineType : 1; // FontBaseline
// If the line contains any ruby runs, then this will be true.
- bool m_hasAnnotationsBefore : 1;
- bool m_hasAnnotationsAfter : 1;
+ unsigned m_hasAnnotationsBefore : 1;
+ unsigned m_hasAnnotationsAfter : 1;
unsigned m_lineBreakBidiStatusEor : 5; // WTF::Unicode::Direction
unsigned m_lineBreakBidiStatusLastStrong : 5; // WTF::Unicode::Direction
@@ -320,7 +322,7 @@ protected:
#ifndef NDEBUG
private:
- bool m_hasBadChildList;
+ unsigned m_hasBadChildList : 1;
#endif
};