diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-07-10 11:33:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-10 11:33:04 -0700 |
commit | 5010df627d481b95f449b90ff7500471b01ec600 (patch) | |
tree | 09c01582eafd497a77f49c95ed2a17b309bd8c43 /components/style/context.rs | |
parent | 2278a3f9811cdb643f7b06c1c2f8c3772e3794e5 (diff) | |
parent | 3463a9c2109eab06b023fcd4909b9802c9e34e30 (diff) | |
download | servo-5010df627d481b95f449b90ff7500471b01ec600.tar.gz servo-5010df627d481b95f449b90ff7500471b01ec600.zip |
Auto merge of #17650 - jryans:link-transition-crash, r=hiikezoe
Pass through visited style for after change
https://bugzilla.mozilla.org/show_bug.cgi?id=1377975
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17650)
<!-- Reviewable:end -->
Diffstat (limited to 'components/style/context.rs')
-rw-r--r-- | components/style/context.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/style/context.rs b/components/style/context.rs index dfb657585e7..db320aa4753 100644 --- a/components/style/context.rs +++ b/components/style/context.rs @@ -297,6 +297,11 @@ impl CascadeInputs { self.visited_rules.take() } + /// Whether there are any visited values. + pub fn has_visited_values(&self) -> bool { + self.visited_values.is_some() + } + /// Gets a reference to the visited computed values. Panic if the element /// does not have visited computed values. pub fn visited_values(&self) -> &Arc<ComputedValues> { |