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

Unified Diff: cc/blink/web_layer_impl_fixed_bounds.cc

Issue 655863002: Add a WebRect version of invalidateRect to WebLayerImplFixedBounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: invalidaterect: . Created 6 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
« no previous file with comments | « cc/blink/web_layer_impl_fixed_bounds.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_layer_impl_fixed_bounds.cc
diff --git a/cc/blink/web_layer_impl_fixed_bounds.cc b/cc/blink/web_layer_impl_fixed_bounds.cc
index 5ffb660ccbbaad32745b439da78e65409030edf1..e9e11c142c4d0560457cabc8c066a39f6a696aef 100644
--- a/cc/blink/web_layer_impl_fixed_bounds.cc
+++ b/cc/blink/web_layer_impl_fixed_bounds.cc
@@ -29,6 +29,12 @@ void WebLayerImplFixedBounds::invalidateRect(const blink::WebFloatRect& rect) {
invalidate();
}
+void WebLayerImplFixedBounds::invalidateRect(const blink::WebRect& rect) {
+ // Partial invalidations seldom occur for such layers.
+ // Simply invalidate the whole layer to avoid transformation of coordinates.
+ invalidate();
+}
+
void WebLayerImplFixedBounds::setTransformOrigin(
const blink::WebFloatPoint3D& transform_origin) {
if (transform_origin != this->transformOrigin()) {
« no previous file with comments | « cc/blink/web_layer_impl_fixed_bounds.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698