gecko-dev/editor
Robert O'Callahan 2730385743 Bug 1048752. Part 27: Remove obsolete caret state logic and just SchedulePaint as needed. r=tn
This is the core of the whole patch set.

Now GetPaintGeometry/PaintCaret figure out on their own almost all the state
they need every time we paint. So when caret flags change, all we need
to do is SchedulePaint. We don't need to fiddle with mDrawn and most of the
logic in DrawCaret is obsolete. (In fact, it was duplicated by GetGeometry
and friends, and we're removing that duplication.) EraseCaret, CheckCaretState
and UpdateCaretPosition are also obsolete.

We need to have GetPaintGeometry/PaintCaret choose the correct content node
and offset, either getting them from the Selection or using specific data set by
DrawAtPosition. This logic, plus a bit of other code shared between them, is
put into the helper GetFrameAndOffset.

--HG--
extra : rebase_source : e777605dd2507ae043e9f82d0a30e23aa06e0c12
2014-08-06 17:19:29 +12:00
..
composer Backed out changeset f4b101378a07 (bug 1021527) by request 2014-08-15 16:14:42 +01:00
libeditor Bug 1048752. Part 27: Remove obsolete caret state logic and just SchedulePaint as needed. r=tn 2014-08-06 17:19:29 +12:00
reftests Bug 981477 - Adjust wrongfully annotated b2g oop reftests from fails to random, r=edmorley 2014-06-13 10:05:52 -04:00
txmgr Bug 1047267 - Move remaining OS_LIBS and EXTRA_LIBS to moz.build. r=gps 2014-08-07 14:21:03 +09:00
txtsvc Bug 1050001 - Remove #ifdef DEBUG_username lines in editor/. r=ehsan 2014-08-07 21:52:05 -07:00
AsyncSpellCheckTestHelper.jsm Bug 856270 - Update spell checking to use nsIContentPrefService2 (part 2: test helper). r=ehsan 2013-06-05 17:07:54 -07:00
crashtests.list Bug 1042469 - Flatten editor/libeditor/base to editor/libeditor; r=poiru 2014-08-15 10:03:48 -04:00
moz.build Bug 1043820 - Remove PARALLEL_DIRS. r=gps 2014-07-29 08:57:59 +09:00
nsEditorCID.h Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00
nsIContentFilter.idl Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00
nsIDocumentStateListener.idl Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00
nsIEditActionListener.idl Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00
nsIEditor.idl Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00
nsIEditorIMESupport.idl Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00
nsIEditorMailSupport.idl Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00
nsIEditorObserver.idl Bug 496360 part.2 IMEContentObserver shouldn't dispatch TextChangeEvent while editor handles an edit action r=ehsan+smaug, sr=smaug 2014-07-31 13:37:59 +09:00
nsIEditorSpellCheck.idl Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00
nsIEditorStyleSheets.idl Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00
nsIHTMLAbsPosEditor.idl Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00
nsIHTMLEditor.idl Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00
nsIHTMLInlineTableEditor.idl Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00
nsIHTMLObjectResizeListener.idl Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00
nsIHTMLObjectResizer.idl Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00
nsIPlaintextEditor.idl Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00
nsITableEditor.idl Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00
nsIURIRefObject.idl Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00
nsPIEditorTransaction.idl Bug 1028565 - Part 5: Flatten editor/{idl,public}/ directories. r=ehsan 2014-07-16 12:02:34 -07:00