Lines Matching refs:_private
85 _private = new WebDynamicScrollBarsViewPrivate;
86 memset(_private, 0, sizeof(WebDynamicScrollBarsViewPrivate));
95 _private = new WebDynamicScrollBarsViewPrivate;
96 memset(_private, 0, sizeof(WebDynamicScrollBarsViewPrivate));
102 delete _private;
108 delete _private;
114 if (_private->hScrollModeLocked)
116 if (flag && _private->hScroll == ScrollbarAlwaysOff)
117 _private->hScroll = ScrollbarAuto;
118 else if (!flag && _private->hScroll != ScrollbarAlwaysOff)
119 _private->hScroll = ScrollbarAlwaysOff;
125 if (_private->allowsScrollersToOverlapContent == flag)
128 _private->allowsScrollersToOverlapContent = flag;
137 if (_private->alwaysHideHorizontalScroller == shouldBeHidden)
140 _private->alwaysHideHorizontalScroller = shouldBeHidden;
146 if (_private->alwaysHideVerticalScroller == shouldBeHidden)
149 _private->alwaysHideVerticalScroller = shouldBeHidden;
155 return _private->horizontalScrollingAllowedButScrollerHidden || [self hasHorizontalScroller];
160 return _private->verticalScrollingAllowedButScrollerHidden || [self hasVerticalScroller];
172 frame.size.height = (_private->allowsScrollersToOverlapContent ? NSMaxY([[self horizontalScroller] frame]) : NSMinY([[self horizontalScroller] frame]));
174 frame.size.width = (_private->allowsScrollersToOverlapContent ? NSMaxX([[self verticalScroller] frame]) : NSMinX([[self verticalScroller] frame]));
184 if (_private->allowsScrollersToOverlapContent)
190 _private->suppressLayout = flag;
195 _private->suppressScrollers = suppressed;
217 if (!_private->scrollOriginChanged)
220 _private->scrollOriginChanged = false;
228 _private->inProgrammaticScroll = true;
229 [documentView scrollPoint:NSMakePoint(_private->scrollPositionExcludingOrigin.x + documentRect.origin.x, _private->scrollPositionExcludingOrigin.y + documentRect.origin.y)];
230 _private->inProgrammaticScroll = false;
242 if (!_private->suppressLayout && !_private->suppressScrollers && [documentView isKindOfClass:[WebHTMLView class]]) {
245 _private->inUpdateScrollers = YES;
247 _private->inUpdateScrollers = NO;
262 if (_private->hScroll != ScrollbarAuto)
263 newHasHorizontalScroller = (_private->hScroll == ScrollbarAlwaysOn);
264 if (_private->vScroll != ScrollbarAuto)
265 newHasVerticalScroller = (_private->vScroll == ScrollbarAlwaysOn);
267 if (!documentView || _private->suppressLayout || _private->suppressScrollers || (_private->hScroll != ScrollbarAuto && _private->vScroll != ScrollbarAuto)) {
268 _private->horizontalScrollingAllowedButScrollerHidden = newHasHorizontalScroller && _private->alwaysHideHorizontalScroller;
269 if (_private->horizontalScrollingAllowedButScrollerHidden)
272 _private->verticalScrollingAllowedButScrollerHidden = newHasVerticalScroller && _private->alwaysHideVerticalScroller;
273 if (_private->verticalScrollingAllowedButScrollerHidden)
276 _private->inUpdateScrollers = YES;
281 if (_private->suppressScrollers) {
285 _private->inUpdateScrollers = NO;
304 if (_private->hScroll == ScrollbarAuto) {
306 if (newHasHorizontalScroller && !_private->inUpdateScrollersLayoutPass && documentSize.height <= frameSize.height && documentSize.width <= frameSize.width)
310 if (_private->vScroll == ScrollbarAuto) {
312 if (newHasVerticalScroller && !_private->inUpdateScrollersLayoutPass && documentSize.height <= frameSize.height && documentSize.width <= frameSize.width)
318 if (!newHasHorizontalScroller && hasHorizontalScroller && _private->vScroll != ScrollbarAlwaysOn)
320 if (!newHasVerticalScroller && hasVerticalScroller && _private->hScroll != ScrollbarAlwaysOn)
323 _private->horizontalScrollingAllowedButScrollerHidden = newHasHorizontalScroller && _private->alwaysHideHorizontalScroller;
324 if (_private->horizontalScrollingAllowedButScrollerHidden)
327 _private->verticalScrollingAllowedButScrollerHidden = newHasVerticalScroller && _private->alwaysHideVerticalScroller;
328 if (_private->verticalScrollingAllowedButScrollerHidden)
332 _private->inUpdateScrollers = YES;
334 _private->inUpdateScrollers = NO;
343 _private->inUpdateScrollers = YES;
345 _private->inUpdateScrollers = NO;
353 if (needsLayout && _private->inUpdateScrollersLayoutPass < cMaxUpdateScrollbarsPass &&
355 _private->inUpdateScrollersLayoutPass++;
365 _private->inUpdateScrollersLayoutPass--;
374 if (_private->allowsScrollersToOverlapContent)
384 if (!_private->inUpdateScrollers && (!currentContext || [currentContext isDrawingToScreen]))
392 if (!_private->suppressScrollers)
398 if (_private->suppressScrollers) {
421 return _private->hScroll != ScrollbarAlwaysOff;
426 return _private->vScroll != ScrollbarAlwaysOff;
431 *hMode = _private->hScroll;
432 *vMode = _private->vScroll;
437 return _private->hScroll;
442 return _private->vScroll;
464 if (verticalMode != _private->vScroll && !_private->vScrollModeLocked) {
465 _private->vScroll = verticalMode;
469 if (horizontalMode != _private->hScroll && !_private->hScrollModeLocked) {
470 _private->hScroll = horizontalMode;
483 _private->hScrollModeLocked = locked;
488 _private->vScrollModeLocked = locked;
493 _private->hScrollModeLocked = _private->vScrollModeLocked = locked;
498 return _private->hScrollModeLocked;
503 return _private->vScrollModeLocked;
532 if (isLatchingEvent && !_private->verticallyPinnedByPreviousWheelEvent) {
543 if (isLatchingEvent && !_private->horizontallyPinnedByPreviousWheelEvent) {
560 _private->verticallyPinnedByPreviousWheelEvent = (verticalPosition == 0.0 || verticalPosition == 1.0);
561 _private->horizontallyPinnedByPreviousWheelEvent = (horizontalPosition == 0.0 || horizontalPosition == 1.0);
577 _private->scrollOrigin = scrollOrigin;
585 _private->scrollOriginChanged = true;
588 _private->scrollPositionExcludingOrigin = NSMakePoint(visibleRect.origin.x + scrollOrigin.x, visibleRect.origin.y + scrollOrigin.y);
596 return _private->scrollOrigin;
601 return _private->inProgrammaticScroll;