6d326b9edbf4c2ee1c3ad155d16012acf3c0cc0c

DocumentLayout now sets a "dirty" bit if (and only if) the layout changed. The current behavior only looks at changes to the overall document size, which is inaccurate in cases such as orientation changes that may change the layout of individual pages, but not the overall document size (for certain combinations of page sizes). This doesn't matter in the current code (the DocumentSizeUpdated event might not fire, which is mostly harmless), but the fix for bug 885110 requires accurately detecting and reporting layout changes to the viewer's JavaScript code, so DocumentLayout has been instrumented to detect all current triggers for layout changes: * Default page orientation changes * Overall page count changes * Overall document size changes (possibly redundant) * Individual page layout rectangle changes Bug: 885110 Change-Id: I0edfe2ad7af73abd1f176477826901b767c28b2e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1810032 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: K Moon <kmoon@chromium.org> Cr-Commit-Position: refs/heads/master@{#698235}
…
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.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
Description
Chromium是一个开源浏览器项目,提供了一种安全、快速、稳定的方法来体验Web。该浏览器可以在多个平台上下载,包括Mac、Windows、Linux和ChromiumOS。项目原始地址: https://chromium.googlesource.com/chromium/src.git
https://www.mobibrw.com/gitea-mirrors/chromium/src.git
Languages
C++
74.4%
Java
8.2%
Objective-C++
4.6%
TypeScript
4%
Python
2.5%
Other
6.1%