🎨 Minor formatting tweaks
This commit is contained in:
parent
f19924bcb0
commit
82f452568c
3 changed files with 3 additions and 5 deletions
|
@ -1496,10 +1496,9 @@ void WebContents::Invalidate() {
|
|||
osr_rwhv->Invalidate();
|
||||
} else {
|
||||
const auto ownerWindow = owner_window();
|
||||
if (ownerWindow) {
|
||||
if (ownerWindow)
|
||||
ownerWindow->Invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
v8::Local<v8::Value> WebContents::GetWebPreferences(v8::Isolate* isolate) {
|
||||
|
|
|
@ -1103,7 +1103,7 @@ void NativeWindowMac::Center() {
|
|||
|
||||
void NativeWindowMac::Invalidate() {
|
||||
[window_ flushWindow];
|
||||
[[window_ contentView] setNeedsDisplay:TRUE];
|
||||
[[window_ contentView] setNeedsDisplay:YES];
|
||||
}
|
||||
|
||||
void NativeWindowMac::SetTitle(const std::string& title) {
|
||||
|
|
|
@ -697,8 +697,7 @@ void NativeWindowViews::Center() {
|
|||
|
||||
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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue