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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/SharedStyleFinder.cpp

Issue 2813863003: Rewrite references to "wtf/" to "platform/wtf/" in core/css and core/style. (Closed)
Patch Set: Rebase. Created 3 years, 8 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698