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

Side by Side Diff: sky/engine/core/rendering/RenderBlock.cpp

Issue 893093002: Delete remaining masks dead code. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 return selectionState() != SelectionNone && isSelectionRoot(); 529 return selectionState() != SelectionNone && isSelectionRoot();
530 } 530 }
531 531
532 bool RenderBlock::isSelectionRoot() const 532 bool RenderBlock::isSelectionRoot() const
533 { 533 {
534 ASSERT(node() || isAnonymous()); 534 ASSERT(node() || isAnonymous());
535 535
536 if (isDocumentElement() || hasOverflowClip() 536 if (isDocumentElement() || hasOverflowClip()
537 || isPositioned() 537 || isPositioned()
538 || isInlineBlock() 538 || isInlineBlock()
539 || hasTransform() || hasMask() 539 || hasTransform()
540 || isFlexItem()) 540 || isFlexItem())
541 return true; 541 return true;
542 542
543 if (view() && view()->selectionStart()) { 543 if (view() && view()->selectionStart()) {
544 Node* startElement = view()->selectionStart()->node(); 544 Node* startElement = view()->selectionStart()->node();
545 if (startElement && startElement->rootEditableElement() == node()) 545 if (startElement && startElement->rootEditableElement() == node())
546 return true; 546 return true;
547 } 547 }
548 548
549 return false; 549 return false;
(...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render Object* obj) const 1769 void RenderBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Render Object* obj) const
1770 { 1770 {
1771 showRenderObject(); 1771 showRenderObject();
1772 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box()) 1772 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot Box())
1773 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1); 1773 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa bel2, obj, 1);
1774 } 1774 }
1775 1775
1776 #endif 1776 #endif
1777 1777
1778 } // namespace blink 1778 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/StyleAdjuster.cpp ('k') | sky/engine/core/rendering/RenderBoxModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698