/external/chromium_org/third_party/WebKit/Source/web/ |
WebTextRun.cpp | 34 #include "platform/text/TextRun.h" 40 WebTextRun::operator WebCore::TextRun() const 42 return TextRun(text, 0, 0, TextRun::AllowTrailingExpansion, rtl ? RTL : LTR, directionalOverride);
|
/external/chromium_org/third_party/WebKit/Source/platform/text/ |
TextRun.cpp | 27 #include "platform/text/TextRun.h" 39 RefPtr<TextRun::RenderingContext> renderingContext; 42 COMPILE_ASSERT(sizeof(TextRun) == sizeof(ExpectedTextRunSize), TextRun_is_not_of_expected_size); 44 bool TextRun::s_allowsRoundingHacks = false; 46 void TextRun::setAllowsRoundingHacks(bool allowsRoundingHacks) 51 void TextRun::setText(const String& string) 66 bool TextRun::allowsRoundingHacks()
|
TextRun.h | 43 class PLATFORM_EXPORT TextRun { 63 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, RoundingHacks roundingHacks = RunRounding | WordRounding) 83 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, RoundingHacks roundingHacks = RunRounding | WordRounding) 103 TextRun(const String& string, float xpos = 0, float expansion = 0, ExpansionBehavior expansionBehavior = AllowTrailingExpansion | ForbidLeadingExpansion, TextDirection direction = LTR, bool directionalOverride = false, bool characterScanForCodePath = true, RoundingHacks roundingHacks = RunRounding | WordRounding) 131 TextRun(const StringView& string, float xpos = 0, float expansion = 0, ExpansionBehavior expansionBehavior = AllowTrailingExpansion | ForbidLeadingExpansion, TextDirection direction = LTR, bool directionalOverride = false, bool characterScanForCodePath = true, RoundingHacks roundingHacks = RunRounding | WordRounding) 159 TextRun subRun(unsigned startOffset, unsigned length) const 163 TextRun result = *this; 220 virtual GlyphData glyphDataForCharacter(const Font&, const TextRun&, WidthIterator&, UChar32 character, bool mirror, int currentCharacter, unsigned& advanceLength) = 0; 221 virtual void drawSVGGlyphs(GraphicsContext*, const TextRun&, const SimpleFontData*, const GlyphBuffer&, int from, int to, const FloatPoint&) const = 0; 222 virtual float floatWidthUsingSVGFont(const Font&, const TextRun&, int& charsConsumed, String& glyphName) const = 0 [all...] |
TextRunIterator.h | 32 #include "platform/text/TextRun.h" 44 TextRunIterator(const TextRun* textRun, unsigned offset) 45 : m_textRun(textRun) 71 const TextRun* m_textRun;
|
/external/chromium_org/third_party/WebKit/public/web/ |
WebTextRun.h | 37 namespace WebCore { class TextRun; } 60 // The resulting WebCore::TextRun will refer to the text in this 62 operator WebCore::TextRun() const;
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/ |
SVGTextRunRenderingContext.h | 25 #include "platform/text/TextRun.h" 32 class SVGTextRunRenderingContext : public TextRun::RenderingContext { 45 virtual GlyphData glyphDataForCharacter(const Font&, const TextRun&, WidthIterator&, UChar32 character, bool mirror, int currentCharacter, unsigned& advanceLength); 46 virtual void drawSVGGlyphs(GraphicsContext*, const TextRun&, const SimpleFontData*, const GlyphBuffer&, int from, int to, const FloatPoint&) const; 47 virtual float floatWidthUsingSVGFont(const Font&, const TextRun&, int& charsConsumed, String& glyphName) const;
|
SVGTextMetrics.h | 29 class TextRun; 42 static TextRun constructTextRun(RenderSVGInlineText*, unsigned position, unsigned length); 67 SVGTextMetrics(RenderSVGInlineText*, const TextRun&);
|
SVGInlineTextBox.h | 66 TextRun constructTextRun(RenderStyle*, const SVGTextFragment&) const; 71 bool prepareGraphicsContextForTextPainting(GraphicsContext*&, float scalingFactor, TextRun&, RenderStyle*); 72 void restoreGraphicsContextAfterTextPainting(GraphicsContext*&, TextRun&); 76 void paintTextWithShadows(GraphicsContext*, RenderStyle*, TextRun&, const SVGTextFragment&, int startPosition, int endPosition);
|
SVGTextMetrics.cpp | 43 SVGTextMetrics::SVGTextMetrics(RenderSVGInlineText* textRenderer, const TextRun& run) 64 TextRun SVGTextMetrics::constructTextRun(RenderSVGInlineText* text, unsigned position, unsigned length) 69 TextRun run(static_cast<const LChar*>(0) // characters, will be set below if non-zero. 73 , TextRun::AllowTrailingExpansion 92 // Propagate the maximum length of the characters buffer to the TextRun, even when we're only processing a substring.
|
SVGTextMetricsBuilder.h | 26 #include "platform/text/TextRun.h" 54 TextRun m_run;
|
SVGTextRunRenderingContext.cpp | 62 static inline RenderObject* renderObjectFromRun(const TextRun& run) 64 if (TextRun::RenderingContext* renderingContext = run.renderingContext()) 69 static inline RenderSVGResource* activePaintingResourceFromRun(const TextRun& run) 71 if (TextRun::RenderingContext* renderingContext = run.renderingContext()) 76 float SVGTextRunRenderingContext::floatWidthUsingSVGFont(const Font& font, const TextRun& run, int& charsConsumed, String& glyphName) const 85 void SVGTextRunRenderingContext::drawSVGGlyphs(GraphicsContext* context, const TextRun& run, const SimpleFontData* fontData, const GlyphBuffer& glyphBuffer, int from, int numGlyphs, const FloatPoint& point) const 172 GlyphData SVGTextRunRenderingContext::glyphDataForCharacter(const Font& font, const TextRun& run, WidthIterator& iterator, UChar32 character, bool mirror, int currentCharacter, unsigned& advanceLength) 196 if (TextRun::RenderingContext* renderingContext = run.renderingContext()) {
|
/external/chromium_org/ui/gfx/ |
render_text_win.h | 22 struct TextRun { 23 TextRun(); 24 ~TextRun(); 54 DISALLOW_COPY_AND_ASSIGN(TextRun); 96 void LayoutTextRun(internal::TextRun* run); 100 HRESULT ShapeTextRunWithFont(internal::TextRun* run, const Font& font); 103 int CountCharsWithMissingGlyphs(internal::TextRun* run) const; 113 SelectionModel FirstSelectionModelInsideRun(const internal::TextRun* run); 114 SelectionModel LastSelectionModelInsideRun(const internal::TextRun* run); 126 ScopedVector<internal::TextRun> runs_ [all...] |
render_text_mac.h | 53 struct TextRun { 67 TextRun(); 68 ~TextRun(); 92 std::vector<TextRun> runs_;
|
render_text_win.cc | 137 Range CharRangeToGlyphRange(const internal::TextRun& run, 165 // TextRun::logical_clusters might help. 170 const internal::TextRun& run, 231 const ScopedVector<internal::TextRun>& runs) { 238 internal::TextRun* run = runs[segment->run]; 270 TextRun::TextRun() 283 TextRun::~TextRun() { 289 int GetGlyphXBoundary(const internal::TextRun* run [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/fonts/win/ |
UniscribeHelperTextRun.h | 40 class TextRun; 47 UniscribeHelperTextRun(const TextRun&, const Font&); 52 // ("TryToPreloadFont") if the caller does not have a TextRun/Font.
|
/external/chromium_org/third_party/WebKit/Source/platform/fonts/ |
WidthIterator.h | 28 #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; } 71 const TextRun& m_run;
|
Font.h | 56 class TextRun; 104 float width(const TextRun&, HashSet<const SimpleFontData*>* fallbackFonts = 0, GlyphOverflow* = 0) const; 105 float width(const TextRun&, int& charsConsumed, String& glyphName) const; 107 PassOwnPtr<TextLayout> createLayoutForMacComplexText(const TextRun&, unsigned textLength, float xPos, bool collapseWhiteSpace) const; 111 int offsetForPosition(const TextRun&, float position, bool includePartialGlyphs) const; 112 FloatRect selectionRectForText(const TextRun&, const FloatPoint&, int h, int from = 0, int to = -1) const; 166 CodePath codePath(const TextRun&) const; 174 float getGlyphsAndAdvancesForSimpleText(const TextRun&, int from, int to, GlyphBuffer&, ForTextEmphasisOrNot = NotForTextEmphasis) const; 180 float floatWidthForSimpleText(const TextRun&, HashSet<const SimpleFontData*>* fallbackFonts = 0, GlyphOverflow* = 0) const; 181 int offsetForPositionForSimpleText(const TextRun&, float position, bool includePartialGlyphs) const [all...] |
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
RenderBlockFlow.h | 127 static TextRun constructTextRun(RenderObject* context, const Font&, const String&, RenderStyle*, 128 TextRun::ExpansionBehavior = TextRun::AllowTrailingExpansion | TextRun::ForbidLeadingExpansion, TextRunFlags = DefaultTextRunFlags); 130 static TextRun constructTextRun(RenderObject* context, const Font&, const RenderText*, RenderStyle*, 131 TextRun::ExpansionBehavior = TextRun::AllowTrailingExpansion | TextRun::ForbidLeadingExpansion); 133 static TextRun constructTextRun(RenderObject* context, const Font&, const RenderText*, unsigned offset, unsigned length, RenderStyle*, 134 TextRun::ExpansionBehavior = TextRun::AllowTrailingExpansion | TextRun::ForbidLeadingExpansion) [all...] |
InlineTextBox.h | 29 #include "platform/text/TextRun.h" 108 // charactersWithHyphen, if provided, must not be destroyed before the TextRun. 109 TextRun constructTextRun(RenderStyle*, const Font&, StringBuilder* charactersWithHyphen = 0) const; 110 TextRun constructTextRun(RenderStyle*, const Font&, StringView, int maximumLength, StringBuilder* charactersWithHyphen = 0) const; 113 TextRun constructTextRunForInspector(RenderStyle*, const Font&) const; 189 TextRun::ExpansionBehavior expansionBehavior() const 191 return (canHaveLeadingExpansion() ? TextRun::AllowLeadingExpansion : TextRun::ForbidLeadingExpansion) 192 | (expansion() && nextLeafChild() ? TextRun::AllowTrailingExpansion : TextRun::ForbidTrailingExpansion) [all...] |
RenderEmbeddedObject.h | 31 class TextRun; 76 bool getReplacementTextGeometry(const LayoutPoint& accumulatedOffset, FloatRect& contentRect, Path&, FloatRect& replacementTextRect, Font&, TextRun&, float& textWidth) const;
|
EllipsisBox.cpp | 32 #include "platform/text/TextRun.h" 84 TextRun textRun = RenderBlockFlow::constructTextRun(renderer(), font, m_str, style, TextRun::AllowTrailingExpansion); 85 TextRunPaintInfo textRunPaintInfo(textRun); 135 return enclosingIntRect(font.selectionRectForText(RenderBlockFlow::constructTextRun(renderer(), font, m_str, style, TextRun::AllowTrailingExpansion), IntPoint(logicalLeft(), logicalTop() + root()->selectionTopAdjustedForPrecedingBlock()), root()->selectionHeightAdjustedForPrecedingBlock())); 160 context->drawHighlightForText(font, RenderBlockFlow::constructTextRun(renderer(), font, m_str, style, TextRun::AllowTrailingExpansion), localOrigin, h, c);
|
RenderFileUploadControl.cpp | 36 #include "platform/text/TextRun.h" 108 TextRun textRun = constructTextRun(this, font, displayedFilename, style(), TextRun::AllowTrailingExpansion, RespectDirection | RespectDirectionOverride); 109 textRun.disableRoundingHacks(); 119 float textWidth = font.width(textRun); 133 TextRunPaintInfo textRunPaintInfo(textRun); 158 float minDefaultLabelWidth = defaultWidthNumChars * font.width(constructTextRun(renderer, font, characterAsString, style(), TextRun::AllowTrailingExpansion)); 161 float defaultLabelWidth = font.width(constructTextRun(renderer, font, label, style(), TextRun::AllowTrailingExpansion));
|
/external/chromium_org/third_party/WebKit/Source/platform/fonts/mac/ |
ComplexTextController.h | 46 class TextRun; 54 ComplexTextController(const Font*, const TextRun&, bool mayUseNaturalWritingDirection = false, HashSet<const SimpleFontData*>* fallbackFonts = 0, bool forTextEmphasis = false); 142 const TextRun& m_run;
|
/external/chromium_org/third_party/WebKit/Source/platform/fonts/harfbuzz/ |
HarfBuzzShaper.h | 37 #include "platform/text/TextRun.h" 56 HarfBuzzShaper(const Font*, const TextRun&); 116 // setPadding sets a number of pixels to be distributed across the TextRun. 136 const TextRun& m_run;
|
/external/chromium_org/third_party/WebKit/Source/core/platform/ |
DragImage.cpp | 43 #include "platform/text/TextRun.h" 139 TextRun labelRun(label.impl()); 140 TextRun urlRun(urlString.impl()); 182 TextRun textRun(urlString); 183 buffer->context()->drawText(urlFont, TextRunPaintInfo(textRun), textPos); 190 TextRun textRun(label); 191 buffer->context()->drawText(urlFont, TextRunPaintInfo(textRun), textPos);
|