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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutCounter.cpp

Issue 2655853003: Replace StringImpl::empty{16Bit}() with a static member (Closed)
Patch Set: annotate race Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutMenuList.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 * Copyright (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 2 * Copyright (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 continue; 419 continue;
420 if (stayWithin == parentElement(*currentLayoutObject) && 420 if (stayWithin == parentElement(*currentLayoutObject) &&
421 currentCounter->hasResetType()) 421 currentCounter->hasResetType())
422 break; 422 break;
423 newNode->insertAfter(currentCounter, newNode->lastChild(), identifier); 423 newNode->insertAfter(currentCounter, newNode->lastChild(), identifier);
424 } 424 }
425 return newNode.get(); 425 return newNode.get();
426 } 426 }
427 427
428 LayoutCounter::LayoutCounter(Document* node, const CounterContent& counter) 428 LayoutCounter::LayoutCounter(Document* node, const CounterContent& counter)
429 : LayoutText(node, StringImpl::empty()), 429 : LayoutText(node, StringImpl::empty),
430 m_counter(counter), 430 m_counter(counter),
431 m_counterNode(nullptr), 431 m_counterNode(nullptr),
432 m_nextForSameCounter(nullptr) { 432 m_nextForSameCounter(nullptr) {
433 view()->addLayoutCounter(); 433 view()->addLayoutCounter();
434 } 434 }
435 435
436 LayoutCounter::~LayoutCounter() {} 436 LayoutCounter::~LayoutCounter() {}
437 437
438 void LayoutCounter::willBeDestroyed() { 438 void LayoutCounter::willBeDestroyed() {
439 if (m_counterNode) { 439 if (m_counterNode) {
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 current->parent(), current->previousSibling(), current->nextSibling(), 705 current->parent(), current->previousSibling(), current->nextSibling(),
706 current->hasCounterNodeMap() 706 current->hasCounterNodeMap()
707 ? counterName ? blink::counterMaps().get(current)->get(identifier) 707 ? counterName ? blink::counterMaps().get(current)->get(identifier)
708 : (blink::CounterNode*)1 708 : (blink::CounterNode*)1
709 : (blink::CounterNode*)0); 709 : (blink::CounterNode*)0);
710 } 710 }
711 fflush(stderr); 711 fflush(stderr);
712 } 712 }
713 713
714 #endif // NDEBUG 714 #endif // NDEBUG
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutMenuList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698