aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/performanceobserver.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2020-02-13 14:04:25 -0500
committerGitHub <noreply@github.com>2020-02-13 14:04:25 -0500
commit9c135f0e9554bd78bb7a432a872257e2cae13a48 (patch)
treea88181fa9abf09ef47ef8819688930dd6b936dbf /components/script/dom/performanceobserver.rs
parent2c70db5f5b3f418807bc13d503ffb9d1d7fe425b (diff)
parentf29e22f131291ed1bcd581cb9be6807c66c1534e (diff)
downloadservo-9c135f0e9554bd78bb7a432a872257e2cae13a48.tar.gz
servo-9c135f0e9554bd78bb7a432a872257e2cae13a48.zip
Auto merge of #25572 - pshaughn:atomnames, r=jdm
Make name content attributes consistently atoms and put them in rare_data for fast access <!-- Please describe your changes on the following line: --> All codepaths setting the name content attribute now use an atom, which is also stored in rare_data for direct lookup by a get_name method. Paralleling the get_name method, I added a get_id method, which makes some internal id-lookup cases nicer. A new test tests for a name setter on every HTML element type. In addition to its overt and upstreamable purpose of checking IDL property reflection semantics, for us this test also hits some Servo assertions that make sure the name is an atom in every case. If the test doesn't crash, even a failed test case still has the attribute as an atom rather than some other type. The failed cases are for elements that we have unimplemented or completely stubbed; I added a few missing name IDL properties to otherwise implemented elements. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #25570 and make progress on #25057 <!-- Either: --> - [X] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'components/script/dom/performanceobserver.rs')
0 files changed, 0 insertions, 0 deletions