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

Side by Side Diff: Source/core/editing/htmlediting.h

Issue 340713003: Ignore visibility when checking whether Position is editable or not at DeletetSelectionCommand (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2014-06-19T03:44:02 Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/editing/DeleteSelectionCommand.cpp ('k') | Source/core/editing/htmlediting.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 return editingIgnoresContent(node) ? positionBeforeNode(node) : firstPositio nInNode(node); 137 return editingIgnoresContent(node) ? positionBeforeNode(node) : firstPositio nInNode(node);
138 } 138 }
139 139
140 inline Position lastPositionInOrAfterNode(Node* node) 140 inline Position lastPositionInOrAfterNode(Node* node)
141 { 141 {
142 if (!node) 142 if (!node)
143 return Position(); 143 return Position();
144 return editingIgnoresContent(node) ? positionAfterNode(node) : lastPositionI nNode(node); 144 return editingIgnoresContent(node) ? positionAfterNode(node) : lastPositionI nNode(node);
145 } 145 }
146 146
147 Position lastEditablePositionBeforePositionInRoot(const Position&, Node*);
148
147 // comparision functions on Position 149 // comparision functions on Position
148 150
149 int comparePositions(const Position&, const Position&); 151 int comparePositions(const Position&, const Position&);
150 int comparePositions(const PositionWithAffinity&, const PositionWithAffinity&); 152 int comparePositions(const PositionWithAffinity&, const PositionWithAffinity&);
151 153
152 // boolean functions on Position 154 // boolean functions on Position
153 155
154 enum EUpdateStyle { UpdateStyle, DoNotUpdateStyle }; 156 enum EUpdateStyle { UpdateStyle, DoNotUpdateStyle };
155 // FIXME: Both isEditablePosition and isRichlyEditablePosition rely on up-to-dat e 157 // FIXME: Both isEditablePosition and isRichlyEditablePosition rely on up-to-dat e
156 // style to give proper results. They shouldn't update style by default, but 158 // style to give proper results. They shouldn't update style by default, but
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us. 260 // FIXME: this is required until 6853027 is fixed and text checking can do t his for us.
259 return character == '\'' || character == rightSingleQuotationMark || charact er == hebrewPunctuationGershayim; 261 return character == '\'' || character == rightSingleQuotationMark || charact er == hebrewPunctuationGershayim;
260 } 262 }
261 263
262 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph); 264 String stringWithRebalancedWhitespace(const String&, bool startIsStartOfParagrap h, bool endIsEndOfParagraph);
263 const String& nonBreakingSpaceString(); 265 const String& nonBreakingSpaceString();
264 266
265 } 267 }
266 268
267 #endif 269 #endif
OLDNEW
« no previous file with comments | « Source/core/editing/DeleteSelectionCommand.cpp ('k') | Source/core/editing/htmlediting.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698