| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef StyleChangeReason_h | 5 #ifndef StyleChangeReason_h |
| 6 #define StyleChangeReason_h | 6 #define StyleChangeReason_h |
| 7 | 7 |
| 8 #include "core/dom/QualifiedName.h" | 8 #include "core/dom/QualifiedName.h" |
| 9 #include "wtf/NullPtr.h" | 9 #include "wtf/NullPtr.h" |
| 10 #include "wtf/PassRefPtr.h" | 10 #include "wtf/PassRefPtr.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 extern const char WritingModeChange[]; | 50 extern const char WritingModeChange[]; |
| 51 extern const char Zoom[]; | 51 extern const char Zoom[]; |
| 52 } | 52 } |
| 53 typedef const char StyleChangeReasonString[]; | 53 typedef const char StyleChangeReasonString[]; |
| 54 | 54 |
| 55 namespace StyleChangeExtraData { | 55 namespace StyleChangeExtraData { |
| 56 extern const AtomicString& Active; | 56 extern const AtomicString& Active; |
| 57 extern const AtomicString& Disabled; | 57 extern const AtomicString& Disabled; |
| 58 extern const AtomicString& Focus; | 58 extern const AtomicString& Focus; |
| 59 extern const AtomicString& Hover; | 59 extern const AtomicString& Hover; |
| 60 extern const AtomicString& Invalid; | |
| 61 extern const AtomicString& Unresolved; | 60 extern const AtomicString& Unresolved; |
| 62 | 61 |
| 63 void init(); | 62 void init(); |
| 64 } | 63 } |
| 65 | 64 |
| 66 // |StyleChangeReasonForTracing| is used to trace the reason a | 65 // |StyleChangeReasonForTracing| is used to trace the reason a |
| 67 // |Node::setNeedsStyleRecalc| call was made to show it in DevTools or in | 66 // |Node::setNeedsStyleRecalc| call was made to show it in DevTools or in |
| 68 // about:tracing. | 67 // about:tracing. |
| 69 // |StyleChangeReasonForTracing| is strictly only for the tracing purpose as | 68 // |StyleChangeReasonForTracing| is strictly only for the tracing purpose as |
| 70 // described above. Blink logic must not depend on this value. | 69 // described above. Blink logic must not depend on this value. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 99 void operator==(const StyleChangeReasonForTracing&) const { } | 98 void operator==(const StyleChangeReasonForTracing&) const { } |
| 100 void operator!=(const StyleChangeReasonForTracing&) const { } | 99 void operator!=(const StyleChangeReasonForTracing&) const { } |
| 101 | 100 |
| 102 const char* m_reason; | 101 const char* m_reason; |
| 103 AtomicString m_extraData; | 102 AtomicString m_extraData; |
| 104 }; | 103 }; |
| 105 | 104 |
| 106 } // namespace blink | 105 } // namespace blink |
| 107 | 106 |
| 108 #endif // StyleChangeReason_h | 107 #endif // StyleChangeReason_h |
| OLD | NEW |