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

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

Issue 2727853002: [css-display] Support display: contents pseudo-elements.
Patch Set: [css-display] Support display: contents pseudos. Created 3 years, 8 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) 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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 } 424 }
425 return newNode.get(); 425 return newNode.get();
426 } 426 }
427 427
428 LayoutCounter::LayoutCounter(PseudoElement& pseudo, 428 LayoutCounter::LayoutCounter(PseudoElement& pseudo,
429 const CounterContent& counter) 429 const CounterContent& counter)
430 : LayoutText(nullptr, StringImpl::empty), 430 : LayoutText(nullptr, StringImpl::empty),
431 m_counter(counter), 431 m_counter(counter),
432 m_counterNode(nullptr), 432 m_counterNode(nullptr),
433 m_nextForSameCounter(nullptr) { 433 m_nextForSameCounter(nullptr) {
434 setDocumentForAnonymous(&pseudo.document()); 434 setPseudoForAnonymous(pseudo);
435 view()->addLayoutCounter(); 435 view()->addLayoutCounter();
436 } 436 }
437 437
438 LayoutCounter::~LayoutCounter() {} 438 LayoutCounter::~LayoutCounter() {}
439 439
440 void LayoutCounter::willBeDestroyed() { 440 void LayoutCounter::willBeDestroyed() {
441 if (m_counterNode) { 441 if (m_counterNode) {
442 m_counterNode->removeLayoutObject(this); 442 m_counterNode->removeLayoutObject(this);
443 ASSERT(!m_counterNode); 443 ASSERT(!m_counterNode);
444 } 444 }
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 current->nextSibling(), 707 current->nextSibling(),
708 current->hasCounterNodeMap() 708 current->hasCounterNodeMap()
709 ? counterName ? blink::counterMaps().at(current)->at(identifier) 709 ? counterName ? blink::counterMaps().at(current)->at(identifier)
710 : (blink::CounterNode*)1 710 : (blink::CounterNode*)1
711 : (blink::CounterNode*)0); 711 : (blink::CounterNode*)0);
712 } 712 }
713 fflush(stderr); 713 fflush(stderr);
714 } 714 }
715 715
716 #endif // NDEBUG 716 #endif // NDEBUG
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698