Revert "_textContainer refac preparation"

This reverts commit 80cf88dcc1.
This commit is contained in:
daboe01 committed 2015-07-03 17:26:20 +02:00
1 parent 80cf88dcc1
commit 5e880f6bfa
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -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;
+2 -2
View File
@@ -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;