Searched defs:ltr (Results 1 - 20 of 20) sorted by relevance

/external/chromium/chrome/browser/ui/gtk/
H A Dtab_contents_container_gtk.cc231 bool ltr = !base::i18n::IsRTL(); local
235 if (ltr ^ status->flip_horizontally()) // Is it on the left?
H A Drounded_window.cc68 bool ltr = !base::i18n::IsRTL(); local
72 // right for ltr).
75 int x_off_l = ltr ? y_off : 0;
77 int x_off_r = !ltr ? -y_off : 0;
96 height - (corner_size - y) + y_off, width, ltr));
100 height - (corner_size - y) + y_off, width, ltr));
104 corner_size + x_off_l, height + y_off, width, ltr));
106 x_off_r, height - corner_size, width, ltr));
109 points.push_back(MakeBidiGdkPoint(x_off_r, height + y_off, width, ltr));
122 corner_size - y, width, ltr));
[all...]
H A Dstatus_bubble_gtk.cc184 bool ltr = !base::i18n::IsRTL();
197 (ltr ? 0 : parent->allocation.width - requisition.width),
209 if (((ltr && location.x() < right_threshold) ||
210 (!ltr && location.x() > left_threshold)) &&
217 int distance = std::max(ltr ?
246 bool ltr = !base::i18n::IsRTL(); local
253 kInternalLeftRightPadding + (ltr ? 0 : kCornerSize),
254 kInternalLeftRightPadding + (ltr ? kCornerSize : 0));
307 bool ltr = !base::i18n::IsRTL(); local
308 bool on_left = (ltr
[all...]
H A Dfind_bar_gtk.cc86 bool ltr = !base::i18n::IsRTL(); local
90 // right for ltr).
93 int x_off_l = ltr ? y_off : 0;
95 int x_off_r = !ltr ? -y_off : 0;
98 points.push_back(MakeBidiGdkPoint(x_off_r, 0, width, ltr));
100 kCornerSize + x_off_r, kCornerSize, width, ltr));
104 kCornerSize + x_off_r, height - kCornerSize, width, ltr));
107 width, ltr));
112 width, ltr));
114 width - kCornerSize + x_off_l, height - kCornerSize, width, ltr));
421 bool ltr = !base::i18n::IsRTL(); local
[all...]
H A Dgtk_util.cc767 GdkPoint MakeBidiGdkPoint(gint x, gint y, gint width, bool ltr) { argument
768 GdkPoint point = {ltr ? x : width - x, y};
/external/webkit/Source/WebCore/platform/graphics/mac/
H A DComplexTextControllerCoreText.cpp78 void ComplexTextController::ComplexTextRun::createTextRunFromFontDataCoreText(bool ltr) argument
93 if (!ltr) {
127 m_complexTextRuns.append(ComplexTextRun::create(m_font.primaryFont(), cp, stringLocation, length, m_run.ltr()));
147 RetainPtr<CTTypesetterRef> typesetter(AdoptCF, wkCreateCTTypesetterWithUniCharProviderAndOptions(&provideStringAndAttributes, 0, &info, m_run.ltr() ? ltrTypesetterOptions : rtlTypesetterOptions));
151 RetainPtr<CTTypesetterRef> typesetter(AdoptCF, CTTypesetterCreateWithAttributedStringAndOptions(attributedString.get(), m_run.ltr() ? ltrTypesetterOptions : rtlTypesetterOptions));
H A DComplexTextController.h78 static PassRefPtr<ComplexTextRun> create(ATSUTextLayout atsuTextLayout, const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr, bool directionalOverride) argument
80 return adoptRef(new ComplexTextRun(atsuTextLayout, fontData, characters, stringLocation, stringLength, ltr, directionalOverride));
83 static PassRefPtr<ComplexTextRun> create(const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr) argument
85 return adoptRef(new ComplexTextRun(fontData, characters, stringLocation, stringLength, ltr));
104 void createTextRunFromFontDataCoreText(bool ltr);
107 ComplexTextRun(ATSUTextLayout, const SimpleFontData*, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr, bool directionalOverride);
108 void createTextRunFromFontDataATSUI(bool ltr);
110 ComplexTextRun(const SimpleFontData*, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr);
H A DComplexTextControllerATSUI.cpp144 ComplexTextController::ComplexTextRun::ComplexTextRun(ATSUTextLayout atsuTextLayout, const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr, bool directionalOverride) argument
159 Boolean rtl = !ltr;
162 bool shouldCheckForMirroring = !ltr && !fontData->m_ATSUMirrors;
194 UChar override = ltr ? leftToRightOverride : rightToLeftOverride;
224 void ComplexTextController::ComplexTextRun::createTextRunFromFontDataATSUI(bool ltr) argument
239 if (!ltr) {
319 m_complexTextRuns.append(ComplexTextRun::create(m_font.primaryFont(), cp, stringLocation, length, m_run.ltr()));
337 m_complexTextRuns.append(ComplexTextRun::create(atsuTextLayout, fontData, cp, stringLocation, length, m_run.ltr(), m_run.directionalOverride()));
H A DComplexTextController.cpp78 unsigned expansionOpportunityCount = Font::expansionOpportunityCount(m_run.characters(), m_end, m_run.ltr() ? LTR : RTL, isAfterExpansion);
97 return m_run.ltr() ? m_end : 0;
101 return m_run.ltr() ? 0 : m_end;
115 if (m_run.ltr())
123 CFIndex hitIndex = hitGlyphStart + (hitGlyphEnd - hitGlyphStart) * (m_run.ltr() ? x / adjustedAdvance : 1 - x / adjustedAdvance);
162 x -= clusterWidth * (m_run.ltr() ? hitIndex - hitGlyphStart : hitGlyphEnd - hitIndex - 1);
165 return complexTextRun.stringLocation() + (m_run.ltr() ? clusterStart : clusterEnd);
167 return complexTextRun.stringLocation() + (m_run.ltr() ? clusterEnd : clusterStart);
198 if (m_run.ltr()) {
230 if (m_run.ltr()) {
304 ComplexTextRun(const SimpleFontData* fontData, const UChar* characters, unsigned stringLocation, size_t stringLength, bool ltr) argument
357 bool ltr = m_run.ltr(); local
[all...]
/external/webkit/Source/WebCore/rendering/
H A DRenderMarquee.cpp117 bool ltr = s->isLeftToRightDirection(); local
119 int contentWidth = ltr ? box->maxXLayoutOverflow() : box->minXLayoutOverflow();
120 if (ltr)
128 return max(0, ltr ? (contentWidth - clientWidth) : (clientWidth - contentWidth));
130 return ltr ? contentWidth : clientWidth;
134 return min(0, ltr ? (contentWidth - clientWidth) : (clientWidth - contentWidth));
136 return ltr ? -clientWidth : -contentWidth;
H A DInlineBox.cpp269 bool InlineBox::canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWidth) argument
276 IntRect ellipsisRect(ltr ? blockEdge - ellipsisWidth : blockEdge, 0, ellipsisWidth, 10);
H A DRootInlineBox.cpp90 bool RootInlineBox::lineCanAccommodateEllipsis(bool ltr, int blockEdge, int lineBoxEdge, int ellipsisWidth) argument
93 int delta = ltr ? lineBoxEdge - blockEdge : blockEdge - lineBoxEdge;
99 return InlineFlowBox::canAccommodateEllipsis(ltr, blockEdge, ellipsisWidth);
102 void RootInlineBox::placeEllipsis(const AtomicString& ellipsisStr, bool ltr, float blockLeftEdge, float blockRightEdge, float ellipsisWidth, argument
116 if (ltr && (x() + logicalWidth() + ellipsisWidth) <= blockRightEdge) {
125 ellipsisBox->m_x = placeEllipsisBox(ltr, blockLeftEdge, blockRightEdge, ellipsisWidth, foundBox);
128 float RootInlineBox::placeEllipsisBox(bool ltr, float blockLeftEdge, float blockRightEdge, float ellipsisWidth, bool& foundBox) argument
130 float result = InlineFlowBox::placeEllipsisBox(ltr, blockLeftEdge, blockRightEdge, ellipsisWidth, foundBox);
132 result = ltr ? blockRightEdge - ellipsisWidth : blockLeftEdge;
H A DInlineFlowBox.cpp298 bool ltr = renderer()->style()->isLeftToRightDirection(); local
304 if (ltr && lineBoxList->firstLineBox() == this)
306 else if (!ltr && lineBoxList->lastLineBox() == this)
319 if (ltr) {
1261 bool InlineFlowBox::canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWidth) argument
1264 if (!box->canAccommodateEllipsis(ltr, blockEdge, ellipsisWidth))
1270 float InlineFlowBox::placeEllipsisBox(bool ltr, float blockLeftEdge, float blockRightEdge, float ellipsisWidth, bool& foundBox) argument
1275 // If our flow is ltr then iterate over the boxes from left to right, otherwise iterate
1277 InlineBox* box = ltr ? firstChild() : lastChild();
1284 int currResult = box->placeEllipsisBox(ltr, visibleLeftEdg
[all...]
H A DInlineTextBox.cpp264 bool ltr = isLeftToRightDirection(); local
265 if (ltr != flowIsLTR) {
268 ellipsisX = ltr ? m_x + visibleBoxWidth : m_x + m_logicalWidth - visibleBoxWidth;
H A DRenderBlockLineLayout.cpp1394 bool ltr = style()->isLeftToRightDirection(); local
1395 Direction direction = ltr ? LeftToRight : RightToLeft;
1399 resolver.setContext(BidiContext::create(ltr ? 0 : 1, direction, style()->unicodeBidi() == Override, FromStyleOrDOM));
2450 bool ltr = style()->isLeftToRightDirection(); local
2454 int lineBoxEdge = ltr ? curr->x() + curr->logicalWidth() : curr->x();
2455 if ((ltr && lineBoxEdge > blockRightEdge) || (!ltr && lineBoxEdge < blockLeftEdge)) {
2461 int blockEdge = ltr ? blockRightEdge : blockLeftEdge;
2462 if (curr->lineCanAccommodateEllipsis(ltr, blockEdge, lineBoxEdge, width))
2463 curr->placeEllipsis(ellipsisStr, ltr, blockLeftEdg
[all...]
H A DRenderBox.cpp2416 * in which case when direction of the containing block is 'ltr' ('rtl'),
2421 * containing block is 'rtl') or 'right' (in case 'direction' is 'ltr')
2476 * the 'direction' property of the containing block is 'ltr' set
2479 * or 'right' (if 'direction' is 'ltr').
2869 * of the containing block is 'ltr', set 'left' to the static position;
2890 * in which case when the direction of the containing block is 'ltr'
2963 * 'ltr') and solve for that value.
3134 bool ltr = box ? box->isLeftToRightDirection() : style()->isLeftToRightDirection(); local
3136 if ((!caretOffset) ^ ltr)
H A DRenderBlock.cpp3073 bool ltr = style()->isLeftToRightDirection(); local
3075 (state == RenderObject::SelectionEnd && ltr) ||
3076 (state == RenderObject::SelectionStart && !ltr);
3078 (state == RenderObject::SelectionStart && ltr) ||
3079 (state == RenderObject::SelectionEnd && !ltr);
5105 bool ltr = containingBlock()->style()->isLeftToRightDirection(); local
5106 int marginLogicalLeft = ltr ? marginStart : marginEnd;
5107 int marginLogicalRight = ltr ? marginEnd : marginStart;
/external/webkit/Source/WebCore/platform/graphics/
H A DTextRun.h104 bool ltr() const { return !m_rtl; } function in class:WebCore::TextRun
/external/chromium/chrome/browser/autocomplete/
H A Dautocomplete_popup_view_gtk.cc574 bool ltr = !base::i18n::IsRTL(); local
622 int icon_start_x = ltr ? kIconLeftPadding :
660 ltr ? kIconAreaWidth :
681 gdk_draw_layout(drawable, gc, ltr ?
/external/libsepol/src/
H A Dpolicydb.c1214 role_trans_t *tr, *ltr = NULL; local
1275 if (ltr)
1276 free(ltr);
1277 ltr = tr;
1279 if (ltr)
1280 free(ltr);
2252 role_trans_t *tr, *ltr; local
2261 ltr = NULL;
2267 if (ltr) {
2268 ltr
3103 role_trans_rule_t *tr, *ltr; local
[all...]

Completed in 522 milliseconds