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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutQuote.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) 2011 Nokia Inc. All rights reserved. 2 * Copyright (C) 2011 Nokia Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google 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 21 matching lines...) Expand all
32 namespace blink { 32 namespace blink {
33 33
34 LayoutQuote::LayoutQuote(PseudoElement& pseudo, QuoteType quote) 34 LayoutQuote::LayoutQuote(PseudoElement& pseudo, QuoteType quote)
35 : LayoutInline(nullptr), 35 : LayoutInline(nullptr),
36 m_type(quote), 36 m_type(quote),
37 m_depth(0), 37 m_depth(0),
38 m_next(nullptr), 38 m_next(nullptr),
39 m_previous(nullptr), 39 m_previous(nullptr),
40 m_owningPseudo(&pseudo), 40 m_owningPseudo(&pseudo),
41 m_attached(false) { 41 m_attached(false) {
42 setDocumentForAnonymous(&pseudo.document()); 42 setPseudoForAnonymous(pseudo);
43 } 43 }
44 44
45 LayoutQuote::~LayoutQuote() { 45 LayoutQuote::~LayoutQuote() {
46 ASSERT(!m_attached); 46 ASSERT(!m_attached);
47 ASSERT(!m_next && !m_previous); 47 ASSERT(!m_next && !m_previous);
48 } 48 }
49 49
50 void LayoutQuote::willBeDestroyed() { 50 void LayoutQuote::willBeDestroyed() {
51 detachQuote(); 51 detachQuote();
52 LayoutInline::willBeDestroyed(); 52 LayoutInline::willBeDestroyed();
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 if (m_depth) 393 if (m_depth)
394 m_depth--; 394 m_depth--;
395 break; 395 break;
396 } 396 }
397 } 397 }
398 if (oldDepth != m_depth) 398 if (oldDepth != m_depth)
399 updateText(); 399 updateText();
400 } 400 }
401 401
402 } // namespace blink 402 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698