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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/HTMLToken.h

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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) 2013 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2013 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 Uninitialized, 68 Uninitialized,
69 DOCTYPE, 69 DOCTYPE,
70 StartTag, 70 StartTag,
71 EndTag, 71 EndTag,
72 Comment, 72 Comment,
73 Character, 73 Character,
74 EndOfFile, 74 EndOfFile,
75 }; 75 };
76 76
77 class Attribute { 77 class Attribute {
78 ALLOW_ONLY_INLINE_ALLOCATION(); 78 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
79 public: 79 public:
80 class Range { 80 class Range {
81 DISALLOW_ALLOCATION(); 81 DISALLOW_NEW();
82 public: 82 public:
83 int start; 83 int start;
84 int end; 84 int end;
85 }; 85 };
86 86
87 Range nameRange; 87 Range nameRange;
88 Range valueRange; 88 Range valueRange;
89 Vector<UChar, 32> name; 89 Vector<UChar, 32> name;
90 Vector<UChar, 32> value; 90 Vector<UChar, 32> value;
91 }; 91 };
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 // A pointer into m_attributes used during lexing. 452 // A pointer into m_attributes used during lexing.
453 Attribute* m_currentAttribute; 453 Attribute* m_currentAttribute;
454 454
455 // For DOCTYPE 455 // For DOCTYPE
456 OwnPtr<DoctypeData> m_doctypeData; 456 OwnPtr<DoctypeData> m_doctypeData;
457 }; 457 };
458 458
459 } 459 }
460 460
461 #endif 461 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698