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

Issue 2753193002: Editing: Indent command: Do not insert BLOCKQUOTE under the root HTML element. (Closed)

Created:
3 years, 9 months ago by tkent
Modified:
3 years, 9 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Editing: Indent command: Do not insert BLOCKQUOTE under the root HTML element. - ApplyBlockElementCommand, which IndentOutdentCommand inherits from, shrinks selection to fit the body. - startOfParagraph(), endOfParagraph(), mostBackwardCaretPosition(), and mostBackwardCaretPosition() make sure a position doesn't move across BODY boundary. - Add NodeTraversal::contains() for the above bullet. FlatTreeTraversal already has contains(). - Add dumpFromRoot options to assert_selection(). assert_selection() dumps children of the body if it exists by default. BUG=657462

Patch Set 1 : . #

Total comments: 7

Messages

Total messages: 19 (15 generated)
tkent
yosin@, would you review this please? All tests should pass with this patch set.
3 years, 9 months ago (2017-03-17 04:38:39 UTC) #13
yosin_UTC9
https://codereview.chromium.org/2753193002/diff/40001/third_party/WebKit/LayoutTests/editing/assert_selection.js File third_party/WebKit/LayoutTests/editing/assert_selection.js (right): https://codereview.chromium.org/2753193002/diff/40001/third_party/WebKit/LayoutTests/editing/assert_selection.js#newcode25 third_party/WebKit/LayoutTests/editing/assert_selection.js:25: // dumpFromRoot: A boolean. Default is false. Could you ...
3 years, 9 months ago (2017-03-17 10:04:11 UTC) #17
yosin_UTC9
https://codereview.chromium.org/2753193002/diff/40001/third_party/WebKit/Source/core/dom/NodeTraversal.h File third_party/WebKit/Source/core/dom/NodeTraversal.h (right): https://codereview.chromium.org/2753193002/diff/40001/third_party/WebKit/Source/core/dom/NodeTraversal.h#newcode125 third_party/WebKit/Source/core/dom/NodeTraversal.h:125: return container.contains(&other); Since there is no unit test for ...
3 years, 9 months ago (2017-03-17 10:06:13 UTC) #18
tkent
3 years, 9 months ago (2017-03-27 05:34:11 UTC) #19
Offline discussion:
We concluded that we should not change VisibleUnits for this, and should adjust
positions/selections in the command layer instead. I filed crbug.com/705343.

I'm closing this issue. Fixing crbug.com/657462 with this way needs a few weeks,
I guess.

Powered by Google App Engine
This is Rietveld 408576698