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

Side by Side Diff: Source/core/rendering/RenderBox.h

Issue 15973002: Remove NonCompositedContentHost -- Take 2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: adding back annotation. final rebase. Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/FrameView.cpp ('k') | Source/core/rendering/RenderLayer.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 class RenderBox : public RenderBoxModelObject { 43 class RenderBox : public RenderBoxModelObject {
44 public: 44 public:
45 explicit RenderBox(ContainerNode*); 45 explicit RenderBox(ContainerNode*);
46 virtual ~RenderBox(); 46 virtual ~RenderBox();
47 47
48 // hasAutoZIndex only returns true if the element is positioned or a flex-it em since 48 // hasAutoZIndex only returns true if the element is positioned or a flex-it em since
49 // position:static elements that are not flex-items get their z-index coerce d to auto. 49 // position:static elements that are not flex-items get their z-index coerce d to auto.
50 virtual bool requiresLayer() const OVERRIDE { return isRoot() || isPositione d() || createsGroup() || hasClipPath() || hasOverflowClip() || hasTransform() || hasHiddenBackface() || hasReflection() || style()->specifiesColumns() || !style ()->hasAutoZIndex() || isFloatingWithShapeOutside(); } 50 virtual bool requiresLayer() const OVERRIDE { return isRoot() || isPositione d() || createsGroup() || hasClipPath() || hasOverflowClip() || hasTransform() || hasHiddenBackface() || hasReflection() || style()->specifiesColumns() || !style ()->hasAutoZIndex() || isFloatingWithShapeOutside(); }
51 51
52 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const OVERRIDE FINAL; 52 virtual bool backgroundIsKnownToBeOpaqueInRect(const LayoutRect& localRect) const OVERRIDE;
53 53
54 // Use this with caution! No type checking is done! 54 // Use this with caution! No type checking is done!
55 RenderBox* firstChildBox() const; 55 RenderBox* firstChildBox() const;
56 RenderBox* lastChildBox() const; 56 RenderBox* lastChildBox() const;
57 57
58 LayoutUnit x() const { return m_frameRect.x(); } 58 LayoutUnit x() const { return m_frameRect.x(); }
59 LayoutUnit y() const { return m_frameRect.y(); } 59 LayoutUnit y() const { return m_frameRect.y(); }
60 LayoutUnit width() const { return m_frameRect.width(); } 60 LayoutUnit width() const { return m_frameRect.width(); }
61 LayoutUnit height() const { return m_frameRect.height(); } 61 LayoutUnit height() const { return m_frameRect.height(); }
62 62
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 if (UNLIKELY(m_inlineBoxWrapper != 0)) 736 if (UNLIKELY(m_inlineBoxWrapper != 0))
737 deleteLineBoxWrapper(); 737 deleteLineBoxWrapper();
738 } 738 }
739 739
740 m_inlineBoxWrapper = boxWrapper; 740 m_inlineBoxWrapper = boxWrapper;
741 } 741 }
742 742
743 } // namespace WebCore 743 } // namespace WebCore
744 744
745 #endif // RenderBox_h 745 #endif // RenderBox_h
OLDNEW
« no previous file with comments | « Source/core/page/FrameView.cpp ('k') | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698