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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSComputedStyleDeclaration.cpp

Issue 1765933003: style: Rename the PseudoId enum values to CamelCase and prefix them. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enum-clash-PseudoId: none Created 4 years, 9 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/css/CSSSelector.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 Zack Rusin <zack@kde.org> 2 * Copyright (C) 2004 Zack Rusin <zack@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 4 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2011 Sencha, Inc. All rights reserved. 6 * Copyright (C) 2011 Sencha, Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 return layoutObject->isLayoutGrid(); 505 return layoutObject->isLayoutGrid();
506 default: 506 default:
507 return false; 507 return false;
508 } 508 }
509 } 509 }
510 510
511 const ComputedStyle* CSSComputedStyleDeclaration::computeComputedStyle() const 511 const ComputedStyle* CSSComputedStyleDeclaration::computeComputedStyle() const
512 { 512 {
513 Node* styledNode = this->styledNode(); 513 Node* styledNode = this->styledNode();
514 ASSERT(styledNode); 514 ASSERT(styledNode);
515 return styledNode->ensureComputedStyle(styledNode->isPseudoElement() ? NOPSE UDO : m_pseudoElementSpecifier); 515 return styledNode->ensureComputedStyle(styledNode->isPseudoElement() ? Pseud oIdNone : m_pseudoElementSpecifier);
516 } 516 }
517 517
518 Node* CSSComputedStyleDeclaration::styledNode() const 518 Node* CSSComputedStyleDeclaration::styledNode() const
519 { 519 {
520 if (!m_node) 520 if (!m_node)
521 return nullptr; 521 return nullptr;
522 if (m_node->isElementNode()) { 522 if (m_node->isElementNode()) {
523 if (PseudoElement* element = toElement(m_node)->pseudoElement(m_pseudoEl ementSpecifier)) 523 if (PseudoElement* element = toElement(m_node)->pseudoElement(m_pseudoEl ementSpecifier))
524 return element; 524 return element;
525 } 525 }
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a re computed, and therefore the '" + getPropertyNameString(id) + "' property is r ead-only."); 703 exceptionState.throwDOMException(NoModificationAllowedError, "These styles a re computed, and therefore the '" + getPropertyNameString(id) + "' property is r ead-only.");
704 } 704 }
705 705
706 DEFINE_TRACE(CSSComputedStyleDeclaration) 706 DEFINE_TRACE(CSSComputedStyleDeclaration)
707 { 707 {
708 visitor->trace(m_node); 708 visitor->trace(m_node);
709 CSSStyleDeclaration::trace(visitor); 709 CSSStyleDeclaration::trace(visitor);
710 } 710 }
711 711
712 } // namespace blink 712 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSSelector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698