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

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

Issue 211773002: Rename updateStyle to updateRenderTree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix tracing test Created 6 years, 9 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/Node.cpp ('k') | Source/core/editing/ApplyBlockElementCommand.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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 338
339 void Text::updateTextRenderer(unsigned offsetOfReplacedData, unsigned lengthOfRe placedData, RecalcStyleBehavior recalcStyleBehavior) 339 void Text::updateTextRenderer(unsigned offsetOfReplacedData, unsigned lengthOfRe placedData, RecalcStyleBehavior recalcStyleBehavior)
340 { 340 {
341 if (!inActiveDocument()) 341 if (!inActiveDocument())
342 return; 342 return;
343 RenderText* textRenderer = toRenderText(renderer()); 343 RenderText* textRenderer = toRenderText(renderer());
344 if (!textRenderer || !textRendererIsNeeded(*textRenderer->style(), *textRend erer->parent())) { 344 if (!textRenderer || !textRendererIsNeeded(*textRenderer->style(), *textRend erer->parent())) {
345 lazyReattachIfAttached(); 345 lazyReattachIfAttached();
346 // FIXME: Editing should be updated so this is not neccesary. 346 // FIXME: Editing should be updated so this is not neccesary.
347 if (recalcStyleBehavior == DeprecatedRecalcStyleImmediatlelyForEditing) 347 if (recalcStyleBehavior == DeprecatedRecalcStyleImmediatlelyForEditing)
348 document().updateStyleIfNeeded(); 348 document().updateRenderTreeIfNeeded();
349 return; 349 return;
350 } 350 }
351 textRenderer->setTextWithOffset(dataImpl(), offsetOfReplacedData, lengthOfRe placedData); 351 textRenderer->setTextWithOffset(dataImpl(), offsetOfReplacedData, lengthOfRe placedData);
352 } 352 }
353 353
354 PassRefPtr<Text> Text::cloneWithData(const String& data) 354 PassRefPtr<Text> Text::cloneWithData(const String& data)
355 { 355 {
356 return create(document(), data); 356 return create(document(), data);
357 } 357 }
358 358
(...skipping 11 matching lines...) Expand all
370 result.appendLiteral("; "); 370 result.appendLiteral("; ");
371 result.appendLiteral("value="); 371 result.appendLiteral("value=");
372 result.append(s); 372 result.append(s);
373 } 373 }
374 374
375 strncpy(buffer, result.toString().utf8().data(), length - 1); 375 strncpy(buffer, result.toString().utf8().data(), length - 1);
376 } 376 }
377 #endif 377 #endif
378 378
379 } // namespace WebCore 379 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Node.cpp ('k') | Source/core/editing/ApplyBlockElementCommand.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698