/external/chromium/chrome/browser/ui/gtk/ |
H A D | tab_contents_container_gtk.cc | 231 bool ltr = !base::i18n::IsRTL(); local 235 if (ltr ^ status->flip_horizontally()) // Is it on the left?
|
H A D | rounded_window.cc | 68 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 D | status_bubble_gtk.cc | 184 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 D | find_bar_gtk.cc | 86 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 D | gtk_util.cc | 767 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 D | ComplexTextControllerCoreText.cpp | 78 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 D | ComplexTextController.h | 78 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 D | ComplexTextControllerATSUI.cpp | 144 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 D | ComplexTextController.cpp | 78 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 D | RenderMarquee.cpp | 117 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 D | InlineBox.cpp | 269 bool InlineBox::canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWidth) argument 276 IntRect ellipsisRect(ltr ? blockEdge - ellipsisWidth : blockEdge, 0, ellipsisWidth, 10);
|
H A D | RootInlineBox.cpp | 90 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 D | InlineFlowBox.cpp | 298 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 D | InlineTextBox.cpp | 264 bool ltr = isLeftToRightDirection(); local 265 if (ltr != flowIsLTR) { 268 ellipsisX = ltr ? m_x + visibleBoxWidth : m_x + m_logicalWidth - visibleBoxWidth;
|
H A D | RenderBlockLineLayout.cpp | 1394 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 D | RenderBox.cpp | 2416 * 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 D | RenderBlock.cpp | 3073 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 D | TextRun.h | 104 bool ltr() const { return !m_rtl; } function in class:WebCore::TextRun
|
/external/chromium/chrome/browser/autocomplete/ |
H A D | autocomplete_popup_view_gtk.cc | 574 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 D | policydb.c | 1214 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...] |