| 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 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 | 413 |
| 414 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap
pedScrollWidth() != pixelSnappedClientWidth(); } | 414 bool hasScrollableOverflowX() const { return scrollsOverflowX() && pixelSnap
pedScrollWidth() != pixelSnappedClientWidth(); } |
| 415 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap
pedScrollHeight() != pixelSnappedClientHeight(); } | 415 bool hasScrollableOverflowY() const { return scrollsOverflowY() && pixelSnap
pedScrollHeight() != pixelSnappedClientHeight(); } |
| 416 virtual bool scrollsOverflowX() const { return hasOverflowClip() && (style()
->overflowX() == OSCROLL || hasAutoHorizontalScrollbar()); } | 416 virtual bool scrollsOverflowX() const { return hasOverflowClip() && (style()
->overflowX() == OSCROLL || hasAutoHorizontalScrollbar()); } |
| 417 virtual bool scrollsOverflowY() const { return hasOverflowClip() && (style()
->overflowY() == OSCROLL || hasAutoVerticalScrollbar()); } | 417 virtual bool scrollsOverflowY() const { return hasOverflowClip() && (style()
->overflowY() == OSCROLL || hasAutoVerticalScrollbar()); } |
| 418 | 418 |
| 419 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0) override; | 419 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0) override; |
| 420 | 420 |
| 421 virtual LayoutRect overflowClipRect(const LayoutPoint& location); | 421 virtual LayoutRect overflowClipRect(const LayoutPoint& location); |
| 422 LayoutRect clipRect(const LayoutPoint& location); | 422 LayoutRect clipRect(const LayoutPoint& location); |
| 423 virtual bool hasControlClip() const { return false; } | |
| 424 virtual LayoutRect controlClipRect(const LayoutPoint&) const { return Layout
Rect(); } | |
| 425 bool pushContentsClip(PaintInfo&, const LayoutPoint& accumulatedOffset, Cont
entsClipBehavior); | 423 bool pushContentsClip(PaintInfo&, const LayoutPoint& accumulatedOffset, Cont
entsClipBehavior); |
| 426 void popContentsClip(PaintInfo&, PaintPhase originalPhase, const LayoutPoint
& accumulatedOffset); | 424 void popContentsClip(PaintInfo&, PaintPhase originalPhase, const LayoutPoint
& accumulatedOffset); |
| 427 | 425 |
| 428 virtual void paintObject(PaintInfo&, const LayoutPoint&) { ASSERT_NOT_REACHE
D(); } | 426 virtual void paintObject(PaintInfo&, const LayoutPoint&) { ASSERT_NOT_REACHE
D(); } |
| 429 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&); | 427 virtual void paintBoxDecorationBackground(PaintInfo&, const LayoutPoint&); |
| 430 virtual void paintMask(PaintInfo&, const LayoutPoint&); | 428 virtual void paintMask(PaintInfo&, const LayoutPoint&); |
| 431 | 429 |
| 432 // Called when a positioned object moves but doesn't necessarily change size
. A simplified layout is attempted | 430 // Called when a positioned object moves but doesn't necessarily change size
. A simplified layout is attempted |
| 433 // that just updates the object's position. If the size does change, the obj
ect remains dirty. | 431 // that just updates the object's position. If the size does change, the obj
ect remains dirty. |
| 434 bool tryLayoutDoingPositionedMovementOnly() | 432 bool tryLayoutDoingPositionedMovementOnly() |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 if (UNLIKELY(inlineBoxWrapper() != 0)) | 617 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 620 deleteLineBoxWrapper(); | 618 deleteLineBoxWrapper(); |
| 621 } | 619 } |
| 622 | 620 |
| 623 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 621 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 624 } | 622 } |
| 625 | 623 |
| 626 } // namespace blink | 624 } // namespace blink |
| 627 | 625 |
| 628 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ | 626 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ |
| OLD | NEW |