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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 1743803002: Rename enums/functions that collide in chromium style in core/style/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-8
Patch Set: get-names-9: rebase Created 4 years, 9 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) 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. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh adowHostNode() : node(); } 747 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh adowHostNode() : node(); }
748 748
749 Document& document() const 749 Document& document() const
750 { 750 {
751 ASSERT(m_node || parent()); // crbug.com/402056 751 ASSERT(m_node || parent()); // crbug.com/402056
752 return m_node ? m_node->document() : parent()->document(); 752 return m_node ? m_node->document() : parent()->document();
753 } 753 }
754 LocalFrame* frame() const { return document().frame(); } 754 LocalFrame* frame() const { return document().frame(); }
755 755
756 virtual LayoutMultiColumnSpannerPlaceholder* spannerPlaceholder() const { re turn nullptr; } 756 virtual LayoutMultiColumnSpannerPlaceholder* spannerPlaceholder() const { re turn nullptr; }
757 bool isColumnSpanAll() const { return style()->columnSpan() == ColumnSpanAll && spannerPlaceholder(); } 757 bool isColumnSpanAll() const { return style()->getColumnSpan() == ColumnSpan All && spannerPlaceholder(); }
758 758
759 // We include isLayoutButton in this check because buttons are implemented 759 // We include isLayoutButton in this check because buttons are implemented
760 // using flex box but should still support first-line|first-letter. 760 // using flex box but should still support first-line|first-letter.
761 // The flex box and grid specs require that flex box and grid do not 761 // The flex box and grid specs require that flex box and grid do not
762 // support first-line|first-letter, though. 762 // support first-line|first-letter, though.
763 // TODO(cbiesinger): Remove when buttons are implemented with align-items in stead 763 // TODO(cbiesinger): Remove when buttons are implemented with align-items in stead
764 // of flex box. crbug.com/226252. 764 // of flex box. crbug.com/226252.
765 bool canHaveFirstLineOrFirstLetterStyle() const { return isLayoutBlockFlow() || isLayoutButton(); } 765 bool canHaveFirstLineOrFirstLetterStyle() const { return isLayoutBlockFlow() || isLayoutButton(); }
766 766
767 // This function returns the containing block of the object. 767 // This function returns the containing block of the object.
(...skipping 1374 matching lines...) Expand 10 before | Expand all | Expand 10 after
2142 void showTree(const blink::LayoutObject*); 2142 void showTree(const blink::LayoutObject*);
2143 void showLineTree(const blink::LayoutObject*); 2143 void showLineTree(const blink::LayoutObject*);
2144 void showLayoutTree(const blink::LayoutObject* object1); 2144 void showLayoutTree(const blink::LayoutObject* object1);
2145 // We don't make object2 an optional parameter so that showLayoutTree 2145 // We don't make object2 an optional parameter so that showLayoutTree
2146 // can be called from gdb easily. 2146 // can be called from gdb easily.
2147 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2147 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2148 2148
2149 #endif 2149 #endif
2150 2150
2151 #endif // LayoutObject_h 2151 #endif // LayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutMultiColumnSet.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698