mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-09 10:20:59 +00:00
Revert "_textContainer refac preparation"
This reverts commit 80cf88dcc1.
This commit is contained in:
1 parent
80cf88dcc1
commit
5e880f6bfa
2 files changed
+4
-4
No files matched your search
@@ -652,7 +652,7 @@ _oncontextmenuhandler = function () { return false; };
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (id)_firstLineFragmentForLineFromLocation:(unsigned)location inTextContainer:(CPTextContainer)aContainer
|
||||
- (id)_firstLineFragmentForLineFromLocation:(unsigned)location
|
||||
{
|
||||
var l = _lineFragments.length;
|
||||
|
||||
@@ -673,7 +673,7 @@ _oncontextmenuhandler = function () { return false; };
|
||||
|
||||
return nil;
|
||||
}
|
||||
- (id)_lastLineFragmentForLineFromLocation:(unsigned)location inTextContainer:(CPTextContainer)aContainer
|
||||
- (id)_lastLineFragmentForLineFromLocation:(unsigned)location
|
||||
{
|
||||
var l = _lineFragments.length;
|
||||
|
||||
|
||||
@@ -1208,7 +1208,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
|
||||
var nglyphs = [_layoutManager numberOfCharacters],
|
||||
loc = nglyphs == _selectionRange.location ? MAX(0, _selectionRange.location - 1) : _selectionRange.location;
|
||||
fragment = [_layoutManager _firstLineFragmentForLineFromLocation:loc inTextContainer:_textContainer];
|
||||
fragment = [_layoutManager _firstLineFragmentForLineFromLocation:loc];
|
||||
|
||||
if (fragment)
|
||||
[self _establishSelection:CPMakeRange(fragment._range.location, 0) byExtending:flag];
|
||||
@@ -1229,7 +1229,7 @@ var kDelegateRespondsTo_textShouldBeginEditing
|
||||
if (![self isSelectable])
|
||||
return;
|
||||
|
||||
var fragment = [_layoutManager _lastLineFragmentForLineFromLocation:_selectionRange.location inTextContainer:_textContainer];
|
||||
var fragment = [_layoutManager _lastLineFragmentForLineFromLocation:_selectionRange.location];
|
||||
|
||||
if (!fragment)
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user