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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTextControl.h

Issue 2145903002: Add heuristic to LayoutTextControl::hasValidAvgCharWidth() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/layout/LayoutTextControl.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutTextControl.h b/third_party/WebKit/Source/core/layout/LayoutTextControl.h
index 221d2d7d95d8f2df89b5062297e57b16b741cde0..002c6cd572c40dc06f2c27e25953867566e7c255 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTextControl.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTextControl.h
@@ -58,7 +58,7 @@ protected:
float scaleEmToUnits(int x) const;
- static bool hasValidAvgCharWidth(const AtomicString& family);
+ static bool hasValidAvgCharWidth(const SimpleFontData*, const AtomicString& family);
virtual float getAvgCharWidth(const AtomicString& family) const;
virtual LayoutUnit preferredContentLogicalWidth(float charWidth) const = 0;
virtual LayoutUnit computeControlLogicalHeight(LayoutUnit lineHeight, LayoutUnit nonContentHeight) const = 0;

Powered by Google App Engine
This is Rietveld 408576698