Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
While it is possible to set DPI in EmbedlitePuppetWidget class using the gfxPlatform::GetDPI() call this aproach doesn't seem to be plausible, because theoretically the device may have more than one screen with different DPI. Thus gfxPlatform::GetDPI() is not used neither in B2G nor in Metro. Instead these two embeddings set DPI at the moment of view creation. And their PuppetWidget works as a proxy for the real window which lives in the UI thread. Particularly PuppetWidget forwards GetDPI() requests from TabChild to TabParent synchronously. And TabParent maintains its own copy of DPI value set during window creation. So, this commit also overrides GetDPI() for EmbedlitePuppetWidget. First call to this methods gets forwarded synchronously to the UI thread with the help of EmbedLiteViewBaseChild. The result is cached. After that only cached value is returned. Conflicts: embedding/embedlite/EmbedLiteView.cpp embedding/embedlite/EmbedLiteView.h embedding/embedlite/embedshared/EmbedLitePuppetWidget.cpp embedding/embedlite/embedshared/EmbedLitePuppetWidget.h embedding/embedlite/embedshared/EmbedLiteViewBaseParent.cpp embedding/embedlite/embedshared/EmbedLiteViewBaseParent.h embedding/embedlite/embedshared/EmbedLiteViewIface.idl
- Loading branch information
Showing
12 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters