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

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

Issue 2670643004: Rename EDisplay values with k prefix. (Closed)
Patch Set: Rebase Created 3 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. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2009 Google Inc. All rights reserved. 8 * Copyright (C) 2009 Google Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 706
707 // End of SVG-specific methods. 707 // End of SVG-specific methods.
708 708
709 bool isAnonymous() const { return m_bitfields.isAnonymous(); } 709 bool isAnonymous() const { return m_bitfields.isAnonymous(); }
710 bool isAnonymousBlock() const { 710 bool isAnonymousBlock() const {
711 // This function is kept in sync with anonymous block creation conditions in 711 // This function is kept in sync with anonymous block creation conditions in
712 // LayoutBlock::createAnonymousBlock(). This includes creating an anonymous 712 // LayoutBlock::createAnonymousBlock(). This includes creating an anonymous
713 // LayoutBlock having a BLOCK or BOX display. Other classes such as 713 // LayoutBlock having a BLOCK or BOX display. Other classes such as
714 // LayoutTextFragment are not LayoutBlocks and will return false. 714 // LayoutTextFragment are not LayoutBlocks and will return false.
715 // See https://bugs.webkit.org/show_bug.cgi?id=56709. 715 // See https://bugs.webkit.org/show_bug.cgi?id=56709.
716 return isAnonymous() && (style()->display() == EDisplay::Block || 716 return isAnonymous() &&
717 style()->display() == EDisplay::WebkitBox) && 717 (style()->display() == EDisplay::kBlock ||
718 style()->display() == EDisplay::kWebkitBox) &&
718 style()->styleType() == PseudoIdNone && isLayoutBlock() && 719 style()->styleType() == PseudoIdNone && isLayoutBlock() &&
719 !isListMarker() && !isLayoutFlowThread() && 720 !isListMarker() && !isLayoutFlowThread() &&
720 !isLayoutMultiColumnSet() && !isLayoutFullScreen() && 721 !isLayoutMultiColumnSet() && !isLayoutFullScreen() &&
721 !isLayoutFullScreenPlaceholder(); 722 !isLayoutFullScreenPlaceholder();
722 } 723 }
723 bool isElementContinuation() const { 724 bool isElementContinuation() const {
724 return node() && node()->layoutObject() != this; 725 return node() && node()->layoutObject() != this;
725 } 726 }
726 bool isInlineElementContinuation() const { 727 bool isInlineElementContinuation() const {
727 return isElementContinuation() && isInline(); 728 return isElementContinuation() && isInline();
(...skipping 2046 matching lines...) Expand 10 before | Expand all | Expand 10 after
2774 CORE_EXPORT void showLineTree(const blink::LayoutObject*); 2775 CORE_EXPORT void showLineTree(const blink::LayoutObject*);
2775 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); 2776 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1);
2776 // We don't make object2 an optional parameter so that showLayoutTree 2777 // We don't make object2 an optional parameter so that showLayoutTree
2777 // can be called from gdb easily. 2778 // can be called from gdb easily.
2778 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, 2779 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1,
2779 const blink::LayoutObject* object2); 2780 const blink::LayoutObject* object2);
2780 2781
2781 #endif 2782 #endif
2782 2783
2783 #endif // LayoutObject_h 2784 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698