Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1002)

Side by Side Diff: Source/WebCore/platform/graphics/TextRun.h

Issue 7145023: Merge 88139 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/WebCore/platform/graphics/WidthIterator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2006, 2007, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2006, 2007, 2011 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #if ENABLE(SVG) 71 #if ENABLE(SVG)
72 , m_horizontalGlyphStretch(1) 72 , m_horizontalGlyphStretch(1)
73 #endif 73 #endif
74 , m_allowTabs(allowTabs) 74 , m_allowTabs(allowTabs)
75 , m_direction(direction) 75 , m_direction(direction)
76 , m_directionalOverride(directionalOverride) 76 , m_directionalOverride(directionalOverride)
77 , m_disableSpacing(false) 77 , m_disableSpacing(false)
78 { 78 {
79 } 79 }
80 80
81 UChar operator[](int i) const { return m_characters[i]; } 81 UChar operator[](int i) const { ASSERT(i >= 0 && i < m_len); return m_charac ters[i]; }
82 const UChar* data(int i) const { return &m_characters[i]; } 82 const UChar* data(int i) const { ASSERT(i >= 0 && i < m_len); return &m_char acters[i]; }
83 83
84 const UChar* characters() const { return m_characters; } 84 const UChar* characters() const { return m_characters; }
85 int length() const { return m_len; } 85 int length() const { return m_len; }
86 86
87 void setText(const UChar* c, int len) { m_characters = c; m_len = len; } 87 void setText(const UChar* c, int len) { m_characters = c; m_len = len; }
88 88
89 #if ENABLE(SVG) 89 #if ENABLE(SVG)
90 float horizontalGlyphStretch() const { return m_horizontalGlyphStretch; } 90 float horizontalGlyphStretch() const { return m_horizontalGlyphStretch; }
91 void setHorizontalGlyphStretch(float scale) { m_horizontalGlyphStretch = sca le; } 91 void setHorizontalGlyphStretch(float scale) { m_horizontalGlyphStretch = sca le; }
92 #endif 92 #endif
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 bool m_allowTabs; 141 bool m_allowTabs;
142 TextDirection m_direction; 142 TextDirection m_direction;
143 bool m_directionalOverride; // Was this direction set by an override charact er. 143 bool m_directionalOverride; // Was this direction set by an override charact er.
144 bool m_disableSpacing; 144 bool m_disableSpacing;
145 RefPtr<RenderingContext> m_renderingContext; 145 RefPtr<RenderingContext> m_renderingContext;
146 }; 146 };
147 147
148 } 148 }
149 149
150 #endif 150 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/platform/graphics/WidthIterator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698