-
-
Notifications
You must be signed in to change notification settings - Fork 832
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: Add style sheet support for TextField
This patch adds TextField.styleSheet support. Now when parsing HTML, the attached style sheet is used to provide styles for HTML elements. This patch also adds support for: * `class` attributes in HTML, * `<span>` HTML elements, * custom HTML elements. CSS support is spanned across all existing HTML elements and custom ones. Additionally, some observable behaviors related to .styleSheet are implemented, e.g. performing relayout after setting .styleSheet, or .text behaving as .htmlText with style sheet set. Currently, the implementation is coupled with AVM2 objects, that should change when AVM1 support is added.
- Loading branch information
1 parent
f861125
commit 2ccc755
Showing
4 changed files
with
171 additions
and
25 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