|
|
Created:
3 years, 11 months ago by aazzam Modified:
3 years, 11 months ago CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionImplements CSSPropertyAPI for the webkit-text-emphasis-style property.
A part of Project Ribbon, separating the parsing logic for CSS
properties from the parser into an API. This patch removes
CSSPropertyWebkitTextEmphasis from the switch statement in
parseSingleValue, and calls the API instead.
A function pointer to the parseSingleValue function from the API for the
page property is stored in a CSSPropertyDescriptor, and is called from
CSSPropertyParser.
This patch:
- Adds CSSPropertyAPIWebkitTextEmphasis.cpp to the BUILD.gn file.
- Adds api_class flag to CSSProperties.in, which indicates that
CSSPropertyAPIWebkitTextEmphasis.h is generated.
- Moves the parsing logic for page from CSSPropertyParser.cpp to
CSSPropertyAPIWebkitTextEmphasis.cpp, which implements
CSSPropertyAPI.h.
BUG=668012
Review-Url: https://codereview.chromium.org/2609933005
Cr-Commit-Position: refs/heads/master@{#443987}
Committed: https://chromium.googlesource.com/chromium/src/+/7cc977a4e6d8777b07306bae3a154d76e733d6b7
Patch Set 1 #
Total comments: 7
Patch Set 2 : fixed dependencies, changed year #
Total comments: 1
Patch Set 3 : dependencies #
Total comments: 2
Patch Set 4 : rebase #Patch Set 5 : rebase #Patch Set 6 : rebase #
Depends on Patchset: Messages
Total messages: 45 (34 generated)
aazzam@google.com changed reviewers: + bugsnash@chromium.org
https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp (right): https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:5: #include "core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.h" this file seems to be missing?
Description was changed from ========== Implemented CSSPropertyAPI for webkit-text-emphasis-style property. Added CSSPropertyAPIWebkitTextEmphasisStyle which implements CSSPropertyAPI for the webkit-text-emphasis-style property. Moved parsing logic from CSSPropertyParser to the .cpp file. Added flag to CSSProperties.in so that the .h file will be generated. BUG=668012 ========== to ========== Implemented CSSPropertyAPI for webkit-text-emphasis-style property. Added CSSPropertyAPIWebkitTextEmphasisStyle which implements CSSPropertyAPI for the webkit-text-emphasis-style property. Parsing logic is the same as before, just was moved from CSSPropertyParser to the .cpp file. Added flag to CSSProperties.in so that the .h file will be generated. BUG=668012 ==========
PTAL @bugsnash :) https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp (right): https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:5: #include "core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.h" On 2017/01/05 at 04:24:11, Bugs Nash wrote: > this file seems to be missing? the .h files are generated! so I added a flag in CSSProperties.in to say it should be generated:)
https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp (right): https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:5: #include "core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.h" On 2017/01/05 at 04:25:56, aazzam wrote: > On 2017/01/05 at 04:24:11, Bugs Nash wrote: > > this file seems to be missing? > > the .h files are generated! so I added a flag in CSSProperties.in to say it should be generated:) (y) https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:7: #include "core/css/CSSStringValue.h" what is this needed for? https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:15: const CSSValue* CSSPropertyAPIWebkitTextEmphasisStyle::parseSingleValue( where is this being called from?
PTAL @bugsnash :) https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp (right): https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:7: #include "core/css/CSSStringValue.h" On 2017/01/05 at 04:44:41, Bugs Nash wrote: > what is this needed for? consumeString (line 22) returns a CSSStringValue, which is defined in CSSStringValue.h, so it doesnt compile if i don't include this :) https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:15: const CSSValue* CSSPropertyAPIWebkitTextEmphasisStyle::parseSingleValue( On 2017/01/05 at 04:44:41, Bugs Nash wrote: > where is this being called from? in CSSPropertyParser.cpp, on this line - https://codesearch.chromium.org/chromium/src/third_party/WebKit/Source/core/c...
On 2017/01/05 at 05:12:44, aazzam wrote: > PTAL @bugsnash :) > > https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/c... > File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp (right): > > https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/c... > third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:7: #include "core/css/CSSStringValue.h" > On 2017/01/05 at 04:44:41, Bugs Nash wrote: > > what is this needed for? > > consumeString (line 22) returns a CSSStringValue, which is defined in CSSStringValue.h, so it doesnt compile if i don't include this :) > > https://codereview.chromium.org/2609933005/diff/1/third_party/WebKit/Source/c... > third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:15: const CSSValue* CSSPropertyAPIWebkitTextEmphasisStyle::parseSingleValue( > On 2017/01/05 at 04:44:41, Bugs Nash wrote: > > where is this being called from? > > in CSSPropertyParser.cpp, on this line - https://codesearch.chromium.org/chromium/src/third_party/WebKit/Source/core/c... lgtm, but I don't fully understand how the generation magic is working here
https://codereview.chromium.org/2609933005/diff/20001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp (right): https://codereview.chromium.org/2609933005/diff/20001/third_party/WebKit/Sour... third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:9: #include "core/css/parser/CSSParserTokenRange.h" can be forward declared instead of included
aazzam@google.com changed reviewers: + sashab@chromium.org
sashab rs lgtm please :)
lgtm https://codereview.chromium.org/2609933005/diff/40001/third_party/WebKit/Sour... File third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp (right): https://codereview.chromium.org/2609933005/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:7: #include "core/css/CSSStringValue.h" Ohh I just saw your comment to bugsnash@, otherwise I would have said the same thing. That is so super annoying haha. Ok leave this here, and ignore the comment on your other patch about removing this https://codereview.chromium.org/2609933005/diff/40001/third_party/WebKit/Sour... third_party/WebKit/Source/core/css/properties/CSSPropertyAPIWebkitTextEmphasisStyle.cpp:8: #include "core/css/CSSValueList.h" +CSSIdentifierValue
Description was changed from ========== Implemented CSSPropertyAPI for webkit-text-emphasis-style property. Added CSSPropertyAPIWebkitTextEmphasisStyle which implements CSSPropertyAPI for the webkit-text-emphasis-style property. Parsing logic is the same as before, just was moved from CSSPropertyParser to the .cpp file. Added flag to CSSProperties.in so that the .h file will be generated. BUG=668012 ========== to ========== Implemented CSSPropertyAPI for the webkit-text-emphasis-style property. A part of Project Ribbon, separating the parsing logic for CSS properties from the parser into an API. This patch removes CSSPropertyWebkitTextEmphasis from the switch statement in parseSingleValue, and calls the API instead. A function pointer to the parseSingleValue function from the API for the page property is stored in a CSSPropertyDescriptor, and is called from CSSPropertyParser. This patch: - Adds CSSPropertyAPIWebkitTextEmphasis.cpp to the BUILD.gn file. - Adds api_class flag to CSSProperties.in, which indicates that CSSPropertyAPIWebkitTextEmphasis.h is generated. - Moves the parsing logic for page from CSSPropertyParser.cpp to CSSPropertyAPIWebkitTextEmphasis.cpp, which implements CSSPropertyAPI.h. ==========
Description was changed from ========== Implemented CSSPropertyAPI for the webkit-text-emphasis-style property. A part of Project Ribbon, separating the parsing logic for CSS properties from the parser into an API. This patch removes CSSPropertyWebkitTextEmphasis from the switch statement in parseSingleValue, and calls the API instead. A function pointer to the parseSingleValue function from the API for the page property is stored in a CSSPropertyDescriptor, and is called from CSSPropertyParser. This patch: - Adds CSSPropertyAPIWebkitTextEmphasis.cpp to the BUILD.gn file. - Adds api_class flag to CSSProperties.in, which indicates that CSSPropertyAPIWebkitTextEmphasis.h is generated. - Moves the parsing logic for page from CSSPropertyParser.cpp to CSSPropertyAPIWebkitTextEmphasis.cpp, which implements CSSPropertyAPI.h. ========== to ========== Implemented CSSPropertyAPI for the webkit-text-emphasis-style property. A part of Project Ribbon, separating the parsing logic for CSS properties from the parser into an API. This patch removes CSSPropertyWebkitTextEmphasis from the switch statement in parseSingleValue, and calls the API instead. A function pointer to the parseSingleValue function from the API for the page property is stored in a CSSPropertyDescriptor, and is called from CSSPropertyParser. This patch: - Adds CSSPropertyAPIWebkitTextEmphasis.cpp to the BUILD.gn file. - Adds api_class flag to CSSProperties.in, which indicates that CSSPropertyAPIWebkitTextEmphasis.h is generated. - Moves the parsing logic for page from CSSPropertyParser.cpp to CSSPropertyAPIWebkitTextEmphasis.cpp, which implements CSSPropertyAPI.h. BUG=668012 ==========
Description was changed from ========== Implemented CSSPropertyAPI for the webkit-text-emphasis-style property. A part of Project Ribbon, separating the parsing logic for CSS properties from the parser into an API. This patch removes CSSPropertyWebkitTextEmphasis from the switch statement in parseSingleValue, and calls the API instead. A function pointer to the parseSingleValue function from the API for the page property is stored in a CSSPropertyDescriptor, and is called from CSSPropertyParser. This patch: - Adds CSSPropertyAPIWebkitTextEmphasis.cpp to the BUILD.gn file. - Adds api_class flag to CSSProperties.in, which indicates that CSSPropertyAPIWebkitTextEmphasis.h is generated. - Moves the parsing logic for page from CSSPropertyParser.cpp to CSSPropertyAPIWebkitTextEmphasis.cpp, which implements CSSPropertyAPI.h. BUG=668012 ========== to ========== Implements CSSPropertyAPI for the webkit-text-emphasis-style property. A part of Project Ribbon, separating the parsing logic for CSS properties from the parser into an API. This patch removes CSSPropertyWebkitTextEmphasis from the switch statement in parseSingleValue, and calls the API instead. A function pointer to the parseSingleValue function from the API for the page property is stored in a CSSPropertyDescriptor, and is called from CSSPropertyParser. This patch: - Adds CSSPropertyAPIWebkitTextEmphasis.cpp to the BUILD.gn file. - Adds api_class flag to CSSProperties.in, which indicates that CSSPropertyAPIWebkitTextEmphasis.h is generated. - Moves the parsing logic for page from CSSPropertyParser.cpp to CSSPropertyAPIWebkitTextEmphasis.cpp, which implements CSSPropertyAPI.h. BUG=668012 ==========
The CQ bit was checked by aazzam@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...)
The CQ bit was checked by aazzam@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...) chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by aazzam@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...)
The CQ bit was checked by aazzam@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...)
The CQ bit was checked by aazzam@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_a...)
The CQ bit was checked by aazzam@google.com to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by aazzam@google.com
The patchset sent to the CQ was uploaded after l-g-t-m from bugsnash@chromium.org, sashab@chromium.org Link to the patchset: https://codereview.chromium.org/2609933005/#ps100001 (title: "rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 100001, "attempt_start_ts": 1484626404159280, "parent_rev": "6c3a6239605570130a9d3e1eba0f4278fd2ec14e", "commit_rev": "7cc977a4e6d8777b07306bae3a154d76e733d6b7"}
Message was sent while issue was closed.
Description was changed from ========== Implements CSSPropertyAPI for the webkit-text-emphasis-style property. A part of Project Ribbon, separating the parsing logic for CSS properties from the parser into an API. This patch removes CSSPropertyWebkitTextEmphasis from the switch statement in parseSingleValue, and calls the API instead. A function pointer to the parseSingleValue function from the API for the page property is stored in a CSSPropertyDescriptor, and is called from CSSPropertyParser. This patch: - Adds CSSPropertyAPIWebkitTextEmphasis.cpp to the BUILD.gn file. - Adds api_class flag to CSSProperties.in, which indicates that CSSPropertyAPIWebkitTextEmphasis.h is generated. - Moves the parsing logic for page from CSSPropertyParser.cpp to CSSPropertyAPIWebkitTextEmphasis.cpp, which implements CSSPropertyAPI.h. BUG=668012 ========== to ========== Implements CSSPropertyAPI for the webkit-text-emphasis-style property. A part of Project Ribbon, separating the parsing logic for CSS properties from the parser into an API. This patch removes CSSPropertyWebkitTextEmphasis from the switch statement in parseSingleValue, and calls the API instead. A function pointer to the parseSingleValue function from the API for the page property is stored in a CSSPropertyDescriptor, and is called from CSSPropertyParser. This patch: - Adds CSSPropertyAPIWebkitTextEmphasis.cpp to the BUILD.gn file. - Adds api_class flag to CSSProperties.in, which indicates that CSSPropertyAPIWebkitTextEmphasis.h is generated. - Moves the parsing logic for page from CSSPropertyParser.cpp to CSSPropertyAPIWebkitTextEmphasis.cpp, which implements CSSPropertyAPI.h. BUG=668012 Review-Url: https://codereview.chromium.org/2609933005 Cr-Commit-Position: refs/heads/master@{#443987} Committed: https://chromium.googlesource.com/chromium/src/+/7cc977a4e6d8777b07306bae3a15... ==========
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/7cc977a4e6d8777b07306bae3a15... |