| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
| 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. |
| 7 * All rights reserved. | 7 * All rights reserved. |
| 8 * Copyright (C) 2009 Google Inc. All rights reserved. | 8 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 2414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2425 return m_positionedState == IsRelativelyPositioned || | 2425 return m_positionedState == IsRelativelyPositioned || |
| 2426 m_positionedState == IsStickyPositioned; | 2426 m_positionedState == IsStickyPositioned; |
| 2427 } | 2427 } |
| 2428 bool isPositioned() const { | 2428 bool isPositioned() const { |
| 2429 return m_positionedState != IsStaticallyPositioned; | 2429 return m_positionedState != IsStaticallyPositioned; |
| 2430 } | 2430 } |
| 2431 | 2431 |
| 2432 void setPositionedState(int positionState) { | 2432 void setPositionedState(int positionState) { |
| 2433 // This maps FixedPosition and AbsolutePosition to | 2433 // This maps FixedPosition and AbsolutePosition to |
| 2434 // IsOutOfFlowPositioned, saving one bit. | 2434 // IsOutOfFlowPositioned, saving one bit. |
| 2435 switch (positionState) { | 2435 m_positionedState = static_cast<PositionedState>(positionState & 0x3); |
| 2436 case StaticPosition: | |
| 2437 m_positionedState = IsStaticallyPositioned; | |
| 2438 break; | |
| 2439 case RelativePosition: | |
| 2440 m_positionedState = IsRelativelyPositioned; | |
| 2441 break; | |
| 2442 case AbsolutePosition: | |
| 2443 case FixedPosition: | |
| 2444 m_positionedState = IsOutOfFlowPositioned; | |
| 2445 break; | |
| 2446 case StickyPosition: | |
| 2447 m_positionedState = IsStickyPositioned; | |
| 2448 break; | |
| 2449 default: | |
| 2450 NOTREACHED(); | |
| 2451 break; | |
| 2452 } | |
| 2453 } | 2436 } |
| 2454 void clearPositionedState() { m_positionedState = StaticPosition; } | 2437 void clearPositionedState() { m_positionedState = StaticPosition; } |
| 2455 | 2438 |
| 2456 ALWAYS_INLINE SelectionState getSelectionState() const { | 2439 ALWAYS_INLINE SelectionState getSelectionState() const { |
| 2457 return static_cast<SelectionState>(m_selectionState); | 2440 return static_cast<SelectionState>(m_selectionState); |
| 2458 } | 2441 } |
| 2459 ALWAYS_INLINE void setSelectionState(SelectionState selectionState) { | 2442 ALWAYS_INLINE void setSelectionState(SelectionState selectionState) { |
| 2460 m_selectionState = selectionState; | 2443 m_selectionState = selectionState; |
| 2461 } | 2444 } |
| 2462 | 2445 |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2740 CORE_EXPORT void showLineTree(const blink::LayoutObject*); | 2723 CORE_EXPORT void showLineTree(const blink::LayoutObject*); |
| 2741 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); | 2724 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); |
| 2742 // We don't make object2 an optional parameter so that showLayoutTree | 2725 // We don't make object2 an optional parameter so that showLayoutTree |
| 2743 // can be called from gdb easily. | 2726 // can be called from gdb easily. |
| 2744 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, | 2727 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, |
| 2745 const blink::LayoutObject* object2); | 2728 const blink::LayoutObject* object2); |
| 2746 | 2729 |
| 2747 #endif | 2730 #endif |
| 2748 | 2731 |
| 2749 #endif // LayoutObject_h | 2732 #endif // LayoutObject_h |
| OLD | NEW |