mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-26 16:35:52 +00:00
Fixed: Wrap drawRect method in #if/#endif
This commit is contained in:
1 parent
8c393e3144
commit
8751ef7439
1 file changed
+3
-1
@@ -138,7 +138,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
|
||||
|
||||
#pragma mark -
|
||||
#pragma mark Init methodes
|
||||
#pragma mark Init methods
|
||||
|
||||
- (id)initWithFrame:(CGRect)aFrame textContainer:(CPTextContainer)aContainer
|
||||
{
|
||||
@@ -564,6 +564,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
|
||||
- (void)drawRect:(CGRect)aRect
|
||||
{
|
||||
#if PLATFORM(DOM)
|
||||
var range = [_layoutManager glyphRangeForBoundingRect:aRect inTextContainer:_textContainer];
|
||||
|
||||
if (_selectionSpans)
|
||||
@@ -609,6 +610,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
if (_caretDOM)
|
||||
_caretDOM.style.visibility = "hidden";
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user