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

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

Issue 23456046: Implement unicode bidi P2 and P3 rules in BidiResolver (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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, 2009, 2010 Apple Inc. All right r eserved. 3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010 Apple Inc. All right r eserved.
4 * Copyright (C) 2010 Google Inc. All rights reserved. 4 * Copyright (C) 2010 Google Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } 71 }
72 72
73 RenderObject* object() const { return m_obj; } 73 RenderObject* object() const { return m_obj; }
74 unsigned offset() const { return m_pos; } 74 unsigned offset() const { return m_pos; }
75 RenderObject* root() const { return m_root; } 75 RenderObject* root() const { return m_root; }
76 76
77 void fastIncrementInTextNode(); 77 void fastIncrementInTextNode();
78 void increment(InlineBidiResolver* = 0, IncrementRule = FastIncrementInTextN ode); 78 void increment(InlineBidiResolver* = 0, IncrementRule = FastIncrementInTextN ode);
79 bool atEnd() const; 79 bool atEnd() const;
80 80
81 inline bool atTextParagraphSeparator() 81 inline bool atTextParagraphSeparator() const
82 { 82 {
83 return m_obj && m_obj->preservesNewline() && m_obj->isText() && toRender Text(m_obj)->textLength() 83 return m_obj && m_obj->preservesNewline() && m_obj->isText() && toRender Text(m_obj)->textLength()
84 && !toRenderText(m_obj)->isWordBreak() && toRenderText(m_obj)->chara cterAt(m_pos) == '\n'; 84 && !toRenderText(m_obj)->isWordBreak() && toRenderText(m_obj)->chara cterAt(m_pos) == '\n';
85 } 85 }
86 86
87 inline bool atParagraphSeparator() 87 inline bool atParagraphSeparator() const
88 { 88 {
89 return (m_obj && m_obj->isBR()) || atTextParagraphSeparator(); 89 return (m_obj && m_obj->isBR()) || atTextParagraphSeparator();
90 } 90 }
91 91
92 UChar characterAt(unsigned) const; 92 UChar characterAt(unsigned) const;
93 UChar current() const; 93 UChar current() const;
94 UChar previousInSameNode() const; 94 UChar previousInSameNode() const;
95 ALWAYS_INLINE WTF::Unicode::Direction direction() const; 95 ALWAYS_INLINE WTF::Unicode::Direction direction() const;
96 96
97 private: 97 private:
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 m_sor = m_eor; 562 m_sor = m_eor;
563 } 563 }
564 564
565 m_direction = WTF::Unicode::OtherNeutral; 565 m_direction = WTF::Unicode::OtherNeutral;
566 m_status.eor = WTF::Unicode::OtherNeutral; 566 m_status.eor = WTF::Unicode::OtherNeutral;
567 } 567 }
568 568
569 } 569 }
570 570
571 #endif // InlineIterator_h 571 #endif // InlineIterator_h
OLDNEW
« no previous file with comments | « Source/core/platform/text/BidiResolver.h ('k') | Source/core/rendering/RenderBlockLineLayout.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698