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

Side by Side Diff: src/xml/SkDOM.cpp

Issue 1316123003: Style Change: SkNEW->new; SkDELETE->delete (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-26 (Wednesday) 15:59:00 EDT Created 5 years, 3 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
« no previous file with comments | « src/views/SkEventSink.cpp ('k') | tests/BlurTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkDOM.h" 10 #include "SkDOM.h"
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 SkDOMParser parser(&fAlloc); 359 SkDOMParser parser(&fAlloc);
360 360
361 walk_dom(dom, node, &parser); 361 walk_dom(dom, node, &parser);
362 362
363 fRoot = parser.getRoot(); 363 fRoot = parser.getRoot();
364 return fRoot; 364 return fRoot;
365 } 365 }
366 366
367 SkXMLParser* SkDOM::beginParsing() { 367 SkXMLParser* SkDOM::beginParsing() {
368 SkASSERT(!fParser); 368 SkASSERT(!fParser);
369 fParser.reset(SkNEW_ARGS(SkDOMParser, (&fAlloc))); 369 fParser.reset(new SkDOMParser(&fAlloc));
370 370
371 return fParser.get(); 371 return fParser.get();
372 } 372 }
373 373
374 const SkDOM::Node* SkDOM::finishParsing() { 374 const SkDOM::Node* SkDOM::finishParsing() {
375 SkASSERT(fParser); 375 SkASSERT(fParser);
376 fRoot = fParser->getRoot(); 376 fRoot = fParser->getRoot();
377 fParser.free(); 377 fParser.free();
378 378
379 return fRoot; 379 return fRoot;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 SkASSERT(v == NULL); 506 SkASSERT(v == NULL);
507 507
508 SkASSERT(dom.getFirstChild(root, "elem1")); 508 SkASSERT(dom.getFirstChild(root, "elem1"));
509 SkASSERT(!dom.getFirstChild(root, "subelem1")); 509 SkASSERT(!dom.getFirstChild(root, "subelem1"));
510 510
511 dom.dump(); 511 dom.dump();
512 #endif 512 #endif
513 } 513 }
514 514
515 #endif 515 #endif
OLDNEW
« no previous file with comments | « src/views/SkEventSink.cpp ('k') | tests/BlurTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698