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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.h

Issue 2615813003: Migrate WTF::Vector::append() to ::push_back() [part 14 of N] (Closed)
Patch Set: rebase, small fix in FontSettings.h Created 3 years, 11 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) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2008-2009 Torch Mobile, Inc. 3 * Copyright (C) 2008-2009 Torch Mobile, Inc.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 406
407 // Apply deferred paint state saves 407 // Apply deferred paint state saves
408 void realizePaintSave() { 408 void realizePaintSave() {
409 if (contextDisabled()) 409 if (contextDisabled())
410 return; 410 return;
411 411
412 if (m_paintState->saveCount()) { 412 if (m_paintState->saveCount()) {
413 m_paintState->decrementSaveCount(); 413 m_paintState->decrementSaveCount();
414 ++m_paintStateIndex; 414 ++m_paintStateIndex;
415 if (m_paintStateStack.size() == m_paintStateIndex) { 415 if (m_paintStateStack.size() == m_paintStateIndex) {
416 m_paintStateStack.append( 416 m_paintStateStack.push_back(
417 GraphicsContextState::createAndCopy(*m_paintState)); 417 GraphicsContextState::createAndCopy(*m_paintState));
418 m_paintState = m_paintStateStack[m_paintStateIndex].get(); 418 m_paintState = m_paintStateStack[m_paintStateIndex].get();
419 } else { 419 } else {
420 GraphicsContextState* priorPaintState = m_paintState; 420 GraphicsContextState* priorPaintState = m_paintState;
421 m_paintState = m_paintStateStack[m_paintStateIndex].get(); 421 m_paintState = m_paintStateStack[m_paintStateIndex].get();
422 m_paintState->copy(*priorPaintState); 422 m_paintState->copy(*priorPaintState);
423 } 423 }
424 } 424 }
425 } 425 }
426 426
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 462
463 float m_deviceScaleFactor; 463 float m_deviceScaleFactor;
464 464
465 unsigned m_printing : 1; 465 unsigned m_printing : 1;
466 unsigned m_hasMetaData : 1; 466 unsigned m_hasMetaData : 1;
467 }; 467 };
468 468
469 } // namespace blink 469 } // namespace blink
470 470
471 #endif // GraphicsContext_h 471 #endif // GraphicsContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698