diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-07-17 20:46:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-17 20:46:24 -0700 |
commit | d87ea67bf2efec45368d3e48634c6c16de7486ff (patch) | |
tree | a306245f8288b20434a677eeceb5bdfb391417d4 /components/script/dom/node.rs | |
parent | f5c60e8c5aec34a1a6ff6c61f1174a7c93158159 (diff) | |
parent | f754cacbd53c47c63639e1d1226812427ef1eaad (diff) | |
download | servo-d87ea67bf2efec45368d3e48634c6c16de7486ff.tar.gz servo-d87ea67bf2efec45368d3e48634c6c16de7486ff.zip |
Auto merge of #11890 - shinglyu:viewport-percent-recalc, r=mbrubeck
Bug 10104 - Only restyle nodes that uses viewport percentage units on viewport size change
<!-- Please describe your changes on the following line: -->
Bug 10104 - Only restyle nodes that uses viewport percentage units on viewport size change
---
<!-- 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 #10104 (github issue number if applicable).
<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11890)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 5cb2ac540c4..37495be3ba3 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -159,7 +159,9 @@ bitflags! { const SEQUENTIALLY_FOCUSABLE = 0x20, /// Whether any ancestor is a fragmentation container - const CAN_BE_FRAGMENTED = 0x40 + const CAN_BE_FRAGMENTED = 0x40, + #[doc = "Specifies whether this node needs to be dirted when viewport size changed."] + const DIRTY_ON_VIEWPORT_SIZE_CHANGE = 0x80 } } |