| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
| 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. |
| 6 * All rights reserved. | 6 * All rights reserved. |
| 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 10 * (http://www.torchmobile.com/) | 10 * (http://www.torchmobile.com/) |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "core/dom/shadow/ElementShadow.h" | 45 #include "core/dom/shadow/ElementShadow.h" |
| 46 #include "core/dom/shadow/InsertionPoint.h" | 46 #include "core/dom/shadow/InsertionPoint.h" |
| 47 #include "core/html/HTMLElement.h" | 47 #include "core/html/HTMLElement.h" |
| 48 #include "core/html/HTMLImageElement.h" | 48 #include "core/html/HTMLImageElement.h" |
| 49 #include "core/html/HTMLInputElement.h" | 49 #include "core/html/HTMLInputElement.h" |
| 50 #include "core/html/HTMLOptGroupElement.h" | 50 #include "core/html/HTMLOptGroupElement.h" |
| 51 #include "core/html/HTMLOptionElement.h" | 51 #include "core/html/HTMLOptionElement.h" |
| 52 #include "core/style/ComputedStyle.h" | 52 #include "core/style/ComputedStyle.h" |
| 53 #include "core/svg/SVGElement.h" | 53 #include "core/svg/SVGElement.h" |
| 54 #include "platform/instrumentation/tracing/TraceEvent.h" | 54 #include "platform/instrumentation/tracing/TraceEvent.h" |
| 55 #include "wtf/HashSet.h" | 55 #include "platform/wtf/HashSet.h" |
| 56 #include "wtf/text/AtomicString.h" | 56 #include "platform/wtf/text/AtomicString.h" |
| 57 | 57 |
| 58 namespace blink { | 58 namespace blink { |
| 59 | 59 |
| 60 using namespace HTMLNames; | 60 using namespace HTMLNames; |
| 61 | 61 |
| 62 inline ComputedStyle* GetElementStyle(Element& element) { | 62 inline ComputedStyle* GetElementStyle(Element& element) { |
| 63 if (element.NeedsReattachLayoutTree()) { | 63 if (element.NeedsReattachLayoutTree()) { |
| 64 if (ComputedStyle* computed_style = | 64 if (ComputedStyle* computed_style = |
| 65 element.GetDocument().GetNonAttachedStyle(element)) | 65 element.GetDocument().GetNonAttachedStyle(element)) |
| 66 return computed_style; | 66 return computed_style; |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 ->ChildrenSupportStyleSharing()) { | 421 ->ChildrenSupportStyleSharing()) { |
| 422 INCREMENT_STYLE_STATS_COUNTER(GetDocument().GetStyleEngine(), | 422 INCREMENT_STYLE_STATS_COUNTER(GetDocument().GetStyleEngine(), |
| 423 shared_style_rejected_by_parent, 1); | 423 shared_style_rejected_by_parent, 1); |
| 424 return nullptr; | 424 return nullptr; |
| 425 } | 425 } |
| 426 | 426 |
| 427 return GetElementStyle(*share_element); | 427 return GetElementStyle(*share_element); |
| 428 } | 428 } |
| 429 | 429 |
| 430 } // namespace blink | 430 } // namespace blink |
| OLD | NEW |