|
|
Chromium Code Reviews|
Created:
4 years, 2 months ago by Xiaocheng Modified:
4 years, 2 months ago Reviewers:
yosin_UTC9 CC:
blink-reviews, blink-reviews-style_chromium.org, chromium-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionAudit use of updateStyleAndLayoutIgnorePendingStylesheets in EditingStyle::removeStyleFromRulesAndContext
BUG=590369
Committed: https://crrev.com/7b5e3814db7dc05daa6522663ab9f2c4452a805c
Cr-Commit-Position: refs/heads/master@{#425885}
Patch Set 1 #
Total comments: 5
Patch Set 2 : Add DCHECK for document activity #Patch Set 3 : Add further notes #
Messages
Total messages: 20 (12 generated)
The CQ bit was checked by xiaochengh@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
xiaochengh@chromium.org changed reviewers: + yosin@chromium.org
PTAL.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2422133002/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/EditingStyle.cpp (right): https://codereview.chromium.org/2422133002/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/EditingStyle.cpp:1417: DCHECK_GE(element->document().lifecycle().state(), Could you add DCHECK(element->document().lifecylce().isActive()) for just in case? Since, Stopping and Stopped is grater than StyleClean. :-< https://codereview.chromium.org/2422133002/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp (right): https://codereview.chromium.org/2422133002/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp:612: document().updateStyleAndLayoutIgnorePendingStylesheets(); Should we call Document::updateStyle() instead of updateStyleAndLayoutIgnorePendingStyleSheets() since a comment above says it for StyleResolver.
The CQ bit was checked by xiaochengh@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Updated. PTAL. https://codereview.chromium.org/2422133002/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/EditingStyle.cpp (right): https://codereview.chromium.org/2422133002/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/EditingStyle.cpp:1417: DCHECK_GE(element->document().lifecycle().state(), On 2016/10/17 at 09:45:18, Yosi_UTC9 wrote: > Could you add DCHECK(element->document().lifecylce().isActive()) for just in case? > Since, Stopping and Stopped is grater than StyleClean. :-< Thanks for the catch. Done. https://codereview.chromium.org/2422133002/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp (right): https://codereview.chromium.org/2422133002/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp:612: document().updateStyleAndLayoutIgnorePendingStylesheets(); On 2016/10/17 at 09:45:18, Yosi_UTC9 wrote: > Should we call Document::updateStyle() instead of updateStyleAndLayoutIgnorePendingStyleSheets() since a comment above says it for StyleResolver. Document::updateStyle is private...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm after adding TODO regarding update style. https://codereview.chromium.org/2422133002/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp (right): https://codereview.chromium.org/2422133002/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp:612: document().updateStyleAndLayoutIgnorePendingStylesheets(); On 2016/10/17 at 10:07:27, Xiaocheng wrote: > On 2016/10/17 at 09:45:18, Yosi_UTC9 wrote: > > Should we call Document::updateStyle() instead of updateStyleAndLayoutIgnorePendingStyleSheets() since a comment above says it for StyleResolver. > > Document::updateStyle is private... Could you leave TODO comment that we need to update only style w/ ignoring pending style sheets? It seems current implementation of Document::updateStyle() isn't ready for calling out side Document::updateStyleAndLayout(). We need to do following before calling updateStyle(): DocumentAnimations::updateAnimationTimingIfNeeded(*this); evaluateMediaQueryListIfNeeded(); updateUseShadowTreesIfNeeded(); updateDistribution(); updateStyleInvalidationIfNeeded(); We might want to have updateLifcycleToStyleClean() similar to FrameView::updateLifecylceToLayoutClean() in Document.
The CQ bit was checked by xiaochengh@chromium.org
Committing with more notes added.
The patchset sent to the CQ was uploaded after l-g-t-m from yosin@chromium.org Link to the patchset: https://codereview.chromium.org/2422133002/#ps40001 (title: "Add further notes")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== Audit use of updateStyleAndLayoutIgnorePendingStylesheets in EditingStyle::removeStyleFromRulesAndContext BUG=590369 ========== to ========== Audit use of updateStyleAndLayoutIgnorePendingStylesheets in EditingStyle::removeStyleFromRulesAndContext BUG=590369 Committed: https://crrev.com/7b5e3814db7dc05daa6522663ab9f2c4452a805c Cr-Commit-Position: refs/heads/master@{#425885} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/7b5e3814db7dc05daa6522663ab9f2c4452a805c Cr-Commit-Position: refs/heads/master@{#425885} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
