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

12

/external/chromium/chrome/browser/ui/gtk/
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 Dtab_contents_container_gtk.cc231 bool ltr = !base::i18n::IsRTL(); local
235 if (ltr ^ status->flip_horizontally()) // Is it on the left?
H A Dgtk_util.h239 GdkPoint MakeBidiGdkPoint(gint x, gint y, gint width, bool ltr);
/external/webkit/Source/WebCore/platform/graphics/mac/
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 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...]
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 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()));
/external/chromium-trace/src/shared/css/
H A Dchrome_shared2.css70 direction: ltr;
79 direction: ltr;
97 direction: ltr;
H A Dchrome_shared.css152 direction: ltr;
161 direction: ltr;
179 direction: ltr;
/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 DRootInlineBox.h80 bool lineCanAccommodateEllipsis(bool ltr, int blockEdge, int lineBoxEdge, int ellipsisWidth);
81 void placeEllipsis(const AtomicString& ellipsisStr, bool ltr, float blockLeftEdge, float blockRightEdge, float ellipsisWidth, InlineBox* markupBox = 0);
82 virtual float placeEllipsisBox(bool ltr, float blockLeftEdge, float blockRightEdge, float ellipsisWidth, bool& foundBox);
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 DInlineBox.cpp269 bool InlineBox::canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWidth) argument
276 IntRect ellipsisRect(ltr ? blockEdge - ellipsisWidth : blockEdge, 0, ellipsisWidth, 10);
H A DInlineBox.h291 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWidth);
293 virtual float placeEllipsisBox(bool ltr, float visibleLeftEdge, float visibleRightEdge, float ellipsisWidth, bool&);
H A DInlineFlowBox.h184 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWidth);
185 virtual float placeEllipsisBox(bool ltr, float blockLeftEdge, float blockRightEdge, float ellipsisWidth, bool&);
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...]
/external/chromium/chrome/browser/sync/resources/
H A Dgaia_login.js139 var ltr = templateData['textdirection'] == 'ltr';
141 if (googleIsAtEndOfSentence == ltr) {
142 // We're in ltr and in the translation the word 'Google' is AFTER the
/external/webkit/Source/WebCore/platform/graphics/
H A DTextRun.h104 bool ltr() const { return !m_rtl; } function in class:WebCore::TextRun
H A DWidthIterator.cpp66 unsigned expansionOpportunityCount = Font::expansionOpportunityCount(m_run.characters(), m_end, m_run.ltr() ? LTR : RTL, isAfterExpansion);
179 if (m_run.allowsTrailingExpansion() || (m_run.ltr() && currentCharacter + clusterLength < static_cast<size_t>(m_run.length()))
/external/chromium/chrome/common/extensions/docs/examples/extensions/news/css/
H A Dfeed.css84 direction: ltr;
/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/webkit/Source/WebCore/platform/graphics/gtk/
H A DFontGtk.cpp418 if (run.ltr()) {
435 if (run.ltr() || to < layoutLine->length)
/external/chromium/chrome/browser/resources/options/
H A Dsync_setup_overlay.js45 var ltr = templateData['textdirection'] == 'ltr';
47 if (googleIsAtEndOfSentence == ltr) {
48 // We're in ltr and in the translation the word 'Google' is AFTER the

Completed in 1108 milliseconds

12