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

Side by Side Diff: Source/core/dom/Text.cpp

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/dom/Document.cpp ('k') | Source/core/html/BaseButtonInputType.cpp » ('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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 } 252 }
253 253
254 void Text::createTextRendererIfNeeded() 254 void Text::createTextRendererIfNeeded()
255 { 255 {
256 NodeRenderingContext(this).createRendererForTextIfNeeded(); 256 NodeRenderingContext(this).createRendererForTextIfNeeded();
257 } 257 }
258 258
259 RenderText* Text::createTextRenderer(RenderStyle* style) 259 RenderText* Text::createTextRenderer(RenderStyle* style)
260 { 260 {
261 if (isSVGText(this) || isSVGShadowText(this)) 261 if (isSVGText(this) || isSVGShadowText(this))
262 return new (document()->renderArena()) RenderSVGInlineText(this, dataImp l()); 262 return new RenderSVGInlineText(this, dataImpl());
263 263
264 if (style->hasTextCombine()) 264 if (style->hasTextCombine())
265 return new (document()->renderArena()) RenderCombineText(this, dataImpl( )); 265 return new RenderCombineText(this, dataImpl());
266 266
267 return new (document()->renderArena()) RenderText(this, dataImpl()); 267 return new RenderText(this, dataImpl());
268 } 268 }
269 269
270 void Text::attach(const AttachContext& context) 270 void Text::attach(const AttachContext& context)
271 { 271 {
272 createTextRendererIfNeeded(); 272 createTextRendererIfNeeded();
273 CharacterData::attach(context); 273 CharacterData::attach(context);
274 } 274 }
275 275
276 bool Text::recalcTextStyle(StyleChange change) 276 bool Text::recalcTextStyle(StyleChange change)
277 { 277 {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 result.appendLiteral("; "); 347 result.appendLiteral("; ");
348 result.appendLiteral("value="); 348 result.appendLiteral("value=");
349 result.append(s); 349 result.append(s);
350 } 350 }
351 351
352 strncpy(buffer, result.toString().utf8().data(), length - 1); 352 strncpy(buffer, result.toString().utf8().data(), length - 1);
353 } 353 }
354 #endif 354 #endif
355 355
356 } // namespace WebCore 356 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/html/BaseButtonInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698