/external/webkit/WebCore/platform/graphics/mac/ |
H A D | ComplexTextControllerCoreText.cpp | 78 void ComplexTextController::ComplexTextRun::createTextRunFromFontDataCoreText(bool ltr) argument 93 if (!ltr) { 112 m_complexTextRuns.append(ComplexTextRun::create(m_font.primaryFont(), cp, stringLocation, length, m_run.ltr())); 131 typesetter.adoptCF(CTTypesetterCreateWithAttributedStringAndOptions(attributedString.get(), m_run.ltr() ? ltrTypesetterOptions : rtlTypesetterOptions));
|
H A D | ComplexTextController.h | 75 static PassRefPtr<ComplexTextRun> create(ATSUTextLayout atsuTextLayout, const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr, bool directionalOverride) argument 77 return adoptRef(new ComplexTextRun(atsuTextLayout, fontData, characters, stringLocation, stringLength, ltr, directionalOverride)); 80 static PassRefPtr<ComplexTextRun> create(const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr) argument 82 return adoptRef(new ComplexTextRun(fontData, characters, stringLocation, stringLength, ltr)); 100 void createTextRunFromFontDataCoreText(bool ltr); 103 ComplexTextRun(ATSUTextLayout, const SimpleFontData*, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr, bool directionalOverride); 104 void createTextRunFromFontDataATSUI(bool ltr); 106 ComplexTextRun(const SimpleFontData*, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr);
|
H A D | ComplexTextControllerATSUI.cpp | 143 ComplexTextController::ComplexTextRun::ComplexTextRun(ATSUTextLayout atsuTextLayout, const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr, bool directionalOverride) argument 157 Boolean rtl = !ltr; 160 bool shouldCheckForMirroring = !ltr && !fontData->m_ATSUMirrors; 192 UChar override = ltr ? leftToRightOverride : rightToLeftOverride; 222 void ComplexTextController::ComplexTextRun::createTextRunFromFontDataATSUI(bool ltr) argument 237 if (!ltr) { 317 m_complexTextRuns.append(ComplexTextRun::create(m_font.primaryFont(), cp, stringLocation, length, m_run.ltr())); 335 m_complexTextRuns.append(ComplexTextRun::create(atsuTextLayout, fontData, cp, stringLocation, length, m_run.ltr(), m_run.directionalOverride()));
|
H A D | ComplexTextController.cpp | 95 return m_run.ltr() ? m_end : 0; 97 return m_run.ltr() ? 0 : m_end; 111 if (m_run.ltr()) 119 CFIndex hitIndex = hitGlyphStart + (hitGlyphEnd - hitGlyphStart) * (m_run.ltr() ? x / adjustedAdvance : 1 - x / adjustedAdvance); 158 x -= clusterWidth * (m_run.ltr() ? hitIndex - hitGlyphStart : hitGlyphEnd - hitIndex - 1); 161 return complexTextRun.stringLocation() + (m_run.ltr() ? clusterStart : clusterEnd); 163 return complexTextRun.stringLocation() + (m_run.ltr() ? clusterEnd : clusterStart); 205 if (m_run.ltr()) { 237 if (m_run.ltr()) { 269 if (hasTrailingSoftHyphen && m_run.ltr()) 314 ComplexTextRun(const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr) argument 366 bool ltr = m_run.ltr(); local [all...] |
/external/webkit/WebCore/rendering/ |
H A D | RenderMarquee.cpp | 113 bool ltr = s->direction() == LTR; local 115 int contentWidth = ltr ? box->rightmostPosition(true, false) : box->leftmostPosition(true, false); 116 if (ltr) 124 return max(0, ltr ? (contentWidth - clientWidth) : (clientWidth - contentWidth)); 126 return ltr ? contentWidth : clientWidth; 130 return min(0, ltr ? (contentWidth - clientWidth) : (clientWidth - contentWidth)); 132 return ltr ? -clientWidth : -contentWidth;
|
H A D | InlineBox.cpp | 265 bool InlineBox::canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWidth) argument 272 IntRect ellipsisRect(ltr ? blockEdge - ellipsisWidth : blockEdge, 0, ellipsisWidth, 10);
|
H A D | RenderFlexibleBox.cpp | 749 int ltr = true; local 754 int blockEdge = ltr ? blockRightEdge : blockLeftEdge; 755 if (!lastVisibleLine->canAccommodateEllipsis(ltr, blockEdge, 761 lastVisibleLine->placeEllipsis(anchorBox ? ellipsisAndSpaceStr : ellipsisStr, ltr, blockLeftEdge, blockRightEdge, totalWidth, anchorBox);
|
H A D | RootInlineBox.cpp | 71 bool RootInlineBox::canAccommodateEllipsis(bool ltr, int blockEdge, int lineBoxEdge, int ellipsisWidth) argument 74 int delta = ltr ? lineBoxEdge - blockEdge : blockEdge - lineBoxEdge; 80 return InlineFlowBox::canAccommodateEllipsis(ltr, blockEdge, ellipsisWidth); 83 void RootInlineBox::placeEllipsis(const AtomicString& ellipsisStr, bool ltr, int blockLeftEdge, int blockRightEdge, int ellipsisWidth, argument 98 if (ltr && (x() + width() + ellipsisWidth) <= blockRightEdge) { 107 ellipsisBox->m_x = placeEllipsisBox(ltr, blockLeftEdge, blockRightEdge, ellipsisWidth, foundBox); 110 int RootInlineBox::placeEllipsisBox(bool ltr, int blockLeftEdge, int blockRightEdge, int ellipsisWidth, bool& foundBox) argument 112 int result = InlineFlowBox::placeEllipsisBox(ltr, blockLeftEdge, blockRightEdge, ellipsisWidth, foundBox); 114 result = ltr ? blockRightEdge - ellipsisWidth : blockLeftEdge;
|
H A D | InlineTextBox.cpp | 180 bool ltr = direction() == LTR; local 181 if (ltr != flowIsLTR) { 184 ellipsisX = ltr ? m_x + visibleBoxWidth : m_x + m_width - visibleBoxWidth;
|
H A D | InlineFlowBox.cpp | 210 bool ltr = renderer()->style()->direction() == LTR; local 216 if (ltr && lineBoxList->firstLineBox() == this) 218 else if (!ltr && lineBoxList->lastLineBox() == this) 225 // (2) If the last line box for the flow has an object following it on the line (ltr, 231 if (ltr) { 924 bool ltr = renderer()->style()->direction() == LTR; local 927 // ltr: is our right edge farther right than the right edge of the ellipsis. 929 bool ltrTruncation = ltr && (x + w >= ellipsisX + ellipsisWidth); 930 bool rtlTruncation = !ltr && (x <= ellipsisX + ellipsisWidth); 939 bool ltrPastEllipsis = ltr 1056 canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWidth) argument 1065 placeEllipsisBox(bool ltr, int blockLeftEdge, int blockRightEdge, int ellipsisWidth, bool& foundBox) argument [all...] |
H A D | RenderBlockLineLayout.cpp | 1088 bool ltr = style()->direction() == LTR variable 1094 Direction direction = ltr ? LeftToRight : RightToLeft; 1098 resolver.setContext(BidiContext::create(ltr ? 0 : 1, direction, style()->unicodeBidi() == Override)); 2054 bool ltr = style()->direction() == LTR; local 2058 int lineBoxEdge = ltr ? curr->x() + curr->width() : curr->x(); 2059 if ((ltr && lineBoxEdge > blockRightEdge) || (!ltr && lineBoxEdge < blockLeftEdge)) { 2065 int blockEdge = ltr ? blockRightEdge : blockLeftEdge; 2066 if (curr->canAccommodateEllipsis(ltr, blockEdge, lineBoxEdge, width)) 2067 curr->placeEllipsis(ellipsisStr, ltr, blockLeftEdg [all...] |
H A D | RenderLayer.cpp | 1813 bool ltr = renderer()->style()->direction() == LTR; local 1818 m_scrollLeftOverflow = ltr ? 0 : min(0, box->leftmostPosition(true, false) - box->borderLeft()); 1820 int rightPos = ltr ? 1828 m_scrollOriginX = ltr ? 0 : m_scrollWidth - clientWidth;
|
H A D | RenderBlock.cpp | 2236 bool ltr = style()->direction() == LTR; local 2238 (state == RenderObject::SelectionEnd && ltr) || 2239 (state == RenderObject::SelectionStart && !ltr); 2241 (state == RenderObject::SelectionStart && ltr) || 2242 (state == RenderObject::SelectionEnd && !ltr);
|
/external/webkit/WebCore/platform/graphics/ |
H A D | TextRun.h | 86 bool ltr() const { return !m_rtl; } function in class:WebCore::TextRun
|