Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: sky/engine/core/rendering/RenderBox.h

Issue 883583003: Remove dead control clip code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/rendering/RenderBlock.cpp ('k') | sky/engine/core/rendering/RenderBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderBlock.cpp ('k') | sky/engine/core/rendering/RenderBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698