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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutText.cpp

Issue 2683553002: Fix not autosizing ruby elements issue. (Closed)
Patch Set: 1. fix the dcheck fire when sreen ratated and add test case 2. format TextAutosizerTest Created 3 years, 10 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: third_party/WebKit/Source/core/layout/LayoutText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp
index c79928f7f8e13723c215949a74acc73cea2907f8..a0074fd7ac4d7e296f13f1af1f69635125480aa1 100644
--- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
@@ -1388,7 +1388,7 @@ void LayoutText::computePreferredLogicalWidths(
fontData->getFontMetrics().floatDescent(), m_maxWidth);
}
// We shouldn't change our mind once we "know".
- ASSERT(!m_knownToHaveNoOverflowAndNoFallbackFonts ||
+ DCHECK(!m_knownToHaveNoOverflowAndNoFallbackFonts ||
skobes 2017/02/16 02:48:37 If you're changing this to DCHECK can you also cha
cathiechentx 2017/02/16 03:17:55 I'd like to roll it back to ASSERT ;)
(fallbackFonts.isEmpty() && glyphOverflow.isApproximatelyZero()));
m_knownToHaveNoOverflowAndNoFallbackFonts =
fallbackFonts.isEmpty() && glyphOverflow.isApproximatelyZero();

Powered by Google App Engine
This is Rietveld 408576698