| OLD | NEW | 
|---|
| 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 435     bool isLayoutTableCol() const { return isOfType(LayoutObjectLayoutTableCol);
       } | 435     bool isLayoutTableCol() const { return isOfType(LayoutObjectLayoutTableCol);
       } | 
| 436     bool isListBox() const { return isOfType(LayoutObjectListBox); } | 436     bool isListBox() const { return isOfType(LayoutObjectListBox); } | 
| 437     bool isListItem() const { return isOfType(LayoutObjectListItem); } | 437     bool isListItem() const { return isOfType(LayoutObjectListItem); } | 
| 438     bool isListMarker() const { return isOfType(LayoutObjectListMarker); } | 438     bool isListMarker() const { return isOfType(LayoutObjectListMarker); } | 
| 439     bool isMedia() const { return isOfType(LayoutObjectMedia); } | 439     bool isMedia() const { return isOfType(LayoutObjectMedia); } | 
| 440     bool isMenuList() const { return isOfType(LayoutObjectMenuList); } | 440     bool isMenuList() const { return isOfType(LayoutObjectMenuList); } | 
| 441     bool isMeter() const { return isOfType(LayoutObjectMeter); } | 441     bool isMeter() const { return isOfType(LayoutObjectMeter); } | 
| 442     bool isProgress() const { return isOfType(LayoutObjectProgress); } | 442     bool isProgress() const { return isOfType(LayoutObjectProgress); } | 
| 443     bool isQuote() const { return isOfType(LayoutObjectQuote); } | 443     bool isQuote() const { return isOfType(LayoutObjectQuote); } | 
| 444     bool isLayoutButton() const { return isOfType(LayoutObjectLayoutButton); } | 444     bool isLayoutButton() const { return isOfType(LayoutObjectLayoutButton); } | 
| 445     bool isLayoutFullScreen() const { return isOfType(LayoutObjectLayoutFullScre
      en); } |  | 
| 446     bool isLayoutFullScreenPlaceholder() const { return isOfType(LayoutObjectLay
      outFullScreenPlaceholder); } |  | 
| 447     bool isLayoutGrid() const { return isOfType(LayoutObjectLayoutGrid); } | 445     bool isLayoutGrid() const { return isOfType(LayoutObjectLayoutGrid); } | 
| 448     bool isLayoutIFrame() const { return isOfType(LayoutObjectLayoutIFrame); } | 446     bool isLayoutIFrame() const { return isOfType(LayoutObjectLayoutIFrame); } | 
| 449     bool isLayoutImage() const { return isOfType(LayoutObjectLayoutImage); } | 447     bool isLayoutImage() const { return isOfType(LayoutObjectLayoutImage); } | 
| 450     bool isLayoutMultiColumnSet() const { return isOfType(LayoutObjectLayoutMult
      iColumnSet); } | 448     bool isLayoutMultiColumnSet() const { return isOfType(LayoutObjectLayoutMult
      iColumnSet); } | 
| 451     bool isLayoutMultiColumnSpannerPlaceholder() const { return isOfType(LayoutO
      bjectLayoutMultiColumnSpannerPlaceholder); } | 449     bool isLayoutMultiColumnSpannerPlaceholder() const { return isOfType(LayoutO
      bjectLayoutMultiColumnSpannerPlaceholder); } | 
| 452     bool isLayoutScrollbarPart() const { return isOfType(LayoutObjectLayoutScrol
      lbarPart); } | 450     bool isLayoutScrollbarPart() const { return isOfType(LayoutObjectLayoutScrol
      lbarPart); } | 
| 453     bool isLayoutView() const { return isOfType(LayoutObjectLayoutView); } | 451     bool isLayoutView() const { return isOfType(LayoutObjectLayoutView); } | 
| 454     bool isReplica() const { return isOfType(LayoutObjectReplica); } | 452     bool isReplica() const { return isOfType(LayoutObjectReplica); } | 
| 455     bool isRuby() const { return isOfType(LayoutObjectRuby); } | 453     bool isRuby() const { return isOfType(LayoutObjectRuby); } | 
| 456     bool isRubyBase() const { return isOfType(LayoutObjectRubyBase); } | 454     bool isRubyBase() const { return isOfType(LayoutObjectRubyBase); } | 
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 583     // rest of the layout tree will move to a similar model. | 581     // rest of the layout tree will move to a similar model. | 
| 584     virtual bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParen
      t, HitTestAction); | 582     virtual bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParen
      t, HitTestAction); | 
