Revision ec35b03ca5e8eec6eb1767a77f0aea13855515a3 authored by Rune Lillesveen on 29 June 2018, 22:17:37 UTC, committed by Blink WPT Bot on 29 June 2018, 22:26:52 UTC
We used to create these pseudo elements and their computed styles in Element::AttachLayoutTree when building the layout tree. Now we create or dispose these elements from style recalc, that is, UpdatePseudoElement. To make pseudo elements live through a style recalc with a layout tree re-attach we no longer clear the pseudo elements during DetachLayoutTree for performing_reattach=true. We do however need to clear the pseudo elements which do not get a layout object for the re-attach. That is done in AttachLayoutTree for the originating element when the originating element does not generate a layout box. We stop using the pseudo style cache on ComputedStyle for PseudoElements and instead return the ComputedStyle when creating the pseudo element and store it as non-attached style which can later be retrieved when attaching the layout object. An effect of this change is that we can detect transitions on pseudo elements when ancestors display types changes and causes re-attachment. That is issue 836140. ::first-letter may still be generated during layout tree building, and the ::first-letter layout structure may still be updated during style recalc. Bug: 836126, 836140 Change-Id: Iafad705b7a7b988d4c1598e8a126ce0d79c5873d Reviewed-on: https://chromium-review.googlesource.com/1112244 Commit-Queue: Rune Lillesveen <futhark@chromium.org> Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/master@{#571665}
1 parent c360ca0
File | Mode | Size |
---|---|---|
BackgroundSync.idl | -rw-r--r-- | 801 bytes |
DOM-Parsing.idl | -rw-r--r-- | 905 bytes |
FileAPI.idl | -rw-r--r-- | 2.5 KB |
IndexedDB.idl | -rw-r--r-- | 6.7 KB |
InputDeviceCapabilities.idl | -rw-r--r-- | 719 bytes |
META.yml | -rw-r--r-- | 41 bytes |
ResizeObserver.idl | -rw-r--r-- | 846 bytes |
ServiceWorker.idl | -rw-r--r-- | 7.0 KB |
WebCryptoAPI.idl | -rw-r--r-- | 8.1 KB |
WebIDL.idl | -rw-r--r-- | 1.9 KB |
accelerometer.idl | -rw-r--r-- | 869 bytes |
ambient-light.idl | -rw-r--r-- | 342 bytes |
background-fetch.idl | -rw-r--r-- | 3.7 KB |
battery.idl | -rw-r--r-- | 823 bytes |
beacon.idl | -rw-r--r-- | 257 bytes |
budget-api.idl | -rw-r--r-- | 776 bytes |
clipboard-apis.idl | -rw-r--r-- | 877 bytes |
compat.idl | -rw-r--r-- | 379 bytes |
console.idl | -rw-r--r-- | 770 bytes |
cookie-store.idl | -rw-r--r-- | 2.6 KB |
cors-rfc1918.idl | -rw-r--r-- | 393 bytes |
credential-management.idl | -rw-r--r-- | 2.5 KB |
css-animations.idl | -rw-r--r-- | 1.4 KB |
css-conditional.idl | -rw-r--r-- | 935 bytes |
css-font-loading.idl | -rw-r--r-- | 2.9 KB |
css-fonts.idl | -rw-r--r-- | 1.2 KB |
css-masking.idl | -rw-r--r-- | 683 bytes |
css-paint-api.idl | -rw-r--r-- | 1.3 KB |
css-transitions.idl | -rw-r--r-- | 813 bytes |
css-typed-om.idl | -rw-r--r-- | 9.4 KB |
cssom-view.idl | -rw-r--r-- | 6.0 KB |
cssom.idl | -rw-r--r-- | 4.4 KB |
dedicated-workers.idl | -rw-r--r-- | 4.6 KB |
dom.idl | -rw-r--r-- | 17.7 KB |
encoding.idl | -rw-r--r-- | 833 bytes |
encrypted-media.idl | -rw-r--r-- | 3.9 KB |
entries-api.idl | -rw-r--r-- | 2.1 KB |
feature-policy.idl | -rw-r--r-- | 256 bytes |
fetch.idl | -rw-r--r-- | 3.6 KB |
filter-effects.idl | -rw-r--r-- | 10.5 KB |
fullscreen.idl | -rw-r--r-- | 749 bytes |
gamepad.idl | -rw-r--r-- | 939 bytes |
geolocation-sensor.idl | -rw-r--r-- | 1.1 KB |
geometry.idl | -rw-r--r-- | 11.5 KB |
gyroscope.idl | -rw-r--r-- | 558 bytes |
hr-time.idl | -rw-r--r-- | 503 bytes |
html.idl | -rw-r--r-- | 78.2 KB |
image-capture.idl | -rw-r--r-- | 3.7 KB |
input-events.idl | -rw-r--r-- | 539 bytes |
keyboard-lock.idl | -rw-r--r-- | 408 bytes |
keyboard-map.idl | -rw-r--r-- | 279 bytes |
magnetometer.idl | -rw-r--r-- | 932 bytes |
media-capabilities.idl | -rw-r--r-- | 1.7 KB |
mediacapture-depth.idl | -rw-r--r-- | 2.7 KB |
mediacapture-fromelement.idl | -rw-r--r-- | 530 bytes |
mediacapture-main.idl | -rw-r--r-- | 8.5 KB |
mediacapture-record.idl | -rw-r--r-- | 1.7 KB |
mediasession.idl | -rw-r--r-- | 1.2 KB |
orientation-event.idl | -rw-r--r-- | 2.1 KB |
orientation-sensor.idl | -rw-r--r-- | 941 bytes |
payment-handler.idl | -rw-r--r-- | 3.5 KB |
payment-request.idl | -rw-r--r-- | 4.7 KB |
performance-timeline.idl | -rw-r--r-- | 1.6 KB |
permissions.idl | -rw-r--r-- | 1.2 KB |
pointerevents-extension.idl | -rw-r--r-- | 256 bytes |
pointerevents.idl | -rw-r--r-- | 1.8 KB |
pointerlock.idl | -rw-r--r-- | 680 bytes |
presentation-api.idl | -rw-r--r-- | 3.3 KB |
proximity.idl | -rw-r--r-- | 398 bytes |
push-api.idl | -rw-r--r-- | 2.8 KB |
referrer-policy.idl | -rw-r--r-- | 391 bytes |
remote-playback.idl | -rw-r--r-- | 969 bytes |
resource-timing.idl | -rw-r--r-- | 1.4 KB |
screen-orientation.idl | -rw-r--r-- | 892 bytes |
scroll-animations.idl | -rw-r--r-- | 984 bytes |
secure-contexts.idl | -rw-r--r-- | 276 bytes |
selection-api.idl | -rw-r--r-- | 1.9 KB |
sensors.idl | -rw-r--r-- | 817 bytes |
server-timing.idl | -rw-r--r-- | 570 bytes |
shape-detection-api.idl | -rw-r--r-- | 1.6 KB |
storage.idl | -rw-r--r-- | 626 bytes |
touch-events.idl | -rw-r--r-- | 2.9 KB |
touchevents.idl | -rw-r--r-- | 395 bytes |
uievents.idl | -rw-r--r-- | 4.3 KB |
url.idl | -rw-r--r-- | 1.2 KB |
user-timing.idl | -rw-r--r-- | 635 bytes |
vibration.idl | -rw-r--r-- | 326 bytes |
wake-lock.idl | -rw-r--r-- | 645 bytes |
web-animations.idl | -rw-r--r-- | 5.3 KB |
web-bluetooth.idl | -rw-r--r-- | 7.1 KB |
web-nfc.idl | -rw-r--r-- | 1.5 KB |
web-share.idl | -rw-r--r-- | 349 bytes |
webappsec-subresource-integrity.idl | -rw-r--r-- | 334 bytes |
webaudio.idl | -rw-r--r-- | 17.7 KB |
webauthn.idl | -rw-r--r-- | 6.1 KB |
webdriver.idl | -rw-r--r-- | 304 bytes |
webrtc-pc.idl | -rw-r--r-- | 22.8 KB |
webusb.idl | -rw-r--r-- | 7.0 KB |
webvtt.idl | -rw-r--r-- | 1.4 KB |
webxr.idl | -rw-r--r-- | 4.8 KB |
xhr.idl | -rw-r--r-- | 3.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...