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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2387883002: Use float for scroll offset. (Closed)
Patch Set: Fix README.md Created 4 years, 2 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/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 7bd6e5e5845b6c93f6d0e99a85819c88e1084db6..7bcb54e40baee2d522ca991f251a078ee098948b 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -4038,13 +4038,12 @@ inline LayoutUnit adjustLayoutUnitForAbsoluteZoom(LayoutUnit value,
return LayoutUnit(value / style.effectiveZoom());
}
-inline double adjustScrollForAbsoluteZoom(double scrollOffset,
- float zoomFactor) {
+inline float adjustScrollForAbsoluteZoom(float scrollOffset, float zoomFactor) {
return scrollOffset / zoomFactor;
}
-inline double adjustScrollForAbsoluteZoom(double scrollOffset,
- const ComputedStyle& style) {
+inline float adjustScrollForAbsoluteZoom(float scrollOffset,
+ const ComputedStyle& style) {
return adjustScrollForAbsoluteZoom(scrollOffset, style.effectiveZoom());
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp ('k') | third_party/WebKit/Source/core/testing/Internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698