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

Side by Side Diff: Source/core/dom/Element.cpp

Issue 171773008: Rename childNodeCount() / childNode() methods for clarity (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Further renaming for consistency Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/ContainerNodeAlgorithms.h ('k') | Source/core/dom/Node.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
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 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 break; 1797 break;
1798 } 1798 }
1799 return false; 1799 return false;
1800 } 1800 }
1801 1801
1802 void Element::checkForEmptyStyleChange(RenderStyle* style) 1802 void Element::checkForEmptyStyleChange(RenderStyle* style)
1803 { 1803 {
1804 if (!style && !styleAffectedByEmpty()) 1804 if (!style && !styleAffectedByEmpty())
1805 return; 1805 return;
1806 1806
1807 if (!style || (styleAffectedByEmpty() && (!style->emptyState() || hasChildNo des()))) 1807 if (!style || (styleAffectedByEmpty() && (!style->emptyState() || hasChildre n())))
1808 setNeedsStyleRecalc(SubtreeStyleChange); 1808 setNeedsStyleRecalc(SubtreeStyleChange);
1809 } 1809 }
1810 1810
1811 void Element::checkForSiblingStyleChanges(bool finishedParsingCallback, Node* be foreChange, Node* afterChange, int childCountDelta) 1811 void Element::checkForSiblingStyleChanges(bool finishedParsingCallback, Node* be foreChange, Node* afterChange, int childCountDelta)
1812 { 1812 {
1813 if (!inActiveDocument() || document().hasPendingForcedStyleRecalc() || style ChangeType() >= SubtreeStyleChange) 1813 if (!inActiveDocument() || document().hasPendingForcedStyleRecalc() || style ChangeType() >= SubtreeStyleChange)
1814 return; 1814 return;
1815 1815
1816 RenderStyle* style = renderStyle(); 1816 RenderStyle* style = renderStyle();
1817 1817
(...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after
3503 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi stItems 3503 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi stItems
3504 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg i?id=88405 3504 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg i?id=88405
3505 if (hasTagName(optionTag) || hasTagName(optgroupTag)) 3505 if (hasTagName(optionTag) || hasTagName(optgroupTag))
3506 return false; 3506 return false;
3507 if (FullscreenElementStack::isActiveFullScreenElement(this)) 3507 if (FullscreenElementStack::isActiveFullScreenElement(this))
3508 return false; 3508 return false;
3509 return true; 3509 return true;
3510 } 3510 }
3511 3511
3512 } // namespace WebCore 3512 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/ContainerNodeAlgorithms.h ('k') | Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698