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

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

Issue 20231002: Replace RenderArena with PartitionAlloc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/InlineFlowBox.cpp ('k') | 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) 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
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/InlineFlowBox.cpp ('k') | Source/core/rendering/InlineTextBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698