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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: 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
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
4 * rights reserved. 4 * rights reserved.
5 * Copyright (C) 2011 Research In Motion Limited. All rights reserved. 5 * Copyright (C) 2011 Research In Motion Limited. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 398
399 void InlineCSSStyleDeclaration::didMutate(MutationType type) { 399 void InlineCSSStyleDeclaration::didMutate(MutationType type) {
400 if (type == NoChanges) 400 if (type == NoChanges)
401 return; 401 return;
402 402
403 if (!m_parentElement) 403 if (!m_parentElement)
404 return; 404 return;
405 405
406 m_parentElement->clearMutableInlineStyleIfEmpty(); 406 m_parentElement->clearMutableInlineStyleIfEmpty();
407 m_parentElement->setNeedsStyleRecalc( 407 m_parentElement->setNeedsStyleRecalc(
408 LocalStyleChange, StyleChangeReasonForTracing::create( 408 LocalStyleChange,
409 StyleChangeReason::InlineCSSStyleMutated)); 409 StyleChangeReasonForTracing::create(
410 StyleChangeReason::InlineCSSStyleMutated));
410 m_parentElement->invalidateStyleAttribute(); 411 m_parentElement->invalidateStyleAttribute();
411 StyleAttributeMutationScope(this).didInvalidateStyleAttr(); 412 StyleAttributeMutationScope(this).didInvalidateStyleAttr();
412 } 413 }
413 414
414 CSSStyleSheet* InlineCSSStyleDeclaration::parentStyleSheet() const { 415 CSSStyleSheet* InlineCSSStyleDeclaration::parentStyleSheet() const {
415 return m_parentElement ? &m_parentElement->document().elementSheet() 416 return m_parentElement ? &m_parentElement->document().elementSheet()
416 : nullptr; 417 : nullptr;
417 } 418 }
418 419
419 PropertyRegistry* InlineCSSStyleDeclaration::propertyRegistry() const { 420 PropertyRegistry* InlineCSSStyleDeclaration::propertyRegistry() const {
420 return m_parentElement ? m_parentElement->document().propertyRegistry() 421 return m_parentElement ? m_parentElement->document().propertyRegistry()
421 : nullptr; 422 : nullptr;
422 } 423 }
423 424
424 DEFINE_TRACE(InlineCSSStyleDeclaration) { 425 DEFINE_TRACE(InlineCSSStyleDeclaration) {
425 visitor->trace(m_parentElement); 426 visitor->trace(m_parentElement);
426 AbstractPropertySetCSSStyleDeclaration::trace(visitor); 427 AbstractPropertySetCSSStyleDeclaration::trace(visitor);
427 } 428 }
428 429
429 } // namespace blink 430 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/PropertyRegistry.cpp ('k') | third_party/WebKit/Source/core/css/RemoteFontFaceSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698