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

Remove fields with parsed attribute values. #7863

Open
Ms2ger opened this issue Oct 5, 2015 · 4 comments
Open

Remove fields with parsed attribute values. #7863

Ms2ger opened this issue Oct 5, 2015 · 4 comments
Labels

Comments

@Ms2ger
Copy link
Contributor

@Ms2ger Ms2ger commented Oct 5, 2015

For example HTMLFontElement::color. The parsed representation should be stored in an AttrValue variant.

@eefriedman
Copy link
Contributor

@eefriedman eefriedman commented Oct 7, 2015

Why is this an improvement? I mean, I can understand storing the parsed representation in an AttrValue when there's an IDL getter which needs the parsed representation... but if there isn't, all you're getting out of the deal is unnecessary attribute lookups.

@Ms2ger
Copy link
Contributor Author

@Ms2ger Ms2ger commented Oct 8, 2015

Having extra fields is more complex, more likely to get out of sync, and uses more memory.

frewsxcv added a commit to frewsxcv/servo that referenced this issue Oct 29, 2015
bors-servo added a commit that referenced this issue Oct 30, 2015
…dman

Remove struct field for <font> 'face' attribute

Part of #7863

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8255)
<!-- Reviewable:end -->
@eefriedman
Copy link
Contributor

@eefriedman eefriedman commented Nov 4, 2015

Elements which still need work:

HTMLBodyElement
HTMLButtonElement
HTMLFontElement #8404
HTMLHeadingElement
HTMLInputElement (size)
HTMLTableCellElement (see also #8417)
HTMLTableElement (see also #8417)
HTMLTableRowElement #8431
HTMLTableSectionElement #8431
HTMLTextAreaElement (rows, cols) #9099

frewsxcv added a commit to frewsxcv/servo that referenced this issue Nov 8, 2015
bors-servo added a commit that referenced this issue Dec 31, 2015
Remove fields with parsed attribute values on HTMLTextAreaElement

#7863

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9099)
<!-- Reviewable:end -->
frewsxcv added a commit to frewsxcv/servo that referenced this issue Dec 31, 2015
bors-servo added a commit that referenced this issue Jan 2, 2016
Remove parsed attribute 'bgcolor' field HTMLTableElement

#7863

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9111)
<!-- Reviewable:end -->
frewsxcv added a commit to frewsxcv/servo that referenced this issue Jan 3, 2016
jrmuizel pushed a commit to jrmuizel/gecko-cinnabar that referenced this issue Jun 12, 2017
…MLTextAreaElement (from frewsxcv:rm-parsed-attr); r=nox

servo/servo#7863

Source-Repo: https://github.com/servo/servo
Source-Revision: 5e497cf3112194e4e35776c7df97930f8ff7e153
jrmuizel pushed a commit to jrmuizel/gecko-cinnabar that referenced this issue Jun 12, 2017
…eElement (from frewsxcv:rm-parsed-attr); r=nox

servo/servo#7863

Source-Repo: https://github.com/servo/servo
Source-Revision: b1ca3d1cdff412c5ae12113c3681f789becebabc
@nox
Copy link
Member

@nox nox commented Sep 30, 2017

There are still some such fields remaining.

gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this issue Oct 1, 2019
…MLTextAreaElement (from frewsxcv:rm-parsed-attr); r=nox

servo/servo#7863

Source-Repo: https://github.com/servo/servo
Source-Revision: 5e497cf3112194e4e35776c7df97930f8ff7e153

UltraBlame original commit: 91150be0634dd91561bc33557f7607dc66d4777b
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this issue Oct 1, 2019
…eElement (from frewsxcv:rm-parsed-attr); r=nox

servo/servo#7863

Source-Repo: https://github.com/servo/servo
Source-Revision: b1ca3d1cdff412c5ae12113c3681f789becebabc

UltraBlame original commit: 97251a7308bfc8138a9d4306963d771d190a95cf
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this issue Oct 1, 2019
…MLTextAreaElement (from frewsxcv:rm-parsed-attr); r=nox

servo/servo#7863

Source-Repo: https://github.com/servo/servo
Source-Revision: 5e497cf3112194e4e35776c7df97930f8ff7e153

UltraBlame original commit: 91150be0634dd91561bc33557f7607dc66d4777b
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this issue Oct 1, 2019
…eElement (from frewsxcv:rm-parsed-attr); r=nox

servo/servo#7863

Source-Repo: https://github.com/servo/servo
Source-Revision: b1ca3d1cdff412c5ae12113c3681f789becebabc

UltraBlame original commit: 97251a7308bfc8138a9d4306963d771d190a95cf
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this issue Oct 1, 2019
…MLTextAreaElement (from frewsxcv:rm-parsed-attr); r=nox

servo/servo#7863

Source-Repo: https://github.com/servo/servo
Source-Revision: 5e497cf3112194e4e35776c7df97930f8ff7e153

UltraBlame original commit: 91150be0634dd91561bc33557f7607dc66d4777b
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this issue Oct 1, 2019
…eElement (from frewsxcv:rm-parsed-attr); r=nox

servo/servo#7863

Source-Repo: https://github.com/servo/servo
Source-Revision: b1ca3d1cdff412c5ae12113c3681f789becebabc

UltraBlame original commit: 97251a7308bfc8138a9d4306963d771d190a95cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.