0
Go to file
Xianzhu Wang 06000e9865 Clean up invalidation of LocalFrameView, WebViewImpl, plugin, etc.
This is mainly for the following code path
   ChromeClient::InvalidateRect()
-> WebViewImpl::InvalidateRect()
-> WebViewClient::DidInvalidateRect()
-> WebViewPlugin::WebViewHelper::DidInvalidateRect()
-> WebPluginContainerImpl::InvalidateRect()
-> LayoutObject::InvalidatePaintRectangle()
to remove the rectangle parameter because in most cases we do full
paint invalidation. Rename some functions to InvalidateContainer() to
make it clear the meaning (i.e. not to invalidate the content of the
view/frame).

Also remove LocalFrameView::Invalidate() and InvalidateRect() which
were parallel implementation of the above code path for frame views,
but were no longer used or were used incorrectly (e.g. the usage from
WebViewImpl::ThemeChanged() which should fully invalidate all frames).

Also remove RemoteFrameView::InvalidateRect() which was dead code.

This removes two callers of LayoutObject::InvalidatePaintRectangle().
If we can remove all callers of it, we can remove the partial paint
invalidation code (especially the callbacks in DisplayItemClient).

Change-Id: Iea79e6000a888feb2074de8fd8b7d53aa4d84165
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2843205
Reviewed-by: K. Moon <kmoon@chromium.org>
Reviewed-by: Philip Rogers <pdr@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#875343}
2021-04-22 21:16:17 +00:00
2021-04-22 18:40:46 +00:00
2021-04-21 22:28:35 +00:00
2021-04-20 06:14:32 +00:00
2021-03-24 19:30:00 +00:00
2021-04-21 22:28:35 +00:00

Logo Chromium

Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.

The project's web site is https://www.chromium.org.

To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.

Documentation in the source is rooted in docs/README.md.

Learn how to Get Around the Chromium Source Code Directory Structure .

For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.

Description
Chromium是一个开源浏览器项目,提供了一种安全、快速、稳定的方法来体验Web。该浏览器可以在多个平台上下载,包括Mac、Windows、Linux和ChromiumOS。项目原始地址: https://chromium.googlesource.com/chromium/src.git
https://www.mobibrw.com/gitea-mirrors/chromium/src.git
Readme BSD-3-Clause 89 GiB
Languages
C++ 74.4%
Java 8.2%
Objective-C++ 4.6%
TypeScript 4%
Python 2.5%
Other 6.1%