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

Unified Diff: Source/core/css/CSSValue.cpp

Issue 453203003: Introduce DEFINE_CUSTOM_FONT_DATA_TYPE_CASTS, and use it (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/css/CSSValue.cpp
diff --git a/Source/core/css/CSSValue.cpp b/Source/core/css/CSSValue.cpp
index df426652acac916c97f4cad4e2af631a644fd849..851cefcf83e09466c4eebe13af88be3b340a64a5 100644
--- a/Source/core/css/CSSValue.cpp
+++ b/Source/core/css/CSSValue.cpp
@@ -408,7 +408,7 @@ void CSSValue::finalizeGarbageCollectedObject()
{
if (m_isTextClone) {
ASSERT(isCSSOMSafe());
- static_cast<TextCloneCSSValue*>(this)->~TextCloneCSSValue();
+ toTextCloneCSSValue(this)->~TextCloneCSSValue();
return;
}
ASSERT(!isCSSOMSafe() || isSubtypeExposedToCSSOM());
@@ -512,7 +512,7 @@ void CSSValue::trace(Visitor* visitor)
{
if (m_isTextClone) {
ASSERT(isCSSOMSafe());
- static_cast<TextCloneCSSValue*>(this)->traceAfterDispatch(visitor);
+ toTextCloneCSSValue(this)->traceAfterDispatch(visitor);
return;
}
ASSERT(!isCSSOMSafe() || isSubtypeExposedToCSSOM());
« no previous file with comments | « no previous file | Source/core/rendering/svg/SVGTextLayoutEngineSpacing.cpp » ('j') | Source/platform/fonts/CustomFontData.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698