diff options
| author | wkorman <wkorman@chromium.org> | 2015-11-23 22:08:53 -0800 |
|---|---|---|
| committer | Commit bot <commit-bot@chromium.org> | 2015-11-24 06:09:49 +0000 |
| commit | 4485bf60d087482aa544953bd45c2dce3dd4d380 (patch) | |
| tree | 775258b59953fab327433acadeb87e9935a14f3f | |
| parent | 302e6f1e44602320dcb620db1c3bd2a5b5a6a138 (diff) | |
| download | chromium_src-4485bf60d087482aa544953bd45c2dce3dd4d380.zip chromium_src-4485bf60d087482aa544953bd45c2dce3dd4d380.tar.gz chromium_src-4485bf60d087482aa544953bd45c2dce3dd4d380.tar.bz2 | |
Fix clip/transform pairing to follow LIFO order.
BUG=529938
Review URL: https://codereview.chromium.org/1473453002
Cr-Commit-Position: refs/heads/master@{#361261}
| -rw-r--r-- | ui/compositor/clip_transform_recorder.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/compositor/clip_transform_recorder.cc b/ui/compositor/clip_transform_recorder.cc index ddc70d1..8afd8be 100644 --- a/ui/compositor/clip_transform_recorder.cc +++ b/ui/compositor/clip_transform_recorder.cc @@ -20,8 +20,8 @@ ClipTransformRecorder::ClipTransformRecorder(const PaintContext& context) } ClipTransformRecorder::~ClipTransformRecorder() { - for (size_t i = 0; i < num_closers_; ++i) { - switch (closers_[i]) { + for (size_t i = num_closers_; i > 0; --i) { + switch (closers_[i - 1]) { case CLIP_RECT: context_.list_->CreateAndAppendItem<cc::EndClipDisplayItem>(); break; |
