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

Side by Side Diff: Source/core/dom/DOMSettableTokenList.h

Issue 1040943002: When call getAttribute, HTMLIFrame.sandbox has a bug which don't return changed value. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modify a test-case for Layout Test. Created 5 years, 9 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 16 matching lines...) Expand all
27 27
28 #include "core/dom/DOMTokenList.h" 28 #include "core/dom/DOMTokenList.h"
29 #include "core/dom/SpaceSplitString.h" 29 #include "core/dom/SpaceSplitString.h"
30 #include "platform/heap/Handle.h" 30 #include "platform/heap/Handle.h"
31 #include "wtf/RefCounted.h" 31 #include "wtf/RefCounted.h"
32 #include "wtf/text/AtomicString.h" 32 #include "wtf/text/AtomicString.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class ExceptionState; 36 class ExceptionState;
37 37 class DOMSettableTokenListObserver;
38 class DOMSettableTokenListObserver : public WillBeGarbageCollectedMixin {
39 public:
40 virtual void valueChanged() = 0;
41
42 DEFINE_INLINE_VIRTUAL_TRACE() { }
43 };
44 38
45 class DOMSettableTokenList final 39 class DOMSettableTokenList final
46 : public DOMTokenList 40 : public DOMTokenList
47 #if !ENABLE(OILPAN) 41 #if !ENABLE(OILPAN)
48 , public RefCounted<DOMSettableTokenList> 42 , public RefCounted<DOMSettableTokenList>
49 #endif 43 #endif
50 { 44 {
51 DEFINE_WRAPPERTYPEINFO(); 45 DEFINE_WRAPPERTYPEINFO();
52 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(DOMSettableTokenList); 46 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(DOMSettableTokenList);
53 public: 47 public:
(...skipping 28 matching lines...) Expand all
82 private: 76 private:
83 virtual void addInternal(const AtomicString&) override; 77 virtual void addInternal(const AtomicString&) override;
84 virtual bool containsInternal(const AtomicString&) const override; 78 virtual bool containsInternal(const AtomicString&) const override;
85 virtual void removeInternal(const AtomicString&) override; 79 virtual void removeInternal(const AtomicString&) override;
86 80
87 AtomicString m_value; 81 AtomicString m_value;
88 SpaceSplitString m_tokens; 82 SpaceSplitString m_tokens;
89 RawPtrWillBeWeakMember<DOMSettableTokenListObserver> m_observer; 83 RawPtrWillBeWeakMember<DOMSettableTokenListObserver> m_observer;
90 }; 84 };
91 85
86 class DOMSettableTokenListObserver : public WillBeGarbageCollectedMixin {
87 public:
88 virtual void valueChanged(DOMSettableTokenList*) = 0;
89
90 DEFINE_INLINE_VIRTUAL_TRACE() { }
91 };
92
92 } // namespace blink 93 } // namespace blink
93 94
94 #endif // DOMSettableTokenList_h 95 #endif // DOMSettableTokenList_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698