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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGElementRareData.cpp

Issue 2450093005: Support display: contents for elements, first-line and first-letter pseudos. (Closed)
Patch Set: Allow text as child of the LayoutView, since it can happen with display: contents Created 4 years 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/svg/SVGElementRareData.h" 5 #include "core/svg/SVGElementRareData.h"
6 6
7 #include "core/css/CSSCursorImageValue.h" 7 #include "core/css/CSSCursorImageValue.h"
8 #include "core/css/resolver/StyleResolver.h" 8 #include "core/css/resolver/StyleResolver.h"
9 #include "core/dom/Document.h" 9 #include "core/dom/Document.h"
10 #include "core/svg/SVGCursorElement.h" 10 #include "core/svg/SVGCursorElement.h"
(...skipping 14 matching lines...) Expand all
25 const ComputedStyle* parentStyle) { 25 const ComputedStyle* parentStyle) {
26 ASSERT(element); 26 ASSERT(element);
27 if (!m_useOverrideComputedStyle) 27 if (!m_useOverrideComputedStyle)
28 return nullptr; 28 return nullptr;
29 if (!m_overrideComputedStyle || m_needsOverrideComputedStyleUpdate) { 29 if (!m_overrideComputedStyle || m_needsOverrideComputedStyleUpdate) {
30 // The style computed here contains no CSS Animations/Transitions or SMIL 30 // The style computed here contains no CSS Animations/Transitions or SMIL
31 // induced rules - this is needed to compute the "base value" for the SMIL 31 // induced rules - this is needed to compute the "base value" for the SMIL
32 // animation sandwhich model. 32 // animation sandwhich model.
33 m_overrideComputedStyle = 33 m_overrideComputedStyle =
34 element->document().ensureStyleResolver().styleForElement( 34 element->document().ensureStyleResolver().styleForElement(
35 element, parentStyle, DisallowStyleSharing, 35 element, parentStyle, parentStyle, DisallowStyleSharing,
36 MatchAllRulesExcludingSMIL); 36 MatchAllRulesExcludingSMIL);
37 m_needsOverrideComputedStyleUpdate = false; 37 m_needsOverrideComputedStyleUpdate = false;
38 } 38 }
39 ASSERT(m_overrideComputedStyle); 39 ASSERT(m_overrideComputedStyle);
40 return m_overrideComputedStyle.get(); 40 return m_overrideComputedStyle.get();
41 } 41 }
42 42
43 DEFINE_TRACE(SVGElementRareData) { 43 DEFINE_TRACE(SVGElementRareData) {
44 visitor->trace(m_outgoingReferences); 44 visitor->trace(m_outgoingReferences);
45 visitor->trace(m_incomingReferences); 45 visitor->trace(m_incomingReferences);
(...skipping 29 matching lines...) Expand all
75 return &m_animateMotionTransform; 75 return &m_animateMotionTransform;
76 } 76 }
77 77
78 SVGElementProxySet& SVGElementRareData::ensureElementProxySet() { 78 SVGElementProxySet& SVGElementRareData::ensureElementProxySet() {
79 if (!m_elementProxySet) 79 if (!m_elementProxySet)
80 m_elementProxySet = new SVGElementProxySet; 80 m_elementProxySet = new SVGElementProxySet;
81 return *m_elementProxySet; 81 return *m_elementProxySet;
82 } 82 }
83 83
84 } // namespace blink 84 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698