void NativeWindowMac::Invalidate() {
[window_ flushWindow];
- [[window_ contentView] setNeedsDisplay:TRUE];
+ [[window_ contentView] setNeedsDisplay:YES];
}
void NativeWindowMac::SetTitle(const std::string& title) {
void NativeWindowViews::Invalidate() {
const gfx::Rect& bounds = GetBounds();
- window_->SchedulePaintInRect(
- gfx::Rect(0, 0, bounds.width(), bounds.height()));
+ window_->SchedulePaintInRect(gfx::Rect(GetBounds().size()));
}
void NativeWindowViews::SetTitle(const std::string& title) {