diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2014-12-10 23:16:18 -0800 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2014-12-12 14:55:24 -0800 |
commit | 071d320728cc2a4976801bd7a955f8efa138b739 (patch) | |
tree | 9377550ef7cfa6f5ba137b1ea1e1566af6158199 /components/layout/flow.rs | |
parent | e74a57821f89aa637c4aa20e8757b2635c01578d (diff) | |
download | servo-071d320728cc2a4976801bd7a955f8efa138b739.tar.gz servo-071d320728cc2a4976801bd7a955f8efa138b739.zip |
layout: Refactor inline layout a bit.
Diffstat (limited to 'components/layout/flow.rs')
-rw-r--r-- | components/layout/flow.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/components/layout/flow.rs b/components/layout/flow.rs index 536a2798e13..bfca9c6168c 100644 --- a/components/layout/flow.rs +++ b/components/layout/flow.rs @@ -288,6 +288,9 @@ pub trait Flow: fmt::Show + ToString + Sync { /// Return the dimensions of the containing block generated by this flow for absolutely- /// positioned descendants. For block flows, this is the padding box. + /// + /// NB: Do not change this `&self` to `&mut self` under any circumstances! It has security + /// implications because this can be called on parents concurrently from descendants! fn generated_containing_block_rect(&self) -> LogicalRect<Au> { panic!("generated_containing_block_position not yet implemented for this flow") } |