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

Side by Side Diff: Source/core/rendering/RenderObject.h

Issue 296413007: [New Multicolumn] Add support for column-span:all (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@359976
Patch Set: Created 6 years, 7 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 virtual bool isRenderBlockFlow() const { return false; } 352 virtual bool isRenderBlockFlow() const { return false; }
353 virtual bool isRenderButton() const { return false; } 353 virtual bool isRenderButton() const { return false; }
354 virtual bool isRenderFlowThread() const { return false; } 354 virtual bool isRenderFlowThread() const { return false; }
355 virtual bool isRenderFullScreen() const { return false; } 355 virtual bool isRenderFullScreen() const { return false; }
356 virtual bool isRenderFullScreenPlaceholder() const { return false; } 356 virtual bool isRenderFullScreenPlaceholder() const { return false; }
357 virtual bool isRenderGrid() const { return false; } 357 virtual bool isRenderGrid() const { return false; }
358 virtual bool isRenderIFrame() const { return false; } 358 virtual bool isRenderIFrame() const { return false; }
359 virtual bool isRenderImage() const { return false; } 359 virtual bool isRenderImage() const { return false; }
360 virtual bool isRenderInline() const { return false; } 360 virtual bool isRenderInline() const { return false; }
361 virtual bool isRenderMultiColumnSet() const { return false; } 361 virtual bool isRenderMultiColumnSet() const { return false; }
362 virtual bool isRenderMultiColumnSpannerPlaceholder() const { return false; }
362 virtual bool isRenderPart() const { return false; } 363 virtual bool isRenderPart() const { return false; }
363 virtual bool isRenderRegion() const { return false; } 364 virtual bool isRenderRegion() const { return false; }
364 virtual bool isRenderScrollbarPart() const { return false; } 365 virtual bool isRenderScrollbarPart() const { return false; }
365 virtual bool isRenderTableCol() const { return false; } 366 virtual bool isRenderTableCol() const { return false; }
366 virtual bool isRenderView() const { return false; } 367 virtual bool isRenderView() const { return false; }
367 virtual bool isReplica() const { return false; } 368 virtual bool isReplica() const { return false; }
368 virtual bool isRuby() const { return false; } 369 virtual bool isRuby() const { return false; }
369 virtual bool isRubyBase() const { return false; } 370 virtual bool isRubyBase() const { return false; }
370 virtual bool isRubyRun() const { return false; } 371 virtual bool isRubyRun() const { return false; }
371 virtual bool isRubyText() const { return false; } 372 virtual bool isRubyText() const { return false; }
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 return true; 484 return true;
484 } 485 }
485 486
486 bool isAnonymous() const { return m_bitfields.isAnonymous(); } 487 bool isAnonymous() const { return m_bitfields.isAnonymous(); }
487 bool isAnonymousBlock() const 488 bool isAnonymousBlock() const
488 { 489 {
489 // This function is kept in sync with anonymous block creation condition s in 490 // This function is kept in sync with anonymous block creation condition s in
490 // RenderBlock::createAnonymousBlock(). This includes creating an anonym ous 491 // RenderBlock::createAnonymousBlock(). This includes creating an anonym ous
491 // RenderBlock having a BLOCK or BOX display. Other classes such as Rend erTextFragment 492 // RenderBlock having a BLOCK or BOX display. Other classes such as Rend erTextFragment
492 // are not RenderBlocks and will return false. See https://bugs.webkit.o rg/show_bug.cgi?id=56709. 493 // are not RenderBlocks and will return false. See https://bugs.webkit.o rg/show_bug.cgi?id=56709.
493 return isAnonymous() && (style()->display() == BLOCK || style()->display () == BOX) && style()->styleType() == NOPSEUDO && isRenderBlock() && !isListMark er() && !isRenderFlowThread() 494 return isAnonymous() && (style()->display() == BLOCK || style()->display () == BOX) && style()->styleType() == NOPSEUDO && isRenderBlock() && !isListMark er() && !isRenderFlowThread() && !isRenderMultiColumnSet()
rune 2014/07/01 08:41:39 I guess the added check here is because of RenderM
mstensho (USE GERRIT) 2014/08/26 09:43:58 It's here to make sure that a column set isn't tre
rune 2014/08/27 07:00:01 Acknowledged.
494 && !isRenderFullScreen() 495 && !isRenderFullScreen()
495 && !isRenderFullScreenPlaceholder(); 496 && !isRenderFullScreenPlaceholder();
496 } 497 }
497 bool isAnonymousColumnsBlock() const { return style()->specifiesColumns() && isAnonymousBlock(); } 498 bool isAnonymousColumnsBlock() const { return style()->specifiesColumns() && isAnonymousBlock(); }
498 bool isAnonymousColumnSpanBlock() const { return style()->columnSpan() && is AnonymousBlock(); } 499 bool isAnonymousColumnSpanBlock() const { return style()->columnSpan() && is AnonymousBlock(); }
499 bool isElementContinuation() const { return node() && node()->renderer() != this; } 500 bool isElementContinuation() const { return node() && node()->renderer() != this; }
500 bool isInlineElementContinuation() const { return isElementContinuation() && isInline(); } 501 bool isInlineElementContinuation() const { return isElementContinuation() && isInline(); }
501 virtual RenderBoxModelObject* virtualContinuation() const { return 0; } 502 virtual RenderBoxModelObject* virtualContinuation() const { return 0; }
502 503
503 bool isFloating() const { return m_bitfields.floating(); } 504 bool isFloating() const { return m_bitfields.floating(); }
(...skipping 974 matching lines...) Expand 10 before | Expand all | Expand 10 after
1478 void showTree(const WebCore::RenderObject*); 1479 void showTree(const WebCore::RenderObject*);
1479 void showLineTree(const WebCore::RenderObject*); 1480 void showLineTree(const WebCore::RenderObject*);
1480 void showRenderTree(const WebCore::RenderObject* object1); 1481 void showRenderTree(const WebCore::RenderObject* object1);
1481 // We don't make object2 an optional parameter so that showRenderTree 1482 // We don't make object2 an optional parameter so that showRenderTree
1482 // can be called from gdb easily. 1483 // can be called from gdb easily.
1483 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1484 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1484 1485
1485 #endif 1486 #endif
1486 1487
1487 #endif // RenderObject_h 1488 #endif // RenderObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698