|
|
Chromium Code Reviews|
Created:
4 years, 3 months ago by Xiaocheng Modified:
4 years, 3 months ago Reviewers:
yosin_UTC9 CC:
blink-reviews, chromium-reviews Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionPrune CreateVisiblePositionDeprecated from DOMSelection
BUG=647219
Committed: https://crrev.com/7cd2a1fec6f76746a8230a9debe04be1160b7569
Cr-Commit-Position: refs/heads/master@{#419718}
Patch Set 1 #
Total comments: 5
Patch Set 2 : Address comments #
Messages
Total messages: 18 (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.
lgtm w/ nits https://codereview.chromium.org/2351533005/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/DOMSelection.cpp (right): https://codereview.chromium.org/2351533005/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/DOMSelection.cpp:246: m_frame->selection().moveTo(selection.end(), SelDefaultAffinity); Please get rid of FrameSelection::moveTo(const VisibilePosition&, ...) in another patch. ;-) Is it better to mention in description? https://codereview.chromium.org/2351533005/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/DOMSelection.cpp:294: m_frame->document()->updateStyleAndLayoutIgnorePendingStylesheets(); nit: It seems strange that making layout tree clean here, before calling |createPosiion()|. And since |VisibleSelection| ctor makes layout tree clean. we don't need to update layout tree now. Let postpone calling update layout here until we hoist update layout tree from |VisibleSelection| ctor.
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...
Thanks. Updated. https://codereview.chromium.org/2351533005/diff/1/third_party/WebKit/Source/c... File third_party/WebKit/Source/core/editing/DOMSelection.cpp (right): https://codereview.chromium.org/2351533005/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/DOMSelection.cpp:246: m_frame->selection().moveTo(selection.end(), SelDefaultAffinity); On 2016/09/20 at 08:33:17, Yosi_UTC9 wrote: > Please get rid of FrameSelection::moveTo(const VisibilePosition&, ...) in another patch. ;-) > Is it better to mention in description? A TODO is added to FrameSelection::moveTo(VP). https://codereview.chromium.org/2351533005/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/DOMSelection.cpp:294: m_frame->document()->updateStyleAndLayoutIgnorePendingStylesheets(); On 2016/09/20 at 08:33:17, Yosi_UTC9 wrote: > nit: It seems strange that making layout tree clean here, before calling |createPosiion()|. > And since |VisibleSelection| ctor makes layout tree clean. we don't need to update layout tree now. > > Let postpone calling update layout here until we hoist update layout tree from |VisibleSelection| ctor. Done. https://codereview.chromium.org/2351533005/diff/1/third_party/WebKit/Source/c... third_party/WebKit/Source/core/editing/DOMSelection.cpp:294: m_frame->document()->updateStyleAndLayoutIgnorePendingStylesheets(); On 2016/09/20 at 08:33:17, Yosi_UTC9 wrote: > nit: It seems strange that making layout tree clean here, before calling |createPosiion()|. > And since |VisibleSelection| ctor makes layout tree clean. we don't need to update layout tree now. > > Let postpone calling update layout here until we hoist update layout tree from |VisibleSelection| ctor. Reasonable. Done.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by xiaochengh@chromium.org
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/2351533005/#ps20001 (title: "Address comments")
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 #2 (id:20001)
Message was sent while issue was closed.
Description was changed from ========== Prune CreateVisiblePositionDeprecated from DOMSelection BUG=647219 ========== to ========== Prune CreateVisiblePositionDeprecated from DOMSelection BUG=647219 Committed: https://crrev.com/7cd2a1fec6f76746a8230a9debe04be1160b7569 Cr-Commit-Position: refs/heads/master@{#419718} ==========
Message was sent while issue was closed.
Patchset 2 (id:??) landed as https://crrev.com/7cd2a1fec6f76746a8230a9debe04be1160b7569 Cr-Commit-Position: refs/heads/master@{#419718} |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
