Searched refs:TextRun (Results 1 - 25 of 68) sorted by relevance

123

/external/chromium_org/third_party/WebKit/Source/web/
H A DWebTextRun.cpp34 #include "platform/text/TextRun.h"
38 WebTextRun::operator TextRun() const
40 return TextRun(text, 0, 0, TextRun::AllowTrailingExpansion, rtl ? RTL : LTR, directionalOverride);
/external/chromium_org/third_party/WebKit/Source/core/rendering/
H A DTextRunConstructor.h40 #include "platform/text/TextRun.h"
60 TextRun constructTextRun(RenderObject* context, const Font&, const String&, RenderStyle*,
61 TextRun::ExpansionBehavior = TextRun::AllowTrailingExpansion | TextRun::ForbidLeadingExpansion, TextRunFlags = DefaultTextRunFlags);
62 TextRun constructTextRun(RenderObject* context, const Font&, const RenderText*, unsigned offset, unsigned length, RenderStyle*,
63 TextRun::ExpansionBehavior = TextRun::AllowTrailingExpansion | TextRun::ForbidLeadingExpansion);
66 TextRun constructTextRu
[all...]
H A DTextRunConstructor.cpp42 static inline TextRun constructTextRunInternal(RenderObject* context, const Font& font, const CharacterType* characters, int length, RenderStyle* style, TextDirection direction, TextRun::ExpansionBehavior expansion)
47 TextRun run(characters, length, 0, 0, expansion, direction, directionalOverride);
55 static inline TextRun constructTextRunInternal(RenderObject* context, const Font& font, const CharacterType* characters, int length, RenderStyle* style, TextDirection direction, TextRun::ExpansionBehavior expansion, TextRunFlags flags)
68 TextRun run(characters, length, 0, 0, expansion, textDirection, directionalOverride);
75 TextRun constructTextRun(RenderObject* context, const Font& font, const LChar* characters, int length, RenderStyle* style, TextDirection direction, TextRun::ExpansionBehavior expansion)
80 TextRun constructTextRun(RenderObject* context, const Font& font, const UChar* characters, int length, RenderStyle* style, TextDirection direction, TextRun
[all...]
H A DTextPainter.h24 class TextRun;
31 TextPainter(GraphicsContext*, const Font&, const TextRun&, const FloatPoint& textOrigin, const FloatRect& textBounds, bool horizontal);
79 const TextRun& m_run;
H A DInlineTextBox.h29 #include "platform/text/TextRun.h"
105 // charactersWithHyphen, if provided, must not be destroyed before the TextRun.
106 TextRun constructTextRun(RenderStyle*, const Font&, StringBuilder* charactersWithHyphen = 0) const;
107 TextRun constructTextRun(RenderStyle*, const Font&, StringView, int maximumLength, StringBuilder* charactersWithHyphen = 0) const;
110 TextRun constructTextRunForInspector(RenderStyle*, const Font&) const;
189 TextRun::ExpansionBehavior expansionBehavior() const
191 return (canHaveLeadingExpansion() ? TextRun::AllowLeadingExpansion : TextRun::ForbidLeadingExpansion)
192 | (expansion() && nextLeafChild() ? TextRun::AllowTrailingExpansion : TextRun
[all...]
H A DRenderEmbeddedObject.h30 class TextRun;
61 bool getReplacementTextGeometry(const LayoutPoint& accumulatedOffset, FloatRect& contentRect, Path&, FloatRect& replacementTextRect, Font&, TextRun&, float& textWidth) const;
H A DEllipsisBox.cpp33 #include "platform/text/TextRun.h"
64 TextRun textRun = constructTextRun(&renderer(), font, m_str, style, TextRun::AllowTrailingExpansion);
106 return enclosingIntRect(font.selectionRectForText(constructTextRun(&renderer(), font, m_str, style, TextRun::AllowTrailingExpansion), IntPoint(logicalLeft(), logicalTop() + root().selectionTopAdjustedForPrecedingBlock()), root().selectionHeightAdjustedForPrecedingBlock()));
129 context->drawHighlightForText(font, constructTextRun(&renderer(), font, m_str, style, TextRun::AllowTrailingExpansion), localOrigin, h, c);
/external/chromium_org/third_party/WebKit/Source/platform/text/
H A DBidiTextRun.cpp39 TextDirection directionForRun(TextRun& run, bool& hasStrongDirectionality)
49 TextRun run(value);
53 TextRun textRunWithDirectionality(const String& value, bool& hasStrongDirectionality)
55 TextRun run(value);
H A DBidiTextRun.h35 #include "platform/text/TextRun.h"
40 PLATFORM_EXPORT TextDirection directionForRun(TextRun&, bool& hasStrongDirectionality);
42 PLATFORM_EXPORT TextRun textRunWithDirectionality(const String& value, bool& hasStrongDirectionality);
H A DTextRun.cpp27 #include "platform/text/TextRun.h"
40 RefPtr<TextRun::RenderingContext> renderingContext;
43 COMPILE_ASSERT(sizeof(TextRun) == sizeof(ExpectedTextRunSize), TextRun_is_not_of_expected_size);
45 void TextRun::setText(const String& string)
H A DTextRun.h45 class PLATFORM_EXPORT TextRun { class in namespace:blink
57 TextRun(const LChar* c, unsigned len, float xpos = 0, float expansion = 0, ExpansionBehavior expansionBehavior = AllowTrailingExpansion | ForbidLeadingExpansion, TextDirection direction = LTR, bool directionalOverride = false, bool characterScanForCodePath = true) function in class:blink::TextRun
77 TextRun(const UChar* c, unsigned len, float xpos = 0, float expansion = 0, ExpansionBehavior expansionBehavior = AllowTrailingExpansion | ForbidLeadingExpansion, TextDirection direction = LTR, bool directionalOverride = false, bool characterScanForCodePath = true) function in class:blink::TextRun
97 TextRun(const String& string, float xpos = 0, float expansion = 0, ExpansionBehavior expansionBehavior = AllowTrailingExpansion | ForbidLeadingExpansion, TextDirection direction = LTR, bool directionalOverride = false, bool characterScanForCodePath = true, bool normalizeSpace = false) function in class:blink::TextRun
125 TextRun(const StringView& string, float xpos = 0, float expansion = 0, ExpansionBehavior expansionBehavior = AllowTrailingExpansion | ForbidLeadingExpansion, TextDirection direction = LTR, bool directionalOverride = false, bool characterScanForCodePath = true, bool normalizeSpace = false) function in class:blink::TextRun
153 TextRun subRun(unsigned startOffset, unsigned length) const
157 TextRun result = *this;
216 virtual GlyphData glyphDataForCharacter(const Font&, const TextRun&, WidthIterator&, UChar32 character, bool mirror, int currentCharacter, unsigned& advanceLength) = 0;
217 virtual void drawSVGGlyphs(GraphicsContext*, const TextRun&, const SimpleFontData*, const GlyphBuffer&, int from, int to, const FloatPoint&) const = 0;
218 virtual float floatWidthUsingSVGFont(const Font&, const TextRun
[all...]
H A DTextRunIterator.h32 #include "platform/text/TextRun.h"
44 TextRunIterator(const TextRun* textRun, unsigned offset)
71 const TextRun* m_textRun;
/external/chromium_org/third_party/WebKit/public/web/
H A DWebTextRun.h38 class TextRun;
58 // The resulting blink::TextRun will refer to the text in this
60 operator TextRun() const;
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
H A DSVGTextRunRenderingContext.h25 #include "platform/text/TextRun.h"
32 class SVGTextRunRenderingContext FINAL : public TextRun::RenderingContext {
42 virtual GlyphData glyphDataForCharacter(const Font&, const TextRun&, WidthIterator&, UChar32 character, bool mirror, int currentCharacter, unsigned& advanceLength) OVERRIDE;
43 virtual void drawSVGGlyphs(GraphicsContext*, const TextRun&, const SimpleFontData*, const GlyphBuffer&, int from, int to, const FloatPoint&) const OVERRIDE;
44 virtual float floatWidthUsingSVGFont(const Font&, const TextRun&, int& charsConsumed, Glyph& glyphId) const OVERRIDE;
46 virtual GlyphData glyphDataForCharacter(const Font&, const TextRun&, WidthIterator&, UChar32 character, bool mirror, int currentCharacter, unsigned& advanceLength) OVERRIDE { return 0; }
47 virtual void drawSVGGlyphs(GraphicsContext*, const TextRun&, const SimpleFontData*, const GlyphBuffer&, int from, int to, const FloatPoint&) const OVERRIDE { }
48 virtual float floatWidthUsingSVGFont(const Font&, const TextRun&, int& charsConsumed, Glyph& glyphId) const OVERRIDE { return 0; }
H A DSVGTextMetrics.h30 class TextRun;
44 static TextRun constructTextRun(RenderSVGInlineText*, unsigned position, unsigned length);
47 static TextRun constructTextRun(RenderSVGInlineText*, unsigned position, unsigned length, TextDirection);
61 SVGTextMetrics(RenderSVGInlineText*, const TextRun&);
H A DSVGTextMetrics.cpp45 SVGTextMetrics::SVGTextMetrics(RenderSVGInlineText* textRenderer, const TextRun& run)
63 TextRun SVGTextMetrics::constructTextRun(RenderSVGInlineText* text, unsigned position, unsigned length)
69 TextRun SVGTextMetrics::constructTextRun(RenderSVGInlineText* text, unsigned position, unsigned length, TextDirection textDirection)
74 TextRun run(static_cast<const LChar*>(0) // characters, will be set below if non-zero.
78 , TextRun::AllowTrailingExpansion
95 // Propagate the maximum length of the characters buffer to the TextRun, even when we're only processing a substring.
H A DSVGInlineTextBox.h64 TextRun constructTextRun(RenderStyle*, const SVGTextFragment&) const;
69 void paintTextWithShadows(GraphicsContext*, RenderStyle*, TextRun&, const SVGTextFragment&,
H A DSVGTextRunRenderingContext.cpp66 static inline RenderObject* renderObjectFromRun(const TextRun& run)
68 if (TextRun::RenderingContext* renderingContext = run.renderingContext())
73 float SVGTextRunRenderingContext::floatWidthUsingSVGFont(const Font& font, const TextRun& run, int& charsConsumed, Glyph& glyphId) const
82 void SVGTextRunRenderingContext::drawSVGGlyphs(GraphicsContext* context, const TextRun& run, const SimpleFontData* fontData, const GlyphBuffer& glyphBuffer, int from, int numGlyphs, const FloatPoint& point) const
153 GlyphData SVGTextRunRenderingContext::glyphDataForCharacter(const Font& font, const TextRun& run, WidthIterator& iterator, UChar32 character, bool mirror, int currentCharacter, unsigned& advanceLength)
177 if (TextRun::RenderingContext* renderingContext = run.renderingContext()) {
/external/chromium_org/ui/gfx/
H A Drender_text_win.h22 struct TextRun { struct in namespace:gfx::internal
23 TextRun();
24 ~TextRun();
54 DISALLOW_COPY_AND_ASSIGN(TextRun);
97 void LayoutTextRun(internal::TextRun* run);
101 HRESULT ShapeTextRunWithFont(internal::TextRun* run, const Font& font);
104 int CountCharsWithMissingGlyphs(internal::TextRun* run) const;
114 SelectionModel FirstSelectionModelInsideRun(const internal::TextRun* run);
115 SelectionModel LastSelectionModelInsideRun(const internal::TextRun* run);
127 ScopedVector<internal::TextRun> runs
[all...]
H A Drender_text_mac.h53 struct TextRun { struct in class:gfx::RenderTextMac
67 TextRun();
68 ~TextRun();
92 std::vector<TextRun> runs_;
H A Drender_text_win.cc80 Range CharRangeToGlyphRange(const internal::TextRun& run,
108 // TextRun::logical_clusters might help.
113 const internal::TextRun& run,
174 const ScopedVector<internal::TextRun>& runs) {
181 internal::TextRun* run = runs[segment->run];
292 TextRun::TextRun() function in class:gfx::internal::TextRun
305 TextRun::~TextRun() {
311 int GetGlyphXBoundary(const internal::TextRun* ru
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/fonts/
H A DWidthIterator.h28 #include "platform/text/TextRun.h"
38 class TextRun;
44 WidthIterator(const Font*, const TextRun&, HashSet<const SimpleFontData*>* fallbackFonts = 0, bool accountForGlyphBounds = false, bool forTextEmphasis = false);
54 const TextRun& run() const { return m_run; }
63 const TextRun& m_run;
H A DFont.h58 class TextRun;
106 float width(const TextRun&, HashSet<const SimpleFontData*>* fallbackFonts = 0, GlyphOverflow* = 0) const;
107 float width(const TextRun&, int& charsConsumed, Glyph& glyphId) const;
109 int offsetForPosition(const TextRun&, float position, bool includePartialGlyphs) const;
110 FloatRect selectionRectForText(const TextRun&, const FloatPoint&, int h, int from = 0, int to = -1, bool accountForGlyphBounds = false) const;
136 CodePath codePath(const TextRun&) const;
151 float floatWidthForSimpleText(const TextRun&, HashSet<const SimpleFontData*>* fallbackFonts = 0, IntRectExtent* glyphBounds = 0) const;
152 int offsetForPositionForSimpleText(const TextRun&, float position, bool includePartialGlyphs) const;
153 FloatRect selectionRectForSimpleText(const TextRun&, const FloatPoint&, int h, int from, int to, bool accountForGlyphBounds) const;
161 float floatWidthForComplexText(const TextRun
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/
H A DComplexTextController.h47 class TextRun;
55 ComplexTextController(const Font*, const TextRun&, bool mayUseNaturalWritingDirection = false, HashSet<const SimpleFontData*>* fallbackFonts = 0, bool forTextEmphasis = false);
141 const TextRun& m_run;
/external/chromium_org/third_party/WebKit/Source/platform/fonts/harfbuzz/
H A DHarfBuzzShaper.h37 #include "platform/text/TextRun.h"
59 HarfBuzzShaper(const Font*, const TextRun&, ForTextEmphasisOrNot = NotForTextEmphasis, HashSet<const SimpleFontData*>* fallbackFonts = 0);
124 // setPadding sets a number of pixels to be distributed across the TextRun.
141 const TextRun& m_run;

Completed in 2313 milliseconds

123