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

Unified Diff: ppapi/examples/ime/ime.cc

Issue 11110004: Make gfx::Rect class operations consistently mutate the class they are called on. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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
Index: ppapi/examples/ime/ime.cc
diff --git a/ppapi/examples/ime/ime.cc b/ppapi/examples/ime/ime.cc
index e217145d399bcd7ed01d0dcdec7a393fef0d9c1d..983053268c89e0009de29c83cf52ae45cb7b9aca 100644
--- a/ppapi/examples/ime/ime.cc
+++ b/ppapi/examples/ime/ime.cc
@@ -148,7 +148,7 @@ class MyTextField {
// Paint on the specified ImageData.
void PaintOn(pp::ImageData* image, pp::Rect clip) {
- clip = clip.Intersect(area_);
+ clip.Intersect(area_);
FillRect(image, clip, kTextfieldBgColor);
if (caret_pos_ != std::string::npos) {

Powered by Google App Engine
This is Rietveld 408576698