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

Issue 2374183004: Make non-null VisibleSelections creatable only by createVisibleSelection[Deprecated] (Closed)

Created:
4 years, 2 months ago by Xiaocheng
Modified:
4 years, 2 months ago
CC:
aboxhall+watch_chromium.org, aboxhall, blink-reviews, blink-reviews-dom_chromium.org, blink-reviews-html_chromium.org, blink-reviews-style_chromium.org, chromium-reviews, dcheng, dglazkov+blink, dmazzoni+watch_chromium.org, dmazzoni, krit, dtapuska+blinkwatch_chromium.org, dtseng+watch_chromium.org, eae+blinkwatch, f(malita), fs, groby+blinkspell_chromium.org, gyuyoung2, haraken, je_julie, kinuko+watch, kouhei+svg_chromium.org, mlamouri+watch-blink_chromium.org, nektar+watch_chromium.org, nektarios, nzolghadr+blinkwatch_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney, sof, timvolodine, yuzo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make non-null VisibleSelections creatable only by createVisibleSelection[Deprecated] This patch is a preparation for enforcing the creation of VisibleSelections in clean layout, by hiding the constructors (other than default, copy and assignment) of VisibleSelection as private and introducing new functions createVisibleSelection[Deprecated] for creating new VisibleSelections. createVisibleSelectionDeprecated can be called with dirty layout, and performs synchronous layout update by itself. All call sites of the constructors hidden by this patch are switched to it, except for that in AXLayoutObject. createVisibleSelection must be called with clean layout. The above-mentioned call site in AXLayoutObject is switched to call createVisibleSelection since it is known to have ensured clean layout. In future patches, all call sites of createVisibleSelectionDeprecated will be made to ensure clean layout and then switch to createVisibleSelection. BUG=651373 Committed: https://crrev.com/cfe6f8d59b4ed940fd55f453e629c663e62d8755 Cr-Commit-Position: refs/heads/master@{#422011}

Patch Set 1 #

Patch Set 2 : Introduce proper version and apply in AX #

Patch Set 3 : Fix mac compile error #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+342 lines, -168 lines) Patch
M third_party/WebKit/Source/core/dom/Element.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/DOMSelection.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingUtilities.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/Editor.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.cpp View 6 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp View 9 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/editing/GranularityStrategy.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/GranularityStrategyTest.cpp View 11 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/core/editing/PendingSelection.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionAdjuster.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionAdjusterTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionController.cpp View 9 chunks +10 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionModifier.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleSelection.h View 1 3 chunks +38 lines, -9 lines 1 comment Download
M third_party/WebKit/Source/core/editing/VisibleSelection.cpp View 1 3 chunks +169 lines, -24 lines 1 comment Download
M third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp View 9 chunks +17 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/BreakBlockquoteCommand.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CreateLinkCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertListCommandTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/MoveSelectionCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommandTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLTextFormControlElementTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/EventHandlerTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/page/DragController.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/page/FocusController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp View 1 1 chunk +1 line, -1 line 1 comment Download
M third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/mac/WebSubstringUtil.mm View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (16 generated)
Xiaocheng
PTAL.
4 years, 2 months ago (2016-09-29 14:18:40 UTC) #12
dmazzoni
lgtm
4 years, 2 months ago (2016-09-29 15:03:40 UTC) #15
dglazkov
lgtm
4 years, 2 months ago (2016-09-29 15:53:41 UTC) #17
yosin_UTC9
lgtm Thanks for non-mechanical big change! (^_^)b https://codereview.chromium.org/2374183004/diff/40001/third_party/WebKit/Source/core/editing/VisibleSelection.cpp File third_party/WebKit/Source/core/editing/VisibleSelection.cpp (right): https://codereview.chromium.org/2374183004/diff/40001/third_party/WebKit/Source/core/editing/VisibleSelection.cpp#newcode107 third_party/WebKit/Source/core/editing/VisibleSelection.cpp:107: if (extent.isNotNull()) ...
4 years, 2 months ago (2016-09-30 01:20:36 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2374183004/40001
4 years, 2 months ago (2016-09-30 01:43:48 UTC) #20
Xiaocheng
Thanks for the review. Committing it...
4 years, 2 months ago (2016-09-30 01:44:17 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-09-30 01:55:59 UTC) #22
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 02:00:51 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/cfe6f8d59b4ed940fd55f453e629c663e62d8755
Cr-Commit-Position: refs/heads/master@{#422011}

Powered by Google App Engine
This is Rietveld 408576698