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

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

Issue 12209019: Merge 141093 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 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
« no previous file with comments | « Source/WebCore/dom/Element.h ('k') | no next file » | 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 Apple Inc. All r ights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights 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 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after
1990 } 1990 }
1991 1991
1992 void Element::setChildIndex(unsigned index) 1992 void Element::setChildIndex(unsigned index)
1993 { 1993 {
1994 ElementRareData* rareData = ensureElementRareData(); 1994 ElementRareData* rareData = ensureElementRareData();
1995 if (RenderStyle* style = renderStyle()) 1995 if (RenderStyle* style = renderStyle())
1996 style->setUnique(); 1996 style->setUnique();
1997 rareData->setChildIndex(index); 1997 rareData->setChildIndex(index);
1998 } 1998 }
1999 1999
2000 bool Element::hasFlagsSetDuringStylingOfChildren() const
2001 {
2002 if (!hasRareData())
2003 return false;
2004 return rareDataChildrenAffectedByHover()
2005 || rareDataChildrenAffectedByActive()
2006 || rareDataChildrenAffectedByDrag()
2007 || rareDataChildrenAffectedByFirstChildRules()
2008 || rareDataChildrenAffectedByLastChildRules()
2009 || rareDataChildrenAffectedByDirectAdjacentRules()
2010 || rareDataChildrenAffectedByForwardPositionalRules()
2011 || rareDataChildrenAffectedByBackwardPositionalRules();
2012 }
2013
2000 bool Element::rareDataStyleAffectedByEmpty() const 2014 bool Element::rareDataStyleAffectedByEmpty() const
2001 { 2015 {
2002 ASSERT(hasRareData()); 2016 ASSERT(hasRareData());
2003 return elementRareData()->styleAffectedByEmpty(); 2017 return elementRareData()->styleAffectedByEmpty();
2004 } 2018 }
2005 2019
2006 bool Element::rareDataChildrenAffectedByHover() const 2020 bool Element::rareDataChildrenAffectedByHover() const
2007 { 2021 {
2008 ASSERT(hasRareData()); 2022 ASSERT(hasRareData());
2009 return elementRareData()->childrenAffectedByHover(); 2023 return elementRareData()->childrenAffectedByHover();
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
2709 2723
2710 void Element::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 2724 void Element::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
2711 { 2725 {
2712 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); 2726 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM);
2713 ContainerNode::reportMemoryUsage(memoryObjectInfo); 2727 ContainerNode::reportMemoryUsage(memoryObjectInfo);
2714 info.addMember(m_tagName); 2728 info.addMember(m_tagName);
2715 info.addMember(m_attributeData); 2729 info.addMember(m_attributeData);
2716 } 2730 }
2717 2731
2718 } // namespace WebCore 2732 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/dom/Element.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698