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

Side by Side Diff: Source/core/css/RuleSet.cpp

Issue 1317143005: [WIP] do something :-) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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/core/css/RuleSet.h ('k') | Source/core/css/StylePropertySet.cpp » ('j') | 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) 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 Apple Inc. All r ights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r ights reserved.
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
(...skipping 23 matching lines...) Expand all
34 #include "core/css/CSSSelector.h" 34 #include "core/css/CSSSelector.h"
35 #include "core/css/CSSSelectorList.h" 35 #include "core/css/CSSSelectorList.h"
36 #include "core/css/SelectorFilter.h" 36 #include "core/css/SelectorFilter.h"
37 #include "core/css/StyleRuleImport.h" 37 #include "core/css/StyleRuleImport.h"
38 #include "core/css/StyleSheetContents.h" 38 #include "core/css/StyleSheetContents.h"
39 #include "core/html/track/TextTrackCue.h" 39 #include "core/html/track/TextTrackCue.h"
40 #include "platform/RuntimeEnabledFeatures.h" 40 #include "platform/RuntimeEnabledFeatures.h"
41 #include "platform/TraceEvent.h" 41 #include "platform/TraceEvent.h"
42 #include "platform/heap/HeapTerminatedArrayBuilder.h" 42 #include "platform/heap/HeapTerminatedArrayBuilder.h"
43 #include "platform/weborigin/SecurityOrigin.h" 43 #include "platform/weborigin/SecurityOrigin.h"
44 44 #include "wtf/SizeAssertions.h"
45 #include "wtf/TerminatedArrayBuilder.h" 45 #include "wtf/TerminatedArrayBuilder.h"
46 46
47 namespace blink { 47 namespace blink {
48 48
49 using namespace HTMLNames; 49 using namespace HTMLNames;
50 50
51 ASSERT_SIZE(RuleData, 28, 32);
52
51 // ----------------------------------------------------------------- 53 // -----------------------------------------------------------------
52 54
53 static inline bool selectorListContainsUncommonAttributeSelector(const CSSSelect or* selector) 55 static inline bool selectorListContainsUncommonAttributeSelector(const CSSSelect or* selector)
54 { 56 {
55 const CSSSelectorList* selectorList = selector->selectorList(); 57 const CSSSelectorList* selectorList = selector->selectorList();
56 if (!selectorList) 58 if (!selectorList)
57 return false; 59 return false;
58 for (const CSSSelector* selector = selectorList->first(); selector; selector = CSSSelectorList::next(*selector)) { 60 for (const CSSSelector* selector = selectorList->first(); selector; selector = CSSSelectorList::next(*selector)) {
59 for (const CSSSelector* component = selector; component; component = com ponent->tagHistory()) { 61 for (const CSSSelector* component = selector; component; component = com ponent->tagHistory()) {
60 if (component->isAttributeSelector()) 62 if (component->isAttributeSelector())
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 396
395 #ifndef NDEBUG 397 #ifndef NDEBUG
396 void RuleSet::show() 398 void RuleSet::show()
397 { 399 {
398 for (const auto& rule: m_allRules) 400 for (const auto& rule: m_allRules)
399 rule.selector().show(); 401 rule.selector().show();
400 } 402 }
401 #endif 403 #endif
402 404
403 } // namespace blink 405 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/RuleSet.h ('k') | Source/core/css/StylePropertySet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698