| 585 | 583 | 
| 586     bool isAnonymous() const { return m_bitfields.isAnonymous(); } | 584     bool isAnonymous() const { return m_bitfields.isAnonymous(); } | 
| 587     bool isAnonymousBlock() const | 585     bool isAnonymousBlock() const | 
| 588     { | 586     { | 
| 589         // This function is kept in sync with anonymous block creation condition
      s in | 587         // This function is kept in sync with anonymous block creation condition
      s in | 
| 590         // LayoutBlock::createAnonymousBlock(). This includes creating an anonym
      ous | 588         // LayoutBlock::createAnonymousBlock(). This includes creating an anonym
      ous | 
| 591         // LayoutBlock having a BLOCK or BOX display. Other classes such as Layo
      utTextFragment | 589         // LayoutBlock having a BLOCK or BOX display. Other classes such as Layo
      utTextFragment | 
| 592         // are not LayoutBlocks and will return false. See https://bugs.webkit.o
      rg/show_bug.cgi?id=56709. | 590         // are not LayoutBlocks and will return false. See https://bugs.webkit.o
      rg/show_bug.cgi?id=56709. | 
| 593         return isAnonymous() && (style()->display() == BLOCK || style()->display
      () == BOX) && style()->styleType() == NOPSEUDO && isLayoutBlock() && !isListMark
      er() && !isLayoutFlowThread() && !isLayoutMultiColumnSet() | 591         return isAnonymous() && (style()->display() == BLOCK || style()->display
      () == BOX) && style()->styleType() == NOPSEUDO && isLayoutBlock() && !isListMark
      er() && !isLayoutFlowThread() && !isLayoutMultiColumnSet(); | 
| 594             && !isLayoutFullScreen() |  | 
| 595             && !isLayoutFullScreenPlaceholder(); |  | 
| 596     } | 592     } | 
| 597     bool isElementContinuation() const { return node() && node()->layoutObject()
       != this; } | 593     bool isElementContinuation() const { return node() && node()->layoutObject()
       != this; } | 
| 598     bool isInlineElementContinuation() const { return isElementContinuation() &&
       isInline(); } | 594     bool isInlineElementContinuation() const { return isElementContinuation() &&
       isInline(); } | 
| 599     virtual LayoutBoxModelObject* virtualContinuation() const { return nullptr; 
      } | 595     virtual LayoutBoxModelObject* virtualContinuation() const { return nullptr; 
      } | 
| 600 | 596 | 
| 601     bool isFloating() const { return m_bitfields.floating(); } | 597     bool isFloating() const { return m_bitfields.floating(); } | 
| 602 | 598 | 
| 603     bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione
      d(); } // absolute or fixed positioning | 599     bool isOutOfFlowPositioned() const { return m_bitfields.isOutOfFlowPositione
      d(); } // absolute or fixed positioning | 
| 604     bool isInFlowPositioned() const { return m_bitfields.isInFlowPositioned(); }
       // relative or sticky positioning | 600     bool isInFlowPositioned() const { return m_bitfields.isInFlowPositioned(); }
       // relative or sticky positioning | 
| 605     bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re
      lative positioning | 601     bool isRelPositioned() const { return m_bitfields.isRelPositioned(); } // re
      lative positioning | 
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1300         LayoutObjectListBox, | 1296         LayoutObjectListBox, | 
| 1301         LayoutObjectListItem, | 1297         LayoutObjectListItem, | 
| 1302         LayoutObjectListMarker, | 1298         LayoutObjectListMarker, | 
| 1303         LayoutObjectMedia, | 1299         LayoutObjectMedia, | 
| 1304         LayoutObjectMenuList, | 1300         LayoutObjectMenuList, | 
| 1305         LayoutObjectMeter, | 1301         LayoutObjectMeter, | 
| 1306         LayoutObjectProgress, | 1302         LayoutObjectProgress, | 
| 1307         LayoutObjectQuote, | 1303         LayoutObjectQuote, | 
| 1308         LayoutObjectLayoutButton, | 1304         LayoutObjectLayoutButton, | 
| 1309         LayoutObjectLayoutFlowThread, | 1305         LayoutObjectLayoutFlowThread, | 
| 1310         LayoutObjectLayoutFullScreen, |  | 
| 1311         LayoutObjectLayoutFullScreenPlaceholder, |  | 
| 1312         LayoutObjectLayoutGrid, | 1306         LayoutObjectLayoutGrid, | 
| 1313         LayoutObjectLayoutIFrame, | 1307         LayoutObjectLayoutIFrame, | 
| 1314         LayoutObjectLayoutImage, | 1308         LayoutObjectLayoutImage, | 
| 1315         LayoutObjectLayoutInline, | 1309         LayoutObjectLayoutInline, | 
| 1316         LayoutObjectLayoutMultiColumnSet, | 1310         LayoutObjectLayoutMultiColumnSet, | 
| 1317         LayoutObjectLayoutMultiColumnSpannerPlaceholder, | 1311         LayoutObjectLayoutMultiColumnSpannerPlaceholder, | 
| 1318         LayoutObjectLayoutPart, | 1312         LayoutObjectLayoutPart, | 
| 1319         LayoutObjectLayoutScrollbarPart, | 1313         LayoutObjectLayoutScrollbarPart, | 
| 1320         LayoutObjectLayoutView, | 1314         LayoutObjectLayoutView, | 
| 1321         LayoutObjectReplica, | 1315         LayoutObjectReplica, | 
| (...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2006 void showTree(const blink::LayoutObject*); | 2000 void showTree(const blink::LayoutObject*); | 
| 2007 void showLineTree(const blink::LayoutObject*); | 2001 void showLineTree(const blink::LayoutObject*); | 
| 2008 void showLayoutTree(const blink::LayoutObject* object1); | 2002 void showLayoutTree(const blink::LayoutObject* object1); | 
| 2009 // We don't make object2 an optional parameter so that showLayoutTree | 2003 // We don't make object2 an optional parameter so that showLayoutTree | 
| 2010 // can be called from gdb easily. | 2004 // can be called from gdb easily. | 
| 2011 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
      t* object2); | 2005 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
      t* object2); | 
| 2012 | 2006 | 
| 2013 #endif | 2007 #endif | 
| 2014 | 2008 | 
| 2015 #endif // LayoutObject_h | 2009 #endif // LayoutObject_h | 
| OLD | NEW | 
|---|