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

Side by Side Diff: third_party/WebKit/Source/core/html/track/TextTrackCue.h

Issue 1844223002: Literal AtomicString construction can rely on strlen optimization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 29 matching lines...) Expand all
40 namespace blink { 40 namespace blink {
41 41
42 class TextTrack; 42 class TextTrack;
43 43
44 class TextTrackCue : public RefCountedGarbageCollectedEventTargetWithInlineData< TextTrackCue> { 44 class TextTrackCue : public RefCountedGarbageCollectedEventTargetWithInlineData< TextTrackCue> {
45 DEFINE_WRAPPERTYPEINFO(); 45 DEFINE_WRAPPERTYPEINFO();
46 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(TextTrackCue); 46 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(TextTrackCue);
47 public: 47 public:
48 static const AtomicString& cueShadowPseudoId() 48 static const AtomicString& cueShadowPseudoId()
49 { 49 {
50 DEFINE_STATIC_LOCAL(const AtomicString, cue, ("cue", AtomicString::Const ructFromLiteral)); 50 DEFINE_STATIC_LOCAL(const AtomicString, cue, ("cue"));
51 return cue; 51 return cue;
52 } 52 }
53 53
54 ~TextTrackCue() override { } 54 ~TextTrackCue() override { }
55 55
56 TextTrack* track() const; 56 TextTrack* track() const;
57 void setTrack(TextTrack*); 57 void setTrack(TextTrack*);
58 58
59 Node* owner() const; 59 Node* owner() const;
60 60
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 unsigned m_cueIndex; 121 unsigned m_cueIndex;
122 122
123 bool m_isActive : 1; 123 bool m_isActive : 1;
124 bool m_pauseOnExit : 1; 124 bool m_pauseOnExit : 1;
125 }; 125 };
126 126
127 } // namespace blink 127 } // namespace blink
128 128
129 #endif // TextTrackCue_h 129 #endif // TextTrackCue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698