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

Unified Diff: ui/compositor/clip_transform_recorder.cc

Issue 1473453002: Fix clip/transform pairing to follow LIFO order. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/clip_transform_recorder.cc
diff --git a/ui/compositor/clip_transform_recorder.cc b/ui/compositor/clip_transform_recorder.cc
index ddc70d15ea2a32f65cf4adc839555bf9e51abee2..8afd8be2cb6741e0987247d59c808d8b158ca021 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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698