summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/TextRun.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/TextRun.h')
-rw-r--r--WebCore/platform/graphics/TextRun.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/TextRun.h b/WebCore/platform/graphics/TextRun.h
index 79b6cb3..dce5535 100644
--- a/WebCore/platform/graphics/TextRun.h
+++ b/WebCore/platform/graphics/TextRun.h
@@ -117,7 +117,10 @@ private:
const UChar* m_characters;
int m_len;
- int m_xpos;
+ // m_xpos is the x position relative to the left start of the text line, not relative to the left
+ // start of the containing block. In the case of right alignment or center alignment, left start of
+ // the text line is not the same as left start of the containing block.
+ int m_xpos;
int m_padding;
#if ENABLE(SVG)
float m_horizontalGlyphStretch;