Home | History | Annotate | Download | only in WebView

Lines Matching full:self

113     return [[self _scrollView] verticalLineScroll];
133 WebDynamicScrollBarsView *sv = [self _scrollView];
134 core([self _webView])->dragController()->setDidInitiateDrag(false);
160 Class viewClass = [self _viewClassForMIMEType:MIMEType];
170 documentView = [[viewClass alloc] initWithFrame:[self bounds]];
174 [self _setDocumentView:documentView];
183 NSView *docV = [self documentView];
203 float height = [[self _contentView] bounds].size.height;
244 return [[[self _viewTypesAllowImageTypeOmission:YES] _webkit_objectForMIMEType:MIMEType] isSubclassOfClass:[WebHTMLView class]];
255 return [[self class] _viewClassForMIMEType:MIMEType allowingPlugins:[[[self _webView] preferences] arePlugInsEnabled]];
299 self = [super initWithFrame:frame];
300 if (!self)
346 [self addSubview:scrollView];
355 return self;
382 WebCore::Frame *frame = core([self webFrame]);
389 WebCore::Frame *frame = core([self webFrame]);
397 return [[self _scrollView] documentView];
413 NSWindow *window = [self window];
415 NSView *previousValidKeyView = [self previousValidKeyView];
418 // never be self but can be due to AppKit oddness (mentioned in Radar bug 3748628).
419 if (previousValidKeyView == nil || previousValidKeyView == self)
420 previousValidKeyView = [[[self webFrame] webView] previousValidKeyView];
426 if ([[self _scrollView] acceptsFirstResponder])
427 [window makeFirstResponder:[self _scrollView]];
438 if ([self _scrollView] != nil) {
439 [[self _scrollView] setNextKeyView:aView];
447 return [[self _webView] drawsBackground];
452 if ([self documentView] == nil) {
454 if ([[self _webView] drawsBackground]) {
455 [[[self _webView] backgroundColor] set];
460 if ([[self _scrollView] drawsBackground]) {
480 if (![[self webFrame] _getVisibleRect:&rendererVisibleRect])
490 NSRect frame = [self frame];
501 if (!NSEqualSizes(size, [self frame].size)) {
503 if ([[[self webFrame] webView] drawsBackground])
504 [[self _scrollView] setDrawsBackground:YES];
505 if (Frame* coreFrame = [self _web_frame]) {
517 if (_private && [[[self webFrame] webView] drawsBackground])
518 [[self _scrollView] setDrawsBackground:YES];
525 if (![[self documentView] isKindOfClass:[WebHTMLView class]])
527 Frame* frame = core([self webFrame]);
535 if ([self _scrollOverflowInDirection:ScrollUp granularity:ScrollByDocument])
537 if (![self _hasScrollBars])
539 NSPoint point = [[[self _scrollView] documentView] frame].origin;
540 return [[self _contentView] _scrollTo:&point animate:YES];
545 if ([self _scrollOverflowInDirection:ScrollDown granularity:ScrollByDocument])
547 if (![self _hasScrollBars])
549 NSRect frame = [[[self _scrollView] documentView] frame];
551 return [[self _contentView] _scrollTo:&point animate:YES];
556 if ([self _scrollToBeginningOfDocument])
559 if (WebFrameView *child = [self _largestChildWithScrollBars]) {
563 [[self nextResponder] tryToPerform:@selector(scrollToBeginningOfDocument:) with:sender];
568 if ([self _scrollToEndOfDocument])
571 if (WebFrameView *child = [self _largestChildWithScrollBars]) {
575 [[self nextResponder] tryToPerform:@selector(scrollToEndOfDocument:) with:sender];
580 [[self _webView] goBack];
585 [[self _webView] goForward];
595 NSPoint point = [[self _contentView] bounds].origin;
597 return [[self _contentView] _scrollTo:&point animate:YES];
602 NSPoint point = [[self _contentView] bounds].origin;
604 return [[self _contentView] _scrollTo:&point animate:YES];
610 return [[self _scrollView] horizontalLineScroll];
615 float width = [[self _contentView] bounds].size.width;
621 if ([self _scrollOverflowInDirection:up ? ScrollUp : ScrollDown granularity:ScrollByPage])
624 if (![self _hasScrollBars])
625 return [[self _largestChildWithScrollBars] _pageVertically:up];
627 float delta = [self _verticalPageScrollDistance];
628 return [self _scrollVerticallyBy:up ? -delta : delta];
633 if ([self _scrollOverflowInDirection:left ? ScrollLeft : ScrollRight granularity:ScrollByPage])
636 if (![self _hasScrollBars])
637 return [[self _largestChildWithScrollBars] _pageHorizontally:left];
639 float delta = [self _horizontalPageScrollDistance];
640 return [self _scrollHorizontallyBy:left ? -delta : delta];
645 if ([self _scrollOverflowInDirection:up ? ScrollUp : ScrollDown granularity:ScrollByLine])
648 if (![self _hasScrollBars])
649 return [[self _largestChildWithScrollBars] _scrollLineVertically:up];
651 float delta = [self _verticalKeyboardScrollDistance];
652 return [self _scrollVerticallyBy:up ? -delta : delta];
657 if ([self _scrollOverflowInDirection:left ? ScrollLeft : ScrollRight granularity:ScrollByLine])
660 if (![self _hasScrollBars])
661 return [[self _largestChildWithScrollBars] _scrollLineHorizontally:left];
663 float delta = [self _horizontalKeyboardScrollDistance];
664 return [self _scrollHorizontallyBy:left ? -delta : delta];
669 if (![self _pageVertically:YES]) {
671 [[self nextResponder] tryToPerform:@selector(scrollPageUp:) with:sender];
677 if (![self _pageVertically:NO]) {
679 [[self nextResponder] tryToPerform:@selector(scrollPageDown:) with:sender];
685 if (![self _scrollLineVertically:YES])
686 [[self nextResponder] tryToPerform:@selector(scrollLineUp:) with:sender];
691 if (![self _scrollLineVertically:NO])
692 [[self nextResponder] tryToPerform:@selector(scrollLineDown:) with:sender];
697 NSResponder *firstResponder = [[self window] firstResponder];
711 Frame* coreFrame = [self _web_frame];
725 [self _goForward];
727 [self _goBack];
735 if ((![self allowsScrolling] && ![self _largestChildWithScrollBars]) || [self _firstResponderIsFormControl]) {
740 [self scrollPageUp:nil];
742 [self scrollPageDown:nil];
747 if (![self allowsScrolling] && ![self _largestChildWithScrollBars]) {
751 [self scrollPageUp:nil];
755 if (![self allowsScrolling] && ![self _largestChildWithScrollBars]) {
759 [self scrollPageDown:nil];
763 if (![self allowsScrolling] && ![self _largestChildWithScrollBars]) {
767 [self scrollToBeginningOfDocument:nil];
771 if (![self allowsScrolling] && ![self _largestChildWithScrollBars]) {
775 [self scrollToEndOfDocument:nil];
784 if ((![self allowsScrolling] && ![self _largestChildWithScrollBars]) ||
785 [[[self window] firstResponder] isKindOfClass:[NSPopUpButton class]]) {
793 [self scrollToBeginningOfDocument:nil];
795 [self scrollPageUp:nil];
797 [self scrollLineUp:nil];
807 if ((![self allowsScrolling] && ![self _largestChildWithScrollBars]) ||
808 [[[self window] firstResponder] isKindOfClass:[NSPopUpButton class]]) {
816 [self scrollToEndOfDocument:nil];
818 [self scrollPageDown:nil];
820 [self scrollLineDown:nil];
836 [self _goBack];
839 if ((![self allowsScrolling] && ![self _largestChildWithScrollBars])) {
845 [self _pageHorizontally:YES];
847 [self _scrollLineHorizontally:YES];
864 [self _goForward];
867 if ((![self allowsScrolling] && ![self _largestChildWithScrollBars])) {
873 [self _pageHorizontally:NO];
875 [self _scrollLineHorizontally:NO];
893 NSView *view = [self documentView];
899 NSView *documentView = [[self _scrollView] documentView];
908 NSView *documentView = [[self _scrollView] documentView];
920 NSView *documentView = [[self _scrollView] documentView];
929 NSView *documentView = [[self _scrollView] documentView];
940 NSRect frame = [self frame];
946 NSScrollView *scrollView = [self _scrollView];
953 NSArray *frameChildren = [[self webFrame] childFrames];
978 return [[self _scrollView] contentView];
999 NSView <WebDocumentView> *documentView = [[self documentView] retain];
1008 [self addSubview:scrollView];
1017 [self _setDocumentView:documentView];
1018 [self _install];