Commit 767b3718 authored by darin's avatar darin
Browse files

* WebCorePrefix.h: Needed to touch this file since we now have plain C source (expat).

        * kwq/KWQKHTMLPart.cpp: Reformatted a bit.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3312 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 68877da7
2003-01-12 Darin Adler <darin@apple.com>
* WebCorePrefix.h: Needed to touch this file since we now have plain C source (expat).
* kwq/KWQKHTMLPart.cpp: Reformatted a bit.
2003-01-12 Darin Adler <darin@apple.com> 2003-01-12 Darin Adler <darin@apple.com>
Reviewed by Maciej. Reviewed by Maciej.
......
2003-01-12 Darin Adler <darin@apple.com>
* WebCorePrefix.h: Needed to touch this file since we now have plain C source (expat).
* kwq/KWQKHTMLPart.cpp: Reformatted a bit.
2003-01-12 Darin Adler <darin@apple.com> 2003-01-12 Darin Adler <darin@apple.com>
Reviewed by Maciej. Reviewed by Maciej.
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include <assert.h> #include <assert.h>
#include <ctype.h> #include <ctype.h>
#include <fcntl.h> #include <fcntl.h>
#include <pthread.h>
#include <regex.h> #include <regex.h>
#include <setjmp.h> #include <setjmp.h>
#include <signal.h> #include <signal.h>
...@@ -11,10 +12,12 @@ ...@@ -11,10 +12,12 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <time.h>
#include <unistd.h> #include <unistd.h>
#ifdef __cplusplus #ifdef __cplusplus
#include <algorithm>
#include <cstddef> #include <cstddef>
#include <new> #include <new>
......
/* /*
* Copyright (C) 2001, 2002 Apple Computer, Inc. All rights reserved. * Copyright (C) 2001, 2002, 2003 Apple Computer, Inc. All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions
...@@ -23,12 +23,12 @@ ...@@ -23,12 +23,12 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <KWQKHTMLPart.h> #include "KWQKHTMLPart.h"
#include <html_documentimpl.h> #include "html_documentimpl.h"
#include <html_elementimpl.h> #include "html_elementimpl.h"
#include <htmltokenizer.h> #include "htmltokenizer.h"
#include <khtmlpart_p.h> #include "khtmlpart_p.h"
using DOM::DocumentImpl; using DOM::DocumentImpl;
using DOM::HTMLDocumentImpl; using DOM::HTMLDocumentImpl;
...@@ -43,7 +43,22 @@ bool KWQKHTMLPart::isFrameSet() const ...@@ -43,7 +43,22 @@ bool KWQKHTMLPart::isFrameSet() const
return body && body->renderer() && body->id() == ID_FRAMESET; return body && body->renderer() && body->id() == ID_FRAMESET;
} }
int KWQKHTMLPart::selectionStartOffset() const { return d->m_startOffset; } int KWQKHTMLPart::selectionStartOffset() const
int KWQKHTMLPart::selectionEndOffset() const { return d->m_endOffset; } {
NodeImpl *KWQKHTMLPart::selectionStart() const { return d->m_selectionStart.handle(); } return d->m_startOffset;
NodeImpl *KWQKHTMLPart::selectionEnd() const { return d->m_selectionEnd.handle(); } }
int KWQKHTMLPart::selectionEndOffset() const
{
return d->m_endOffset;
}
NodeImpl *KWQKHTMLPart::selectionStart() const
{
return d->m_selectionStart.handle();
}
NodeImpl *KWQKHTMLPart::selectionEnd() const
{
return d->m_selectionEnd.handle();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment