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

Side by Side Diff: Source/core/rendering/InlineBox.h

Issue 257763004: Removed parameter that is always true. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | Source/core/rendering/InlineTextBox.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All r ights reserved. 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All r ights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 unsigned char bidiLevel() const { return m_bitfields.bidiEmbeddingLevel(); } 250 unsigned char bidiLevel() const { return m_bitfields.bidiEmbeddingLevel(); }
251 void setBidiLevel(unsigned char level) { m_bitfields.setBidiEmbeddingLevel(l evel); } 251 void setBidiLevel(unsigned char level) { m_bitfields.setBidiEmbeddingLevel(l evel); }
252 TextDirection direction() const { return bidiLevel() % 2 ? RTL : LTR; } 252 TextDirection direction() const { return bidiLevel() % 2 ? RTL : LTR; }
253 bool isLeftToRightDirection() const { return direction() == LTR; } 253 bool isLeftToRightDirection() const { return direction() == LTR; }
254 int caretLeftmostOffset() const { return isLeftToRightDirection() ? caretMin Offset() : caretMaxOffset(); } 254 int caretLeftmostOffset() const { return isLeftToRightDirection() ? caretMin Offset() : caretMaxOffset(); }
255 int caretRightmostOffset() const { return isLeftToRightDirection() ? caretMa xOffset() : caretMinOffset(); } 255 int caretRightmostOffset() const { return isLeftToRightDirection() ? caretMa xOffset() : caretMinOffset(); }
256 256
257 virtual void clearTruncation() { } 257 virtual void clearTruncation() { }
258 258
259 bool isDirty() const { return m_bitfields.dirty(); } 259 bool isDirty() const { return m_bitfields.dirty(); }
260 virtual void markDirty(bool dirty = true) { m_bitfields.setDirty(dirty); } 260 virtual void markDirty() { m_bitfields.setDirty(true); }
261 261
262 virtual void dirtyLineBoxes(); 262 virtual void dirtyLineBoxes();
263 263
264 virtual RenderObject::SelectionState selectionState(); 264 virtual RenderObject::SelectionState selectionState();
265 265
266 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWid th) const; 266 virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWid th) const;
267 // visibleLeftEdge, visibleRightEdge are in the parent's coordinate system. 267 // visibleLeftEdge, visibleRightEdge are in the parent's coordinate system.
268 virtual float placeEllipsisBox(bool ltr, float visibleLeftEdge, float visibl eRightEdge, float ellipsisWidth, float &truncatedWidth, bool&); 268 virtual float placeEllipsisBox(bool ltr, float visibleLeftEdge, float visibl eRightEdge, float ellipsisWidth, float &truncatedWidth, bool&);
269 269
270 #ifndef NDEBUG 270 #ifndef NDEBUG
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 445
446 } // namespace WebCore 446 } // namespace WebCore
447 447
448 #ifndef NDEBUG 448 #ifndef NDEBUG
449 // Outside the WebCore namespace for ease of invocation from gdb. 449 // Outside the WebCore namespace for ease of invocation from gdb.
450 void showTree(const WebCore::InlineBox*); 450 void showTree(const WebCore::InlineBox*);
451 void showLineTree(const WebCore::InlineBox*); 451 void showLineTree(const WebCore::InlineBox*);
452 #endif 452 #endif
453 453
454 #endif // InlineBox_h 454 #endif // InlineBox_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/InlineTextBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698