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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase to master Created 5 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 | Annotate | Revision Log
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 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 // This function is kept in sync with anonymous block creation condition s in 508 // This function is kept in sync with anonymous block creation condition s in
509 // LayoutBlock::createAnonymousBlock(). This includes creating an anonym ous 509 // LayoutBlock::createAnonymousBlock(). This includes creating an anonym ous
510 // LayoutBlock having a BLOCK or BOX display. Other classes such as Layo utTextFragment 510 // LayoutBlock having a BLOCK or BOX display. Other classes such as Layo utTextFragment
511 // are not LayoutBlocks and will return false. See https://bugs.webkit.o rg/show_bug.cgi?id=56709. 511 // are not LayoutBlocks and will return false. See https://bugs.webkit.o rg/show_bug.cgi?id=56709.
512 return isAnonymous() && (style()->display() == BLOCK || style()->display () == BOX) && style()->styleType() == NOPSEUDO && isLayoutBlock() && !isListMark er() && !isLayoutFlowThread() && !isLayoutMultiColumnSet() 512 return isAnonymous() && (style()->display() == BLOCK || style()->display () == BOX) && style()->styleType() == NOPSEUDO && isLayoutBlock() && !isListMark er() && !isLayoutFlowThread() && !isLayoutMultiColumnSet()
513 && !isLayoutFullScreen() 513 && !isLayoutFullScreen()
514 && !isLayoutFullScreenPlaceholder(); 514 && !isLayoutFullScreenPlaceholder();
515 } 515 }
516 bool isAnonymousColumnsBlock() const { return style()->specifiesColumns() && isAnonymousBlock(); } 516 bool isAnonymousColumnsBlock() const { return style()->specifiesColumns() && isAnonymousBlock(); }
517 bool isAnonymousColumnSpanBlock() const { return style()->columnSpan() && is AnonymousBlock(); } 517 bool isAnonymousColumnSpanBlock() const { return style()->columnSpan() && is AnonymousBlock(); }
518 bool isElementContinuation() const { return node() && node()->renderer() != this; } 518 bool isElementContinuation() const { return node() && node()->layoutObject() != this; }
519 bool isInlineElementContinuation() const { return isElementContinuation() && isInline(); } 519 bool isInlineElementContinuation() const { return isElementContinuation() && isInline(); }
520 virtual LayoutBoxModelObject* virtualContinuation() const { return 0; } 520 virtual LayoutBoxModelObject* virtualContinuation() const { return 0; }
521 521
522 bool isFloating() const { return m_bitfields.floating(); } 522 bool isFloating() const { return m_bitfields.floating(); }
523 523
524 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione d(); } // absolute or fixed positioning 524 bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione d(); } // absolute or fixed positioning
525 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re lative positioning 525 bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re lative positioning
526 bool isPositioned() const { return m_bitfields.isPositioned(); } 526 bool isPositioned() const { return m_bitfields.isPositioned(); }
527 527
528 bool isText() const { return m_bitfields.isText(); } 528 bool isText() const { return m_bitfields.isText(); }
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1637 void showTree(const blink::LayoutObject*); 1637 void showTree(const blink::LayoutObject*);
1638 void showLineTree(const blink::LayoutObject*); 1638 void showLineTree(const blink::LayoutObject*);
1639 void showLayoutTree(const blink::LayoutObject* object1); 1639 void showLayoutTree(const blink::LayoutObject* object1);
1640 // We don't make object2 an optional parameter so that showLayoutTree 1640 // We don't make object2 an optional parameter so that showLayoutTree
1641 // can be called from gdb easily. 1641 // can be called from gdb easily.
1642 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 1642 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
1643 1643
1644 #endif 1644 #endif
1645 1645
1646 #endif // LayoutObject_h 1646 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698