Changeset 295556 in webkit for trunk/Source/WebCore/rendering/RenderLayer.cpp
- Timestamp:
- Jun 15, 2022, 6:43:53 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/rendering/RenderLayer.cpp
r295532 r295556 2516 2516 return false; 2517 2517 2518 RenderBox* box = renderBox();2519 ASSERT(box); // Only boxes can have overflowClip set.2520 2521 if ( renderer().frame().eventHandler().autoscrollInProgress()) {2518 // Only boxes can have overflowClip set. 2519 auto& box = *renderBox(); 2520 2521 if (box.frame().eventHandler().autoscrollInProgress()) { 2522 2522 // The "programmatically" here is misleading; this asks whether the box has scrollable overflow, 2523 2523 // or is a special case like a form control. 2524 return box ->canBeProgramaticallyScrolled();2525 } 2526 2527 // Programmatic scrolls can scroll overflow: hidden.2528 return box ->hasHorizontalOverflow() || box->hasVerticalOverflow();2524 return box.canBeProgramaticallyScrolled(); 2525 } 2526 2527 // Programmatic scrolls can scroll overflow: hidden but not overflow: clip. 2528 return box.hasPotentiallyScrollableOverflow() && (box.hasHorizontalOverflow() || box.hasVerticalOverflow()); 2529 2529 } 2530 2530
Note:
See TracChangeset
for help on using the changeset viewer.