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

Unified Diff: Source/core/rendering/FastTextAutosizer.h

Issue 135733002: [FastTextAutosizer] Incorporate accessibility and device scale factors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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/rendering/FastTextAutosizer.h
diff --git a/Source/core/rendering/FastTextAutosizer.h b/Source/core/rendering/FastTextAutosizer.h
index d502164cd447fb6a33bab6ef4b883755182ce9d0..eee240b75d841d7395b69f3c23f061b96bcc64f8 100644
--- a/Source/core/rendering/FastTextAutosizer.h
+++ b/Source/core/rendering/FastTextAutosizer.h
@@ -99,7 +99,7 @@ private:
explicit FastTextAutosizer(Document*);
bool enabled();
- void prepareWindowInfo(RenderView*);
+ void prepareRenderViewInfo(RenderView*);
bool shouldBeClusterRoot(RenderBlock*);
bool clusterWantsAutosizing(RenderBlock*);
AtomicString computeFingerprint(RenderBlock*);
@@ -113,6 +113,10 @@ private:
Document* m_document;
int m_windowWidth; // Frame width in density-independent pixels (DIPs).
int m_layoutWidth; // Layout width in CSS pixels.
+ float m_additionalMultiplier; // Includes accessibility font scale factor and device scale adjustment.
skobes 2014/01/13 19:10:13 Perhaps "m_baseMultiplier"?
pdr. 2014/01/13 19:49:12 I like it. Done.
+#ifndef NDEBUG
skobes 2014/01/13 19:10:13 Is the compiler not smart enough to strip out an u
pdr. 2014/01/13 19:49:12 Nowhere near smart enough :) There are two reason
+ bool m_renderViewInfoPrepared; // Used for assertions.
+#endif
// Clusters are created and destroyed during layout. The map key is the
// cluster root. Clusters whose roots share the same fingerprint use the

Powered by Google App Engine
This is Rietveld 408576698