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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.h

Issue 1516723003: [Element / Autofill] Add boundsInViewportFloat() to fix <input> popup misalignment. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refator to use boundsInViewportFloat() eventually, but keep boundsInViewportInt(). Created 5 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // The client needs to implement these in order to be aware of layout effect s 154 // The client needs to implement these in order to be aware of layout effect s
155 // like CSS transforms. 155 // like CSS transforms.
156 virtual IntRect convertFromScrollbarToContainingWidget(const Scrollbar* scro llbar, const IntRect& scrollbarRect) const 156 virtual IntRect convertFromScrollbarToContainingWidget(const Scrollbar* scro llbar, const IntRect& scrollbarRect) const
157 { 157 {
158 return scrollbar->Widget::convertToContainingWidget(scrollbarRect); 158 return scrollbar->Widget::convertToContainingWidget(scrollbarRect);
159 } 159 }
160 virtual IntRect convertFromContainingWidgetToScrollbar(const Scrollbar* scro llbar, const IntRect& parentRect) const 160 virtual IntRect convertFromContainingWidgetToScrollbar(const Scrollbar* scro llbar, const IntRect& parentRect) const
161 { 161 {
162 return scrollbar->Widget::convertFromContainingWidget(parentRect); 162 return scrollbar->Widget::convertFromContainingWidget(parentRect);
163 } 163 }
164 virtual FloatRect convertFromScrollbarToContainingWidget(const Scrollbar* sc rollbar, const FloatRect& scrollbarRect) const
165 {
166 return scrollbar->Widget::convertToContainingWidget(scrollbarRect);
167 }
164 virtual IntPoint convertFromScrollbarToContainingWidget(const Scrollbar* scr ollbar, const IntPoint& scrollbarPoint) const 168 virtual IntPoint convertFromScrollbarToContainingWidget(const Scrollbar* scr ollbar, const IntPoint& scrollbarPoint) const
165 { 169 {
166 return scrollbar->Widget::convertToContainingWidget(scrollbarPoint); 170 return scrollbar->Widget::convertToContainingWidget(scrollbarPoint);
167 } 171 }
168 virtual IntPoint convertFromContainingWidgetToScrollbar(const Scrollbar* scr ollbar, const IntPoint& parentPoint) const 172 virtual IntPoint convertFromContainingWidgetToScrollbar(const Scrollbar* scr ollbar, const IntPoint& parentPoint) const
169 { 173 {
170 return scrollbar->Widget::convertFromContainingWidget(parentPoint); 174 return scrollbar->Widget::convertFromContainingWidget(parentPoint);
171 } 175 }
172 176
173 virtual Scrollbar* horizontalScrollbar() const { return 0; } 177 virtual Scrollbar* horizontalScrollbar() const { return 0; }
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 // vertical-lr / ltr NO NO 349 // vertical-lr / ltr NO NO
346 // vertical-lr / rtl NO YES 350 // vertical-lr / rtl NO YES
347 // vertical-rl / ltr YES NO 351 // vertical-rl / ltr YES NO
348 // vertical-rl / rtl YES YES 352 // vertical-rl / rtl YES YES
349 IntPoint m_scrollOrigin; 353 IntPoint m_scrollOrigin;
350 }; 354 };
351 355
352 } // namespace blink 356 } // namespace blink
353 357
354 #endif // ScrollableArea_h 358 #endif // ScrollableArea_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/Widget.cpp ('k') | third_party/WebKit/Source/platform/scroll/Scrollbar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698