diff options
Diffstat (limited to 'WebKit/mac/WebView/WebFrameView.mm')
-rw-r--r-- | WebKit/mac/WebView/WebFrameView.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/WebKit/mac/WebView/WebFrameView.mm b/WebKit/mac/WebView/WebFrameView.mm index 0db12c0..40ee0b1 100644 --- a/WebKit/mac/WebView/WebFrameView.mm +++ b/WebKit/mac/WebView/WebFrameView.mm @@ -536,6 +536,7 @@ static inline void addTypesFromClass(NSMutableDictionary *allTypes, Class objCCl if (![self _isScrollable]) return NO; NSPoint point = [[[self _scrollView] documentView] frame].origin; + point.x += [[self _scrollView] scrollOriginX]; return [[self _contentView] _scrollTo:&point animate:YES]; } @@ -547,6 +548,7 @@ static inline void addTypesFromClass(NSMutableDictionary *allTypes, Class objCCl return NO; NSRect frame = [[[self _scrollView] documentView] frame]; NSPoint point = NSMakePoint(frame.origin.x, NSMaxY(frame)); + point.x += [[self _scrollView] scrollOriginX]; return [[self _contentView] _scrollTo:&point animate:YES]; } |