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

Issue 2528113002: [PAUSED] Add a scope for disallowing style update when calling hasEditableStyle (Closed)

Created:
4 years ago by Xiaocheng
Modified:
3 years, 10 months ago
Reviewers:
tkent, yosin_UTC9
CC:
aboxhall+watch_chromium.org, aboxhall, blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, dmazzoni+watch_chromium.org, dmazzoni, dtseng+watch_chromium.org, eae+blinkwatch, haraken, je_julie, nektarios, nektar+watch_chromium.org, rwlbuis, sof, yuzo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a scope for disallowing style update when calling hasEditableStyle Ideally, we would like to ensure clean style when calling hasEditableStyle. However, there are some code paths calling it with dirty style, and furthermore, in some situations where style cannot be updated (e.g., InStyleRecalc). This patch introduces DocumentLifecycle::DisallowStyleRecalcScope. In future patches, we will apply this scope in those trouble-making code paths, and make sure that we don't update style in this scope. BUG=667575

Patch Set 1 #

Patch Set 2 : Fri Nov 25 16:44:56 JST 2016 #

Patch Set 3 : Add DocumentLifecycle::DisallowStyleRecalcScope #

Total comments: 4

Patch Set 4 : use DISALLOW_COPY_AND_ASSIGN #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -1 line) Patch
M third_party/WebKit/Source/core/dom/DocumentLifecycle.h View 1 2 3 3 chunks +27 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 15 (11 generated)
Xiaocheng
PTAL.
4 years ago (2016-11-25 09:26:05 UTC) #6
yosin_UTC9
https://codereview.chromium.org/2528113002/diff/40001/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp File third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp (right): https://codereview.chromium.org/2528113002/diff/40001/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp#newcode84 third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp:84: : m_state(Uninitialized), How about moving these initialization into class ...
4 years ago (2016-11-25 09:52:37 UTC) #9
Xiaocheng
https://codereview.chromium.org/2528113002/diff/40001/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp File third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp (right): https://codereview.chromium.org/2528113002/diff/40001/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp#newcode84 third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp:84: : m_state(Uninitialized), On 2016/11/25 at 09:52:37, Yosi_UTC9 wrote: > ...
4 years ago (2016-11-25 10:05:32 UTC) #11
tkent
4 years ago (2016-11-27 23:43:52 UTC) #15
lgtm

Powered by Google App Engine
This is Rietveld 408576698