Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: third_party/WebKit/Source/core/layout/line/AbstractInlineTextBox.cpp

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 return 0; 108 return 0;
109 109
110 return m_inlineTextBox->len(); 110 return m_inlineTextBox->len();
111 } 111 }
112 112
113 AbstractInlineTextBox::Direction AbstractInlineTextBox::getDirection() const { 113 AbstractInlineTextBox::Direction AbstractInlineTextBox::getDirection() const {
114 if (!m_inlineTextBox || !m_lineLayoutItem) 114 if (!m_inlineTextBox || !m_lineLayoutItem)
115 return LeftToRight; 115 return LeftToRight;
116 116
117 if (m_lineLayoutItem.style()->isHorizontalWritingMode()) { 117 if (m_lineLayoutItem.style()->isHorizontalWritingMode()) {
118 return (m_inlineTextBox->direction() == TextDirection::Rtl ? RightToLeft 118 return (m_inlineTextBox->direction() == TextDirection::kRtl ? RightToLeft
119 : LeftToRight); 119 : LeftToRight);
120 } 120 }
121 return (m_inlineTextBox->direction() == TextDirection::Rtl ? BottomToTop 121 return (m_inlineTextBox->direction() == TextDirection::kRtl ? BottomToTop
122 : TopToBottom); 122 : TopToBottom);
123 } 123 }
124 124
125 void AbstractInlineTextBox::characterWidths(Vector<float>& widths) const { 125 void AbstractInlineTextBox::characterWidths(Vector<float>& widths) const {
126 if (!m_inlineTextBox) 126 if (!m_inlineTextBox)
127 return; 127 return;
128 128
129 m_inlineTextBox->characterWidths(widths); 129 m_inlineTextBox->characterWidths(widths);
130 } 130 }
131 131
132 void AbstractInlineTextBox::wordBoundaries( 132 void AbstractInlineTextBox::wordBoundaries(
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 InlineBox* previous = m_inlineTextBox->prevOnLine(); 214 InlineBox* previous = m_inlineTextBox->prevOnLine();
215 if (previous && previous->isInlineTextBox()) 215 if (previous && previous->isInlineTextBox())
216 return getOrCreate(toInlineTextBox(previous)->getLineLayoutItem(), 216 return getOrCreate(toInlineTextBox(previous)->getLineLayoutItem(),
217 toInlineTextBox(previous)); 217 toInlineTextBox(previous));
218 218
219 return nullptr; 219 return nullptr;
220 } 220 }
221 221
222 } // namespace blink 222 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698