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

Unified Diff: Source/core/rendering/style/RenderStyle.cpp

Issue 404343002: Introduce DEFINE_CONTENT_DATA_TYPE_CASTS, and use it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/style/ContentData.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/RenderStyle.cpp
diff --git a/Source/core/rendering/style/RenderStyle.cpp b/Source/core/rendering/style/RenderStyle.cpp
index 95baaad0f4520673dc06a3ecaa1095c2c6fd398e..d89e8f6753fdc0e58afeeaa2c7cc5dd4aad2201b 100644
--- a/Source/core/rendering/style/RenderStyle.cpp
+++ b/Source/core/rendering/style/RenderStyle.cpp
@@ -784,7 +784,7 @@ void RenderStyle::setContent(const String& string, bool add)
if (lastContent) {
// We attempt to merge with the last ContentData if possible.
if (lastContent->isText()) {
- TextContentData* textContent = static_cast<TextContentData*>(lastContent);
+ TextContentData* textContent = toTextContentData(lastContent);
textContent->setText(textContent->text() + string);
} else
lastContent->setNext(ContentData::create(string));
« no previous file with comments | « Source/core/rendering/style/ContentData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698