Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(528)

Issue 1285393003: Element should check inActiveDocument before forcing layout. (Closed)

Created:
5 years, 4 months ago by esprehn
Modified:
4 years, 10 months ago
Reviewers:
pdr., dglazkov, ojan
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Element should check inActiveDocument before forcing layout. We would force layouts when touching layout sensitive properties on disconnected elements which is bad, for example: div = document.createElement('div') div.offsetTop; // force layout for no reason. :( Instead lets always check first. There's still other places in the codebase to check, but lets start with Element. BUG=585663

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -7 lines) Patch
M Source/core/dom/Element.cpp View 26 chunks +72 lines, -7 lines 0 comments Download

Messages

Total messages: 8 (4 generated)
esprehn
This probably needs a test, so many functions to test...
5 years, 4 months ago (2015-08-15 02:17:16 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1285393003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1285393003/1
5 years, 4 months ago (2015-08-15 02:17:22 UTC) #4
pdr.
Can we fix this higher up such as in the bindings layer? It's too easy ...
5 years, 4 months ago (2015-08-15 02:29:16 UTC) #5
commit-bot: I haz the power
5 years, 4 months ago (2015-08-15 02:43:38 UTC) #7
Dry run: Try jobs failed on following builders:
  cast_shell_linux on tryserver.chromium.linux (JOB_FAILED,
http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...)

Powered by Google App Engine
This is Rietveld 408576698