Don't be overzealous with the input checks, firstRectForCharacterRange
can be determined even when there is not an active editable region.
This unbreaks editing/input/range-for-empty-document which was broken
by aforementioned overzealousness.
* WebView/WebHTMLView.mm:
(-[WebHTMLView firstRectForCharacterRange:]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22063
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-06-07 Oliver Hunt <oliver@apple.com>
+
+ Reviewed by Sam "The Intern" Weinig.
+
+ Don't be overzealous with the input checks, firstRectForCharacterRange
+ can be determined even when there is not an active editable region.
+
+ This unbreaks editing/input/range-for-empty-document which was broken
+ by aforementioned overzealousness.
+
+ * WebView/WebHTMLView.mm:
+ (-[WebHTMLView firstRectForCharacterRange:]):
+
2007-06-07 Oliver Hunt <oliver@apple.com>
Reviewed by Justin.
}
- (NSRect)firstRectForCharacterRange:(NSRange)theRange
-{
- if (!isTextInput(core([self _frame])))
- return NSMakeRect(0,0,0,0);
-
+{
WebFrameBridge *bridge = [self _bridge];
// Just to match NSTextView's behavior. Regression tests cannot detect this;