diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2016-04-15 15:44:44 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2016-04-16 10:30:03 -0700 |
commit | fbef2724bf12c2204f0256cebaa5a4d0e8ef45f2 (patch) | |
tree | 29865c0540c4cdd4c125b4511debad0f0c557923 /components/layout/construct.rs | |
parent | b607b3a9322dc69e4d5629f27f78830483c31a66 (diff) | |
download | servo-fbef2724bf12c2204f0256cebaa5a4d0e8ef45f2.tar.gz servo-fbef2724bf12c2204f0256cebaa5a4d0e8ef45f2.zip |
Fix up inline context flags during text fragment scanning
This fixes two problems that could cause scanned text fragments to end up with
incorrect LAST_FRAGMENT_OF_ELEMENT or FIRST_FRAGMENT_OF_ELEMENT flags:
1. If a single unscanned fragment was split into multiple scanned fragments,
then all of them would inherit its flags. We need to clear these flags,
except for the first and last scanned fragment.
2. When an unscanned fragment generated zero scanned fragments, we correctly
called `meld_with_next_inline_fragment` to transfer LAST_FRAGMENT flags to
the preceding fragment, but we didn't do anything to transfer
FIRST_FRAGMENT flags to the following fragment. We can fix this by calling
`meld_with_prev_inline_fragment` on the following fragment.
Diffstat (limited to 'components/layout/construct.rs')
0 files changed, 0 insertions, 0 deletions