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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 1974323002: Move inlineElementContinuation() to LayoutBlockFlow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review. Created 4 years, 7 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
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 * (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, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 void LayoutBlock::paintChildren(const PaintInfo& paintInfo, const LayoutPoint& p aintOffset) const 864 void LayoutBlock::paintChildren(const PaintInfo& paintInfo, const LayoutPoint& p aintOffset) const
865 { 865 {
866 BlockPainter(*this).paintChildren(paintInfo, paintOffset); 866 BlockPainter(*this).paintChildren(paintInfo, paintOffset);
867 } 867 }
868 868
869 void LayoutBlock::paintObject(const PaintInfo& paintInfo, const LayoutPoint& pai ntOffset) const 869 void LayoutBlock::paintObject(const PaintInfo& paintInfo, const LayoutPoint& pai ntOffset) const
870 { 870 {
871 BlockPainter(*this).paintObject(paintInfo, paintOffset); 871 BlockPainter(*this).paintObject(paintInfo, paintOffset);
872 } 872 }
873 873
874 LayoutInline* LayoutBlock::inlineElementContinuation() const
875 {
876 LayoutBoxModelObject* continuation = this->continuation();
877 return continuation && continuation->isInline() ? toLayoutInline(continuatio n) : 0;
878 }
879
880 bool LayoutBlock::isSelectionRoot() const 874 bool LayoutBlock::isSelectionRoot() const
881 { 875 {
882 if (isPseudoElement()) 876 if (isPseudoElement())
883 return false; 877 return false;
884 ASSERT(node() || isAnonymous()); 878 ASSERT(node() || isAnonymous());
885 879
886 // FIXME: Eventually tables should have to learn how to fill gaps between ce lls, at least in simple non-spanning cases. 880 // FIXME: Eventually tables should have to learn how to fill gaps between ce lls, at least in simple non-spanning cases.
887 if (isTable()) 881 if (isTable())
888 return false; 882 return false;
889 883
(...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after
1965 for (TrackedLayoutBoxListHashSet::const_iterator it = positionedDescenda ntSet->begin(); it != end; ++it) { 1959 for (TrackedLayoutBoxListHashSet::const_iterator it = positionedDescenda ntSet->begin(); it != end; ++it) {
1966 LayoutBox* currBox = *it; 1960 LayoutBox* currBox = *it;
1967 ASSERT(!currBox->needsLayout()); 1961 ASSERT(!currBox->needsLayout());
1968 } 1962 }
1969 } 1963 }
1970 } 1964 }
1971 1965
1972 #endif 1966 #endif
1973 1967
1974 } // namespace blink 1968 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.h ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698