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

Issue 23467007: Have Range constructor take a Document reference in argument (Closed)

Created:
7 years, 3 months ago by do-not-use
Modified:
7 years, 3 months ago
CC:
blink-reviews, Nils Barth (inactive), kojih, jsbell+bindings_chromium.org, aboxhall, eae+blinkwatch, leviw+renderwatch, marja+watch_chromium.org, dglazkov+blink, dmazzoni, adamk+blink_chromium.org, jchaffraix+rendering, chromiumbugtracker_adobe.com, haraken, Nate Chapin, do-not-use, groby+blinkspell_chromium.org
Visibility:
Public.

Description

Have Range constructor take a Document reference in argument Have Range constructor take a Document reference in argument instead of a pointer as the Document is expected to be non-null. Most callers already have a reference so this avoids having to convert it into a pointer. Also update Range's ownerDocument() to return a reference as it can never return NULL. BUG=281400 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157165

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -117 lines) Patch
M Source/bindings/scripts/deprecated_code_generator_v8.pm View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/accessibility/AccessibilityRenderObject.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/Comment.h View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/dom/Document.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/dom/DocumentFragment.h View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/dom/Node.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Range.h View 3 chunks +8 lines, -8 lines 1 comment Download
M Source/core/dom/Range.cpp View 10 chunks +20 lines, -20 lines 0 comments Download
M Source/core/dom/Text.h View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/editing/ApplyStyleCommand.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/editing/CompositeEditCommand.cpp View 4 chunks +6 lines, -6 lines 0 comments Download
M Source/core/editing/EditingStyle.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/editing/Editor.cpp View 2 chunks +3 lines, -2 lines 0 comments Download
M Source/core/editing/FormatBlockCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/InputMethodController.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/editing/SpellCheckRequester.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/SurroundingText.cpp View 3 chunks +6 lines, -4 lines 0 comments Download
M Source/core/editing/TextCheckingHelper.cpp View 6 chunks +7 lines, -10 lines 0 comments Download
M Source/core/editing/TextIterator.cpp View 7 chunks +10 lines, -10 lines 0 comments Download
M Source/core/editing/VisiblePosition.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/VisibleSelection.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/editing/VisibleUnits.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/htmlediting.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/editing/markup.cpp View 7 chunks +7 lines, -11 lines 0 comments Download
M Source/core/html/HTMLTextFormControlElement.cpp View 4 chunks +5 lines, -4 lines 0 comments Download
M Source/core/page/DOMSelection.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/DragController.cpp View 4 chunks +6 lines, -7 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderNamedFlowThread.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/testing/Internals.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/web/WebFrameImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebRange.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebViewImpl.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
do-not-use
7 years, 3 months ago (2013-09-03 15:31:09 UTC) #1
do-not-use
https://codereview.chromium.org/23467007/diff/1/Source/core/dom/Range.h File Source/core/dom/Range.h (right): https://codereview.chromium.org/23467007/diff/1/Source/core/dom/Range.h#newcode171 Source/core/dom/Range.h:171: RefPtr<Document> m_ownerDocument; // Cannot be null. BTW, a Reference-flavoured ...
7 years, 3 months ago (2013-09-03 15:43:22 UTC) #2
abarth-chromium
On 2013/09/03 15:43:22, Christophe Dumez wrote: > I would propose to port that WebKit patch ...
7 years, 3 months ago (2013-09-03 21:02:01 UTC) #3
abarth-chromium
lgtm
7 years, 3 months ago (2013-09-03 21:05:21 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/23467007/1
7 years, 3 months ago (2013-09-03 21:05:42 UTC) #5
commit-bot: I haz the power
7 years, 3 months ago (2013-09-03 22:52:31 UTC) #6
Message was sent while issue was closed.
Change committed as 157165

Powered by Google App Engine
This is Rietveld 408576698