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

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: type_name 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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh adowHostNode() : node(); } 748 Node* generatingNode() const { return isPseudoElement() ? node()->parentOrSh adowHostNode() : node(); }
749 749
750 Document& document() const 750 Document& document() const
751 { 751 {
752 ASSERT(m_node || parent()); // crbug.com/402056 752 ASSERT(m_node || parent()); // crbug.com/402056
753 return m_node ? m_node->document() : parent()->document(); 753 return m_node ? m_node->document() : parent()->document();
754 } 754 }
755 LocalFrame* frame() const { return document().frame(); } 755 LocalFrame* frame() const { return document().frame(); }
756 756
757 virtual LayoutMultiColumnSpannerPlaceholder* spannerPlaceholder() const { re turn nullptr; } 757 virtual LayoutMultiColumnSpannerPlaceholder* spannerPlaceholder() const { re turn nullptr; }
758 bool isColumnSpanAll() const { return style()->columnSpan() == ColumnSpanAll && spannerPlaceholder(); } 758 bool isColumnSpanAll() const { return style()->getColumnSpan() == ColumnSpan All && spannerPlaceholder(); }
759 759
760 // We include isLayoutButton in this check because buttons are implemented 760 // We include isLayoutButton in this check because buttons are implemented
761 // using flex box but should still support first-line|first-letter. 761 // using flex box but should still support first-line|first-letter.
762 // The flex box and grid specs require that flex box and grid do not 762 // The flex box and grid specs require that flex box and grid do not
763 // support first-line|first-letter, though. 763 // support first-line|first-letter, though.
764 // TODO(cbiesinger): Remove when buttons are implemented with align-items in stead 764 // TODO(cbiesinger): Remove when buttons are implemented with align-items in stead
765 // of flex box. crbug.com/226252. 765 // of flex box. crbug.com/226252.
766 bool canHaveFirstLineOrFirstLetterStyle() const { return isLayoutBlockFlow() || isLayoutButton(); } 766 bool canHaveFirstLineOrFirstLetterStyle() const { return isLayoutBlockFlow() || isLayoutButton(); }
767 767
768 // This function returns the containing block of the object. 768 // This function returns the containing block of the object.
(...skipping 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after
2124 void showTree(const blink::LayoutObject*); 2124 void showTree(const blink::LayoutObject*);
2125 void showLineTree(const blink::LayoutObject*); 2125 void showLineTree(const blink::LayoutObject*);
2126 void showLayoutTree(const blink::LayoutObject* object1); 2126 void showLayoutTree(const blink::LayoutObject* object1);
2127 // We don't make object2 an optional parameter so that showLayoutTree 2127 // We don't make object2 an optional parameter so that showLayoutTree
2128 // can be called from gdb easily. 2128 // can be called from gdb easily.
2129 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2129 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2130 2130
2131 #endif 2131 #endif
2132 2132
2133 #endif // LayoutObject_h 2133 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698