Skip to content

Invalidate node style after style property removed - #9378

Merged
bors-servo merged 1 commit into
servo:masterfrom
paulrouget:removeProperty
Jan 27, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
paulrouget:removeProperty

Conversation

@paulrouget

Copy link
Copy Markdown
Contributor

Fix #9377

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jan 19, 2016
@nox

nox commented Jan 19, 2016

Copy link
Copy Markdown
Contributor

@bors-servo r-

I'm pretty sure this is the wrong fix. You should make CSSStyleDeclaration change the style attribute of the element, and then Element::attribute_mutated will call Document::content_changed for you.

@nox nox self-assigned this Jan 19, 2016
@nox nox added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jan 19, 2016
@paulrouget

Copy link
Copy Markdown
Contributor Author

I'm pretty sure this is the wrong fix. You should make CSSStyleDeclaration change the style attribute of the element, and then Element::attribute_mutated will call Document::content_changed for you.

I just reproduced what setProperty and setPropertyPriority do.

Element::remove_inline_style_property and Element::update_inline_style apparently don't trigger attribute_mutated. Because of #9307 I guess.

@nox

nox commented Jan 23, 2016

Copy link
Copy Markdown
Contributor

setProperty and setPropertyPriority look wrong to me too.

@paulrouget

Copy link
Copy Markdown
Contributor Author

setProperty and setPropertyPriority look wrong to me too.

Right. I'm expecting PR #9307 to remove all the calls to content_changed.

@paulrouget

Copy link
Copy Markdown
Contributor Author

@nox, do you mind if we land this while waiting for PR #9410?

This is breaking browser.html HTML pretty badly, and RemoveProperty will eventually be fixed along setProperty and setPropertyPriority in PR #9410.

@KiChjang

Copy link
Copy Markdown
Contributor

@bors-servo r+

@nox please don't hurt me.

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit c6e902b has been approved by KiChjang

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit c6e902b with merge 81381ea...

bors-servo pushed a commit that referenced this pull request Jan 27, 2016
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Jan 27, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac-rel-css

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Jan 27, 2016
@KiChjang

Copy link
Copy Markdown
Contributor
Ran 9335 tests finished in 1138.0 seconds.
  • 9333 ran as expected. 55 tests skipped.
  • 2 tests passed unexpectedly

Tests with unexpected results:
  ▶ PASS [expected FAIL] /css-transforms-1_dev/html/perspective-containing-block-dynamic-1a.htm

  ▶ PASS [expected FAIL] /css-transforms-1_dev/html/transform-containing-block-dynamic-1a.htm

wat

@KiChjang

Copy link
Copy Markdown
Contributor

Oh ok, the test failures aren't intermittents - it's a new pass after the changes made in this PR. @paulrouget you'll have to update the test expectations.

@KiChjang KiChjang added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-tests-failed The changes caused existing tests to fail. labels Jan 27, 2016
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Jan 27, 2016
@nox

nox commented Jan 27, 2016

Copy link
Copy Markdown
Contributor

@paulrouget @KiChjang Sounds reasonable. :)

@nox

nox commented Jan 27, 2016

Copy link
Copy Markdown
Contributor

@bors-servo r=KiChjang

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 6d7dc0b has been approved by KiChjang

@highfive highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Jan 27, 2016
@highfive highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jan 27, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 6d7dc0b with merge 8c07362...

bors-servo pushed a commit that referenced this pull request Jan 27, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants