| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All r
ights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 // This function disables the 'overflow' check in inlineBlockBaseline. | 287 // This function disables the 'overflow' check in inlineBlockBaseline. |
| 288 // For 'inline-block', CSS says that the baseline is the bottom margin edge | 288 // For 'inline-block', CSS says that the baseline is the bottom margin edge |
| 289 // if 'overflow' is not visible. But some descendant classes want to ignore | 289 // if 'overflow' is not visible. But some descendant classes want to ignore |
| 290 // this condition. | 290 // this condition. |
| 291 virtual bool shouldIgnoreOverflowPropertyForInlineBlockBaseline() const { re
turn false; } | 291 virtual bool shouldIgnoreOverflowPropertyForInlineBlockBaseline() const { re
turn false; } |
| 292 | 292 |
| 293 bool hitTestOverflowControl(HitTestResult&, const HitTestLocation&, const La
youtPoint& adjustedLocation) override; | 293 bool hitTestOverflowControl(HitTestResult&, const HitTestLocation&, const La
youtPoint& adjustedLocation) override; |
| 294 bool hitTestChildren(HitTestResult&, const HitTestLocation& locationInContai
ner, const LayoutPoint& accumulatedOffset, HitTestAction) override; | 294 bool hitTestChildren(HitTestResult&, const HitTestLocation& locationInContai
ner, const LayoutPoint& accumulatedOffset, HitTestAction) override; |
| 295 void updateHitTestResult(HitTestResult&, const LayoutPoint&) override; | 295 void updateHitTestResult(HitTestResult&, const LayoutPoint&) override; |
| 296 | 296 |
| 297 // Delay update scrollbar until finishDelayUpdateScrollInfo() will be | |
| 298 // called. This function is used when a flexbox is laying out its | |
| 299 // descendant. If multiple calls are made to startDelayUpdateScrollInfo(), | |
| 300 // finishDelayUpdateScrollInfo() will do nothing until finishDelayUpdateScro
llInfo() | |
| 301 // is called the same number of times. | |
| 302 // finishDelayUpdateScrollInfo returns true when it marked something for lay
out. | |
| 303 // It will also return a map of saved scroll positions that the caller shoul
d restore | |
| 304 // on the given scrollable areas after performing the layout. | |
| 305 // This can be necessary because Flexbox's multi-pass layout can lose the sc
roll position. | |
| 306 // TODO(cbiesinger): This is a temporary hack. The right solution is to dela
y the scroll | |
| 307 // clamping that currently happens in PaintLayerScrollableArea::updateAfterL
ayout to only | |
| 308 // happen after all layout is done, i.e. during updateLayerPositionsAfterLay
out. However, | |
| 309 // that currently fails a layout test. To fix this bug in time for M50, we u
se this temporary | |
| 310 // hack. The real fix is tracked in crbug.com/600036 | |
| 311 typedef PersistentHeapHashMap<Member<PaintLayerScrollableArea>, DoublePoint>
ScrollPositionMap; | |
| 312 static void startDelayUpdateScrollInfo(); | |
| 313 static bool finishDelayUpdateScrollInfo(SubtreeLayoutScope*, ScrollPositionM
ap*); | |
| 314 | |
| 315 void updateAfterLayout(); | 297 void updateAfterLayout(); |
| 316 | 298 |
| 317 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; | 299 void styleWillChange(StyleDifference, const ComputedStyle& newStyle) overrid
e; |
| 318 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; | 300 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override
; |
| 319 void updateFromStyle() override; | 301 void updateFromStyle() override; |
| 320 | 302 |
| 321 // Returns true if non-visible overflow should be respected. Otherwise hasOv
erflowClip() will be | 303 // Returns true if non-visible overflow should be respected. Otherwise hasOv
erflowClip() will be |
| 322 // false and we won't create scrollable area for this object even if overflo
w is non-visible. | 304 // false and we won't create scrollable area for this object even if overflo
w is non-visible. |
| 323 virtual bool allowsOverflowClip() const; | 305 virtual bool allowsOverflowClip() const; |
| 324 | 306 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 // FIXME: This is temporary as we move code that accesses block flow | 413 // FIXME: This is temporary as we move code that accesses block flow |
| 432 // member variables out of LayoutBlock and into LayoutBlockFlow. | 414 // member variables out of LayoutBlock and into LayoutBlockFlow. |
| 433 friend class LayoutBlockFlow; | 415 friend class LayoutBlockFlow; |
| 434 }; | 416 }; |
| 435 | 417 |
| 436 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); | 418 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutBlock, isLayoutBlock()); |
| 437 | 419 |
| 438 } // namespace blink | 420 } // namespace blink |
| 439 | 421 |
| 440 #endif // LayoutBlock_h | 422 #endif // LayoutBlock_h |
| OLD | NEW |