Skip to content

Commit

Permalink
ui/gfx: Do not use 'this' pointer when it's unnecessary and redundant.
Browse files Browse the repository at this point in the history
TEST=ui_unittests
R=sky@chromium.org

Review URL: https://codereview.chromium.org/11362189

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167173 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
tfarina@chromium.org committed Nov 12, 2012
1 parent 36877ff commit 24ebb59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui/gfx/canvas_paint_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

ui::ScaleFactor scale_factor = ui::GetScaleFactorFromScale(scale);
gfx::Size size(NSWidth(rectangle_), NSHeight(rectangle_));
this->RecreateBackingCanvas(size, scale_factor, opaque);
RecreateBackingCanvas(size, scale_factor, opaque);
skia::PlatformCanvas* canvas = platform_canvas();
canvas->clear(SkColorSetARGB(0, 0, 0, 0));

Expand Down
8 changes: 4 additions & 4 deletions ui/gfx/rect_base_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,11 @@ void RectBase<Class, PointClass, SizeClass, InsetsClass, VectorClass, Type>::
DCHECK(left_half);
DCHECK(right_half);

left_half->SetRect(this->x(), this->y(), this->width() / 2, this->height());
left_half->SetRect(x(), y(), width() / 2, height());
right_half->SetRect(left_half->right(),
this->y(),
this->width() - left_half->width(),
this->height());
y(),
width() - left_half->width(),
height());
}

template<typename Class,
Expand Down

0 comments on commit 24ebb59

Please sign in to comment.