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

Side by Side Diff: Source/core/rendering/RenderQuote.cpp

Issue 16896019: Replace RenderArena with PartitionAlloc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
OLDNEW
1 /** 1 /**
2 * Copyright (C) 2011 Nokia Inc. All rights reserved. 2 * Copyright (C) 2011 Nokia Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google Inc. All rights 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 { 259 {
260 String text = computeText(); 260 String text = computeText();
261 if (m_text == text) 261 if (m_text == text)
262 return; 262 return;
263 263
264 m_text = text; 264 m_text = text;
265 265
266 while (RenderObject* child = lastChild()) 266 while (RenderObject* child = lastChild())
267 child->destroy(); 267 child->destroy();
268 268
269 RenderTextFragment* fragment = new (renderArena()) RenderTextFragment(docume nt(), m_text.impl()); 269 RenderTextFragment* fragment = new RenderTextFragment(document(), m_text.imp l());
270 fragment->setStyle(style()); 270 fragment->setStyle(style());
271 addChild(fragment); 271 addChild(fragment);
272 } 272 }
273 273
274 String RenderQuote::computeText() const 274 String RenderQuote::computeText() const
275 { 275 {
276 switch (m_type) { 276 switch (m_type) {
277 case NO_OPEN_QUOTE: 277 case NO_OPEN_QUOTE:
278 case NO_CLOSE_QUOTE: 278 case NO_CLOSE_QUOTE:
279 return emptyString(); 279 return emptyString();
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 if (m_depth) 379 if (m_depth)
380 m_depth--; 380 m_depth--;
381 break; 381 break;
382 } 382 }
383 } 383 }
384 if (oldDepth != m_depth) 384 if (oldDepth != m_depth)
385 updateText(); 385 updateText();
386 } 386 }
387 387
388 } // namespace WebCore 388 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698