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

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

Issue 7155001: Merge 87827 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 6 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 | « no previous file | 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 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 if (m_pushedStyleSelector) 83 if (m_pushedStyleSelector)
84 return; 84 return;
85 m_pushedStyleSelector = m_parent->document()->styleSelector(); 85 m_pushedStyleSelector = m_parent->document()->styleSelector();
86 m_pushedStyleSelector->pushParent(m_parent); 86 m_pushedStyleSelector->pushParent(m_parent);
87 } 87 }
88 ~StyleSelectorParentPusher() 88 ~StyleSelectorParentPusher()
89 { 89 {
90 90
91 if (!m_pushedStyleSelector) 91 if (!m_pushedStyleSelector)
92 return; 92 return;
93
94 // This tells us that our pushed style selector is in a bad state,
95 // so we should just bail out in that scenario.
93 ASSERT(m_pushedStyleSelector == m_parent->document()->styleSelector()); 96 ASSERT(m_pushedStyleSelector == m_parent->document()->styleSelector());
97 if (m_pushedStyleSelector != m_parent->document()->styleSelector())
98 return;
99
94 m_pushedStyleSelector->popParent(m_parent); 100 m_pushedStyleSelector->popParent(m_parent);
95 } 101 }
96 102
97 private: 103 private:
98 Element* m_parent; 104 Element* m_parent;
99 CSSStyleSelector* m_pushedStyleSelector; 105 CSSStyleSelector* m_pushedStyleSelector;
100 }; 106 };
101 107
102 PassRefPtr<Element> Element::create(const QualifiedName& tagName, Document* docu ment) 108 PassRefPtr<Element> Element::create(const QualifiedName& tagName, Document* docu ment)
103 { 109 {
(...skipping 1861 matching lines...) Expand 10 before | Expand all | Expand 10 after
1965 1971
1966 AnimationController* animController = renderer()->animation(); 1972 AnimationController* animController = renderer()->animation();
1967 1973
1968 if (!animController) 1974 if (!animController)
1969 return 0; 1975 return 0;
1970 1976
1971 return animController->animationsForRenderer(renderer()); 1977 return animController->animationsForRenderer(renderer());
1972 } 1978 }
1973 1979
1974 } // namespace WebCore 1980 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698