| OLD | NEW |
| 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 object = object->parent(); | 437 object = object->parent(); |
| 438 } | 438 } |
| 439 return count; | 439 return count; |
| 440 } | 440 } |
| 441 | 441 |
| 442 // FIXME: This belongs on InlineBidiResolver, except it's a template specializat
ion | 442 // FIXME: This belongs on InlineBidiResolver, except it's a template specializat
ion |
| 443 // of BidiResolver which knows nothing about RenderObjects. | 443 // of BidiResolver which knows nothing about RenderObjects. |
| 444 static inline void addPlaceholderRunForIsolatedInline(InlineBidiResolver& resolv
er, RenderObject* obj, unsigned pos) | 444 static inline void addPlaceholderRunForIsolatedInline(InlineBidiResolver& resolv
er, RenderObject* obj, unsigned pos) |
| 445 { | 445 { |
| 446 ASSERT(obj); | 446 ASSERT(obj); |
| 447 BidiRun* isolatedRun = new (obj->renderArena()) BidiRun(pos, 0, obj, resolve
r.context(), resolver.dir()); | 447 BidiRun* isolatedRun = new BidiRun(pos, 0, obj, resolver.context(), resolver
.dir()); |
| 448 resolver.runs().addRun(isolatedRun); | 448 resolver.runs().addRun(isolatedRun); |
| 449 // FIXME: isolatedRuns() could be a hash of object->run and then we could ch
eaply | 449 // FIXME: isolatedRuns() could be a hash of object->run and then we could ch
eaply |
| 450 // ASSERT here that we didn't create multiple objects for the same inline. | 450 // ASSERT here that we didn't create multiple objects for the same inline. |
| 451 resolver.isolatedRuns().append(isolatedRun); | 451 resolver.isolatedRuns().append(isolatedRun); |
| 452 } | 452 } |
| 453 | 453 |
| 454 class IsolateTracker { | 454 class IsolateTracker { |
| 455 public: | 455 public: |
| 456 explicit IsolateTracker(unsigned nestedIsolateCount) | 456 explicit IsolateTracker(unsigned nestedIsolateCount) |
| 457 : m_nestedIsolateCount(nestedIsolateCount) | 457 : m_nestedIsolateCount(nestedIsolateCount) |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 m_sor = m_eor; | 537 m_sor = m_eor; |
| 538 } | 538 } |
| 539 | 539 |
| 540 m_direction = WTF::Unicode::OtherNeutral; | 540 m_direction = WTF::Unicode::OtherNeutral; |
| 541 m_status.eor = WTF::Unicode::OtherNeutral; | 541 m_status.eor = WTF::Unicode::OtherNeutral; |
| 542 } | 542 } |
| 543 | 543 |
| 544 } | 544 } |
| 545 | 545 |
| 546 #endif // InlineIterator_h | 546 #endif // InlineIterator_h |
| OLD | NEW |