Searched refs:ltr (Results 1 - 21 of 21) sorted by relevance

/external/webkit/WebCore/platform/graphics/mac/
H A DComplexTextController.h75 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 DComplexTextController.cpp95 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...]
H A DComplexTextControllerCoreText.cpp78 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 DComplexTextControllerATSUI.cpp143 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()));
/external/webkit/WebCore/rendering/
H A DRenderMarquee.cpp113 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 DRootInlineBox.cpp71 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 DRootInlineBox.h88 bool canAccommodateEllipsis(bool ltr, int blockEdge, int lineBoxEdge, int ellipsisWidth);
89 void placeEllipsis(const AtomicString& ellipsisStr, bool ltr, int blockLeftEdge, int blockRightEdge, int ellipsisWidth, InlineBox* markupBox = 0);
90 virtual int placeEllipsisBox(bool ltr, int blockLeftEdge, int blockRightEdge, int ellipsisWidth, bool& foundBox);
H A DInlineFlowBox.cpp210 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 DInlineBox.cpp265 bool InlineBox::canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWidth) argument
272 IntRect ellipsisRect(ltr ? blockEdge - ellipsisWidth : blockEdge, 0, ellipsisWidth, 10);
H A DInlineBox.h230 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWidth);
232 virtual int placeEllipsisBox(bool ltr, int visibleLeftEdge, int visibleRightEdge, int ellipsisWidth, bool&);
H A DInlineFlowBox.h135 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWidth);
136 virtual int placeEllipsisBox(bool ltr, int blockLeftEdge, int blockRightEdge, int ellipsisWidth, bool&);
H A DRenderFlexibleBox.cpp749 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 DRenderBlockLineLayout.cpp1088 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 DInlineTextBox.cpp180 bool ltr = direction() == LTR; local
181 if (ltr != flowIsLTR) {
184 ellipsisX = ltr ? m_x + visibleBoxWidth : m_x + m_width - visibleBoxWidth;
H A DRenderLayer.cpp1813 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 DRenderBlock.cpp2236 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 DTextRun.h86 bool ltr() const { return !m_rtl; } function in class:WebCore::TextRun
H A DGraphicsContext.cpp347 WTF::Unicode::Direction paragraphDirection = run.ltr() ? WTF::Unicode::LeftToRight : WTF::Unicode::RightToLeft;
349 bidiResolver.setStatus(BidiStatus(paragraphDirection, paragraphDirection, paragraphDirection, BidiContext::create(run.ltr() ? 0 : 1, paragraphDirection, run.directionalOverride())));
/external/webkit/WebCore/platform/graphics/gtk/
H A DFontGtk.cpp342 if (run.ltr()) {
359 if (run.ltr() || to < layoutLine->length)
/external/webkit/WebCore/platform/
H A DContextMenu.cpp180 ContextMenuItem ltr(CheckableActionType, ContextMenuItemTagLeftToRight, contextMenuItemTagLeftToRight());
184 writingDirectionMenu.appendItem(ltr);
195 ContextMenuItem ltr(CheckableActionType, ContextMenuItemTagTextDirectionLeftToRight, contextMenuItemTagLeftToRight());
199 textDirectionMenu.appendItem(ltr);
583 String direction = item.action() == ContextMenuItemTagLeftToRight ? "ltr" : "rtl";
/external/webkit/WebCore/platform/graphics/win/
H A DUniscribeController.cpp81 if (m_offsetX >= m_runWidthSoFar && m_run.ltr() || m_offsetX < 0 && m_run.rtl())

Completed in 114 milliseconds