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

Side by Side Diff: third_party/WebKit/Source/platform/text/BidiCharacterRun.h

Issue 2385283002: reflow comments in platform/{testing,text} (Closed)
Patch Set: idunnolol Created 4 years, 2 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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2006, 2007, 2008 Apple Inc. All right reserved. 3 * Copyright (C) 2003, 2004, 2006, 2007, 2008 Apple Inc. All right reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 return m_level % 2 && !visuallyOrdered; 68 return m_level % 2 && !visuallyOrdered;
69 } 69 }
70 bool dirOverride(bool visuallyOrdered) { 70 bool dirOverride(bool visuallyOrdered) {
71 return m_override || visuallyOrdered; 71 return m_override || visuallyOrdered;
72 } 72 }
73 TextDirection direction() const { return reversed(false) ? RTL : LTR; } 73 TextDirection direction() const { return reversed(false) ? RTL : LTR; }
74 74
75 BidiCharacterRun* next() const { return m_next; } 75 BidiCharacterRun* next() const { return m_next; }
76 void setNext(BidiCharacterRun* next) { m_next = next; } 76 void setNext(BidiCharacterRun* next) { m_next = next; }
77 77
78 // Do not add anything apart from bitfields until after m_next. See https://bu gs.webkit.org/show_bug.cgi?id=100173 78 // Do not add anything apart from bitfields until after m_next. See
79 // https://bugs.webkit.org/show_bug.cgi?id=100173
79 bool m_override : 1; 80 bool m_override : 1;
80 bool 81 // Used by BidiRun subclass which is a layering violation but enables us to
81 m_hasHyphen : 1; // Used by BidiRun subclass which is a layering violatio n but enables us to save 8 bytes per object on 64-bit. 82 // save 8 bytes per object on 64-bit.
83 bool m_hasHyphen : 1;
82 unsigned char m_level; 84 unsigned char m_level;
83 BidiCharacterRun* m_next; 85 BidiCharacterRun* m_next;
84 int m_start; 86 int m_start;
85 int m_stop; 87 int m_stop;
86 }; 88 };
87 89
88 } // namespace blink 90 } // namespace blink
89 91
90 #endif // BidiCharacterRun_h 92 #endif // BidiCharacterRun_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/testing/UnitTestHelpers.h ('k') | third_party/WebKit/Source/platform/text/BidiContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698