🎨 Minor formatting tweaks
This commit is contained in:
parent
f19924bcb0
commit
82f452568c
3 changed files with 3 additions and 5 deletions
|
@ -1496,9 +1496,8 @@ void WebContents::Invalidate() {
|
||||||
osr_rwhv->Invalidate();
|
osr_rwhv->Invalidate();
|
||||||
} else {
|
} else {
|
||||||
const auto ownerWindow = owner_window();
|
const auto ownerWindow = owner_window();
|
||||||
if (ownerWindow) {
|
if (ownerWindow)
|
||||||
ownerWindow->Invalidate();
|
ownerWindow->Invalidate();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1103,7 +1103,7 @@ void NativeWindowMac::Center() {
|
||||||
|
|
||||||
void NativeWindowMac::Invalidate() {
|
void NativeWindowMac::Invalidate() {
|
||||||
[window_ flushWindow];
|
[window_ flushWindow];
|
||||||
[[window_ contentView] setNeedsDisplay:TRUE];
|
[[window_ contentView] setNeedsDisplay:YES];
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeWindowMac::SetTitle(const std::string& title) {
|
void NativeWindowMac::SetTitle(const std::string& title) {
|
||||||
|
|
|
@ -697,8 +697,7 @@ void NativeWindowViews::Center() {
|
||||||
|
|
||||||
void NativeWindowViews::Invalidate() {
|
void NativeWindowViews::Invalidate() {
|
||||||
const gfx::Rect& bounds = GetBounds();
|
const gfx::Rect& bounds = GetBounds();
|
||||||
window_->SchedulePaintInRect(
|
window_->SchedulePaintInRect(gfx::Rect(GetBounds().size()));
|
||||||
gfx::Rect(0, 0, bounds.width(), bounds.height()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void NativeWindowViews::SetTitle(const std::string& title) {
|
void NativeWindowViews::SetTitle(const std::string& title) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue