Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Feat: New impl of style & css support. #618

Open
wants to merge 198 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
198 commits
Select commit Hold shift + click to select a range
ec39e52
feat: add base utils for css parser
drugsloveyou Jul 1, 2024
d82a77f
feat: add platform utils for css
drugsloveyou Jul 1, 2024
bb742c0
feat: update to C++20
drugsloveyou Jul 1, 2024
92191a3
feat: foundation utils for css
drugsloveyou Jul 1, 2024
13f6c50
feat: add dom api of css
drugsloveyou Jul 1, 2024
4b8edee
feat: add element.FinishParsingChildren
drugsloveyou Jul 1, 2024
1bba7f7
feat: add style and link htmltag
drugsloveyou Jul 1, 2024
aedef55
feat: add animation timeline_offset class
drugsloveyou Jul 1, 2024
c9bb6cd
feat: add layout_unit and length for CSSValue
drugsloveyou Jul 1, 2024
dba8618
feat: add style_engine and css_parser
drugsloveyou Jul 1, 2024
ec70741
feat: add css_parser token handler
drugsloveyou Jul 1, 2024
61d51c2
feat: add css_parser impl
drugsloveyou Jul 1, 2024
7e7a7bc
feat: add css selector、css property and css variable for cssParser
drugsloveyou Jul 1, 2024
3b45809
feat: add lazy parse for cssparser
drugsloveyou Jul 1, 2024
b4d8914
feat: add link element for rel=stylesheet(style_element)
drugsloveyou Jul 1, 2024
aa2364a
feat: add a part of the style_rule module
drugsloveyou Jul 1, 2024
587ab8a
feat: add style_sheet
drugsloveyou Jul 1, 2024
972bdc5
feat: add css_selector
drugsloveyou Jul 1, 2024
465a99c
feat: add media query
drugsloveyou Jul 1, 2024
798338e
feat: add property set handler
drugsloveyou Jul 1, 2024
aa6f5d6
feat: add properties handler and enum
drugsloveyou Jul 1, 2024
71f565d
feat: inline_css_style_declaration
drugsloveyou Jul 1, 2024
0f282b8
feat: cascade_layer
drugsloveyou Jul 1, 2024
3242662
feat: css_exposure
drugsloveyou Jul 1, 2024
5ef0437
feat: style_reclac_context and style_resolver_state
drugsloveyou Jul 1, 2024
33232f8
feat: add cssValue basic classes
drugsloveyou Jul 1, 2024
369415b
feat: add multiple CSSValue handlers
drugsloveyou Jul 1, 2024
17baf79
test: add style_engine createSheet test
drugsloveyou Jul 1, 2024
f0d8dce
feat: add cssnamespace for starAtom(*)
drugsloveyou Jul 1, 2024
7b05162
feat: add media_type_names json5
drugsloveyou Jul 1, 2024
e826738
feat: add SecureContextMode enum
drugsloveyou Jul 1, 2024
5797066
feat: add ComputedStyle constants
drugsloveyou Jul 1, 2024
1d2c65e
feat: add AtomicString method StartsWith and operator[]
drugsloveyou Jul 1, 2024
1df632e
feat: add JS_CLASS_HTML_STYLE_SHEET and JS_CLASS_STYLE_SHEET enum to …
drugsloveyou Jul 1, 2024
1bfb2b3
chore: add css&style impl file to CMakeList.txt
drugsloveyou Jul 1, 2024
47e3b6c
chore: add copyright.
drugsloveyou Jul 1, 2024
d478ebd
fix: fix compile.
andycall Jul 3, 2024
dd85f32
迁移blink/css,提交部分代码;
Jul 10, 2024
077f737
迁移blink/css,提交css_value_list.h/cc等部分代码; (#626)
andycall Jul 10, 2024
1bfb9d4
feat: renderObjects compatable to set renderstyle directly.
andycall Feb 18, 2024
0365b09
migrate: sync http cache.
andycall Feb 18, 2024
8fa2d22
feat: remove dart impl as the first step.
andycall Feb 19, 2024
de0ca84
fix: fix compile.
andycall Jul 10, 2024
5dd780b
fix: fix dart compile.
andycall Jul 12, 2024
5e4bb0c
fix: remove component to compile.
andycall Jul 13, 2024
70180bd
fix: fix integration test.
andycall Jul 13, 2024
643a5ef
feat: connect hooks with DOM API to style.
andycall Jul 14, 2024
2f20002
feat: add style_sheet_contents.
andycall Jul 18, 2024
0142170
feat: fullfill css parser context others
andycall Jul 18, 2024
3e6d0a0
feat: add css_value_pair
Jul 18, 2024
5feeec5
feat: complete CSS tokenizer and parser utils.
andycall Jul 22, 2024
230e7a4
feat: add Geometry length
andycall Jul 23, 2024
4f58694
迁移blink/css,新提交css相关类代码;
Jul 24, 2024
ec65816
迁移blink/css,修改EnumSet命名空间;
Jul 24, 2024
eaed72c
Feat/refactor css style recalc guopf (#636)
andycall Jul 24, 2024
9360b15
feat: generate css key words by scripts.
andycall Jul 24, 2024
0547bdc
feat: update contributor guide.
andycall Jul 24, 2024
f78d72e
feat: generate css_property_names by scripts.
andycall Jul 26, 2024
12edeb2
feat: add css_property_bitset.
andycall Jul 27, 2024
a2eb57a
feat: add css math function.
andycall Jul 27, 2024
b945149
feat: generate longhands.h/cc and shorthands.h/cc
andycall Jul 28, 2024
8fd0675
feat: generate css_property_instance.
andycall Jul 28, 2024
a4c1d76
feat: generate style property shorthand source.
andycall Jul 29, 2024
507b655
fix: fix shorthands and longhands.
andycall Jul 30, 2024
f855bbb
fix: fix style property shorthands.
andycall Jul 30, 2024
7181786
feat: add css_rule
andycall Jul 31, 2024
9ba63fc
feat: fix css_property_value_set.,
andycall Jul 31, 2024
0b1a16f
feat: implement core/platform/graphics/color
andycall Aug 2, 2024
38df9b3
feat: add more css values.
andycall Aug 2, 2024
2ea2d16
feat: add css_color_function_parser
andycall Aug 2, 2024
9a925b8
feat: add css parser save point.
andycall Aug 2, 2024
7156a6a
feat: add more methods to css parsing utils.
andycall Aug 2, 2024
f2b708e
feat: add skia module third_party.
andycall Aug 2, 2024
199bb6c
feat: add fast parser path.
andycall Aug 4, 2024
f5731ca
feat: add css parser local context.
andycall Aug 4, 2024
a8764f8
feat: add css function value
andycall Aug 4, 2024
63352b0
fix: fix calculation expression node.
andycall Aug 4, 2024
47747c7
feat: complete more methods in css_parsing_utils.
andycall Aug 4, 2024
eac3679
feat: full implement of geometry/length
andycall Aug 5, 2024
a224cb1
feat: full impl of css_math_expression_node.cc
andycall Aug 5, 2024
4f1a140
feat: add base math and geometry/layout_unit.
andycall Aug 7, 2024
5f38d04
fix: fix compile.
andycall Aug 7, 2024
b06d962
feat: remove skia module dependences.
andycall Aug 8, 2024
3117022
feat: fullfill css_property_value_set.
andycall Aug 8, 2024
8348461
build: fixed @types/lodash version.
drugsloveyou Aug 9, 2024
16ec93f
feat: add css_unicode_range_value
drugsloveyou Aug 12, 2024
aaeb4f7
chore: add css_unicode_range_value file copyright.
drugsloveyou Aug 12, 2024
1ab616c
feat: add css_initial_color_value Create method.
drugsloveyou Aug 12, 2024
42a110c
feat: add css_invalid_variable_value Create method
drugsloveyou Aug 12, 2024
2a78a8c
feat: add css_alternate_value
drugsloveyou Aug 12, 2024
c12df28
feat: add css_content_distribution_value
drugsloveyou Aug 12, 2024
cb7f70d
feat: add css_quad_value
DWarrior222 Aug 12, 2024
0172de9
feat: add css_shadow_value
DWarrior222 Aug 13, 2024
3d0f2a9
feat: fix property shorthand and add basic inline style declaration c…
andycall Aug 14, 2024
c2a9d81
feat: add url parser.
drugsloveyou Aug 13, 2024
ef85478
feat: add base/strings handler.
drugsloveyou Aug 13, 2024
3bb28c9
feat: add no_destructor handler.
drugsloveyou Aug 13, 2024
f01745f
feat: add url_util handler.
drugsloveyou Aug 13, 2024
c0b30e9
feat: add url_file handler.
drugsloveyou Aug 13, 2024
9aa5518
feat: add url features.
drugsloveyou Aug 13, 2024
909ec80
feat: add url_canon_stdstring
drugsloveyou Aug 13, 2024
2743e59
feat: add gurl handler.
drugsloveyou Aug 13, 2024
4698066
feat: add base/contains
drugsloveyou Aug 15, 2024
560b96b
feat: add string utils.
drugsloveyou Aug 15, 2024
88c96c6
feat: add url scheme handler.
drugsloveyou Aug 15, 2024
c3ccb2e
feat: add url parse file handler.
drugsloveyou Aug 15, 2024
6ab2807
feat: add url canon handlers.
drugsloveyou Aug 15, 2024
c064056
feat: add base/no_destructor
drugsloveyou Aug 15, 2024
2e3a492
feat: add css/css_uri handlers.
drugsloveyou Aug 15, 2024
cb6e611
feat: add macro DCHECK_LT
drugsloveyou Aug 15, 2024
c7482c7
chore: add copyright.
drugsloveyou Aug 15, 2024
74701ff
feat: change some functions namespace webf to base.
drugsloveyou Aug 15, 2024
b115f63
feat: add kurl and gurl.
drugsloveyou Aug 15, 2024
afa7cc0
chore: add copyright.
drugsloveyou Aug 15, 2024
d83fc0a
feat: document add url API handlers.
drugsloveyou Aug 15, 2024
f3b1256
feat: change IsStringASCII/ToLowerASCII functions namespace webf to b…
drugsloveyou Aug 15, 2024
4f0db59
feat: add css_pending_system_font_value without resolve hanlder.
drugsloveyou Aug 15, 2024
3488c74
feat: add css_variable_data without ParseForSyntax hanlder.
drugsloveyou Aug 15, 2024
138644f
feat: add css_unparsed_declaration_value.
drugsloveyou Aug 16, 2024
554f426
feat: add css_pending_substitution_value.
drugsloveyou Aug 16, 2024
60ca1e3
feat: fix css_keyframe_shorthand_value.
drugsloveyou Aug 16, 2024
ba7503b
feat: add css_font_variation_value.
drugsloveyou Aug 16, 2024
40793e3
feat: add css_font_style_range_value.
drugsloveyou Aug 16, 2024
57a24c0
feat: add css_font_feature_value
drugsloveyou Aug 16, 2024
78fe653
feat: add css_font_family_value
drugsloveyou Aug 16, 2024
7fb6df3
feat: add css_scroll_value.
drugsloveyou Aug 16, 2024
2a6d8ab
feat: add font_size_adjust
drugsloveyou Aug 16, 2024
b5f9063
feat: add style_property_serializer.cc
andycall Aug 18, 2024
ede210c
fix: tempoary disable KURL and fix css_repeat_style_value.cc
andycall Aug 19, 2024
6ffc4ed
feat: add more css values and parsing utils.
andycall Aug 19, 2024
3d4419e
feat: add gradient images.
andycall Aug 20, 2024
a4404ca
add core/css/invalidation
Aug 22, 2024
716276e
feat: add font parser utils support.
andycall Aug 22, 2024
211b52d
feat: add grid values for parser.
andycall Aug 23, 2024
efa8443
feat: add css value id mapping template.
andycall Aug 24, 2024
91db49d
feat: add more parsing utils for longhands.
andycall Aug 24, 2024
ab1257e
feat: add longhands_custom.cc
andycall Aug 25, 2024
b5aed2f
feat: temporary disable animation.
andycall Aug 27, 2024
32e4539
Merge remote-tracking branch 'origin/feat/refactor_css_style_recalc' …
Aug 29, 2024
121a2a4
solving compile-time problems;
Aug 29, 2024
1c6f3ca
solving include problems;
Aug 29, 2024
3097df8
feat: generate Initial glue codes.
andycall Aug 29, 2024
ab31e56
Feat/refactor css style recalc guopf (#656)
andycall Aug 29, 2024
64a479e
fix: fix longhands and shorthands missing symbols.
andycall Aug 29, 2024
c47d1cc
feat: add color data.
andycall Sep 2, 2024
004fe35
feat: add css rule wrapper type info.
andycall Sep 2, 2024
7190a12
feat: add url support.
andycall Sep 3, 2024
ede490c
feat: fix font family.
andycall Sep 3, 2024
cdefd46
fix: fix string utils symbols.
andycall Sep 3, 2024
cf0cae0
fix: fix css selector and qualified names.
andycall Sep 3, 2024
4039fae
fix: fix css selector.
andycall Sep 3, 2024
d132735
fix: add more selector functions.
andycall Sep 3, 2024
a841d57
fix: fix css selector parser.
andycall Sep 3, 2024
e0e6338
feat: add css primitive value unit trie.
andycall Sep 9, 2024
8f1ff17
feat: fix link error and remove utf16 support in url module.
andycall Sep 9, 2024
d2eb618
fix: compile link success.
andycall Sep 10, 2024
39df7e5
feat: compatible to CXX 17
andycall Sep 12, 2024
a7826c5
fix: fix android compile.
andycall Sep 13, 2024
15fe020
fix: fix dynamic bundle overside.
andycall Sep 18, 2024
fae6a20
fix: fix document and stylesheet memory leak.
andycall Sep 18, 2024
1fd5d67
feat: generate at rule names.
andycall Sep 20, 2024
d1ba75c
feat: add parser impl.
andycall Sep 25, 2024
3a18469
fix: fix compile issue.
andycall Sep 26, 2024
ed6c05e
feat: add full property parser.
andycall Sep 27, 2024
6a8b126
fix: fix crash due to css property parser.
andycall Sep 27, 2024
076fa39
fix: fix compile in android.
andycall Sep 27, 2024
8206a4f
fix: fix stylesheet contents in css parser impl.
andycall Sep 29, 2024
7a74454
fix: fix compile.
andycall Oct 1, 2024
1d9933b
fix: fix css parser token range.
andycall Oct 2, 2024
8f1902f
fix: use std::string_view taken replace StringView.
andycall Oct 2, 2024
7afb9ff
fix: fix css parser token stream
andycall Oct 2, 2024
e8dddb8
test: css_parser_token_stream_test.cc all pass.
andycall Oct 2, 2024
4eac2db
test: css_parser_local_context_test.cc all pass.
andycall Oct 2, 2024
665fc17
fix: fix css color.
andycall Oct 3, 2024
605295c
feat: support cssText() for cssValue.
andycall Oct 3, 2024
faa9e23
feat: add css syntax components and definition.
andycall Oct 4, 2024
3d8b0ca
fix: fix url image css value parse.
andycall Oct 4, 2024
dfeff67
fix: fix crash for css math functions.
andycall Oct 4, 2024
813db34
fix: fix empty string property in css background.,
andycall Oct 5, 2024
7462607
fix: fix out and ranges of css pool.
andycall Oct 6, 2024
8a4b1f7
fix: fix css color serialize.
andycall Oct 6, 2024
a4d744e
test: add property parser test pass.
andycall Oct 6, 2024
5c1553f
test: unit test now works.
andycall Oct 6, 2024
4ad38d3
feat: add font and font_description.
andycall Oct 7, 2024
52f980a
test: css_primitive_value_test.cc pass.
andycall Oct 7, 2024
92002b7
test: pass test for css calculationValue.
andycall Oct 8, 2024
cb7c73b
test: CSSMathExpressionNode test pass.
andycall Oct 8, 2024
6873d89
feat: add media_query_parser
andycall Oct 9, 2024
f189c4a
feat: add container query parser and container selector.
andycall Oct 10, 2024
bd1a26a
feat: add media query support.
andycall Oct 12, 2024
d2e560a
fix: fix unit test.
andycall Oct 12, 2024
b1d19eb
fix: fix lazy parsing.
andycall Oct 13, 2024
e6333f0
test: add container query parser test.
andycall Oct 13, 2024
7020d64
fix: fix color parse.
andycall Oct 14, 2024
c02de8e
test: add css parser fast path test.
andycall Oct 14, 2024
2962df2
fix: fix css color.
andycall Oct 14, 2024
4b46ec5
feat: add media query and import rule for css parser impl.
andycall Oct 14, 2024
98818b6
feat:add keyframe rules and style declaration.
andycall Oct 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

## Prerequisites


**Install gperf**

**macOS**
```bash
brew install gperf
```

**Linux**
```bash
apt-get install gperf
```

**Windows**
```bash
choco install gperf
```

* [Node.js](https://nodejs.org/) v12.0 or later
* [Flutter](https://flutter.dev/docs/get-started/install) version in the `webf/pubspec.yaml`
* [CMake](https://cmake.org/) v3.10.0 or later
Expand Down
2 changes: 1 addition & 1 deletion bridge/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
xcschememanagement.plist

cmake-build-*
build
polyfill/build/
out
Loading
Loading