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

Side by Side Diff: third_party/WebKit/Source/core/css/invalidation/InvalidationSet.cpp

Issue 1620673002: Remove Blink's ConvertableToTraceFormat (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 value->endDictionary(); 278 value->endDictionary();
279 } 279 }
280 280
281 #ifndef NDEBUG 281 #ifndef NDEBUG
282 void InvalidationSet::show() const 282 void InvalidationSet::show() const
283 { 283 {
284 RefPtr<TracedValue> value = TracedValue::create(); 284 RefPtr<TracedValue> value = TracedValue::create();
285 value->beginArray("InvalidationSet"); 285 value->beginArray("InvalidationSet");
286 toTracedValue(value.get()); 286 toTracedValue(value.get());
287 value->endArray(); 287 value->endArray();
288 fprintf(stderr, "%s\n", value->asTraceFormat().ascii().data()); 288 fprintf(stderr, "%s\n", value->toString().ascii().data());
289 } 289 }
290 #endif // NDEBUG 290 #endif // NDEBUG
291 291
292 SiblingInvalidationSet::SiblingInvalidationSet(PassRefPtr<DescendantInvalidation Set> descendants) 292 SiblingInvalidationSet::SiblingInvalidationSet(PassRefPtr<DescendantInvalidation Set> descendants)
293 : InvalidationSet(InvalidateSiblings) 293 : InvalidationSet(InvalidateSiblings)
294 , m_maxDirectAdjacentSelectors(1) 294 , m_maxDirectAdjacentSelectors(1)
295 , m_descendantInvalidationSet(descendants) 295 , m_descendantInvalidationSet(descendants)
296 { 296 {
297 } 297 }
298 298
299 DescendantInvalidationSet& SiblingInvalidationSet::ensureSiblingDescendants() 299 DescendantInvalidationSet& SiblingInvalidationSet::ensureSiblingDescendants()
300 { 300 {
301 if (!m_siblingDescendantInvalidationSet) 301 if (!m_siblingDescendantInvalidationSet)
302 m_siblingDescendantInvalidationSet = DescendantInvalidationSet::create() ; 302 m_siblingDescendantInvalidationSet = DescendantInvalidationSet::create() ;
303 return *m_siblingDescendantInvalidationSet; 303 return *m_siblingDescendantInvalidationSet;
304 } 304 }
305 305
306 DescendantInvalidationSet& SiblingInvalidationSet::ensureDescendants() 306 DescendantInvalidationSet& SiblingInvalidationSet::ensureDescendants()
307 { 307 {
308 if (!m_descendantInvalidationSet) 308 if (!m_descendantInvalidationSet)
309 m_descendantInvalidationSet = DescendantInvalidationSet::create(); 309 m_descendantInvalidationSet = DescendantInvalidationSet::create();
310 return *m_descendantInvalidationSet; 310 return *m_descendantInvalidationSet;
311 } 311 }
312 312
313 } // namespace blink 313 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698