richedit: Accept paragraph as parameter for ME_CharOfsFromRunOfs.
authorDylan Smith <dylan.ah.smith@gmail.com>
Fri, 6 Feb 2009 06:09:51 +0000 (01:09 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 6 Feb 2009 13:50:27 +0000 (14:50 +0100)
commitd20e057d8e3f2aa72d31baa935bb90786ffc0a71
treee4d36c2ee56f22d7029c747c5a451a865a9efbd2
parent12ca50db7a8f60b980cef50d7addaeae010f79c4
richedit: Accept paragraph as parameter for ME_CharOfsFromRunOfs.

Rather than get the paragraph from the run, the function allows the
caller to provide the paragraph, since it is already available.  This
reduces unnecessary traversals of lists that take longer as more runs
and rows are in the paragraph.
dlls/riched20/caret.c
dlls/riched20/editor.c
dlls/riched20/editor.h
dlls/riched20/run.c