| Index: cc/layers/layer.cc
|
| diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
|
| index 9d1cde59148f08d60cf642019fc37f1d0fe84e60..9e181dbd742d15bc83e0d2df6c45c9883a2ff112 100644
|
| --- a/cc/layers/layer.cc
|
| +++ b/cc/layers/layer.cc
|
| @@ -671,16 +671,15 @@ void Layer::SetHideLayerAndSubtree(bool hide) {
|
| }
|
|
|
| void Layer::SetNeedsDisplayRect(const gfx::RectF& dirty_rect) {
|
| - if (!update_rect_.Contains(dirty_rect)) {
|
| - SetNeedsPushProperties();
|
| - }
|
| + if (dirty_rect.IsEmpty())
|
| + return;
|
|
|
| + SetNeedsPushProperties();
|
| update_rect_.Union(dirty_rect);
|
| needs_display_ = true;
|
|
|
| - if (DrawsContent() && !update_rect_.IsEmpty()) {
|
| + if (DrawsContent())
|
| SetNeedsUpdate();
|
| - }
|
| }
|
|
|
| bool Layer::DescendantIsFixedToContainerLayer() const {
|
|
|