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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorCSSAgent.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 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after
1673 MediaList* mediaList = styleSheet->media(); 1673 MediaList* mediaList = styleSheet->media();
1674 String sourceURL; 1674 String sourceURL;
1675 if (mediaList && mediaList->length()) { 1675 if (mediaList && mediaList->length()) {
1676 Document* doc = styleSheet->ownerDocument(); 1676 Document* doc = styleSheet->ownerDocument();
1677 if (doc) 1677 if (doc)
1678 sourceURL = doc->url(); 1678 sourceURL = doc->url();
1679 else if (!styleSheet->contents()->baseURL().isEmpty()) 1679 else if (!styleSheet->contents()->baseURL().isEmpty())
1680 sourceURL = styleSheet->contents()->baseURL(); 1680 sourceURL = styleSheet->contents()->baseURL();
1681 else 1681 else
1682 sourceURL = ""; 1682 sourceURL = "";
1683 mediaArray->addItem(buildMediaObject( 1683 mediaArray->addItem(buildMediaObject(mediaList,
1684 mediaList, styleSheet->ownerNode() ? MediaListSourceLinkedSheet 1684 styleSheet->ownerNode()
1685 : MediaListSourceInlineSheet, 1685 ? MediaListSourceLinkedSheet
1686 sourceURL, styleSheet)); 1686 : MediaListSourceInlineSheet,
1687 sourceURL, styleSheet));
1687 } 1688 }
1688 } 1689 }
1689 1690
1690 void InspectorCSSAgent::collectMediaQueriesFromRule( 1691 void InspectorCSSAgent::collectMediaQueriesFromRule(
1691 CSSRule* rule, 1692 CSSRule* rule,
1692 protocol::Array<protocol::CSS::CSSMedia>* mediaArray) { 1693 protocol::Array<protocol::CSS::CSSMedia>* mediaArray) {
1693 MediaList* mediaList; 1694 MediaList* mediaList;
1694 String sourceURL; 1695 String sourceURL;
1695 CSSStyleSheet* parentStyleSheet = nullptr; 1696 CSSStyleSheet* parentStyleSheet = nullptr;
1696 bool isMediaRule = true; 1697 bool isMediaRule = true;
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
2502 visitor->trace(m_cssStyleSheetToInspectorStyleSheet); 2503 visitor->trace(m_cssStyleSheetToInspectorStyleSheet);
2503 visitor->trace(m_documentToCSSStyleSheets); 2504 visitor->trace(m_documentToCSSStyleSheets);
2504 visitor->trace(m_invalidatedDocuments); 2505 visitor->trace(m_invalidatedDocuments);
2505 visitor->trace(m_nodeToInspectorStyleSheet); 2506 visitor->trace(m_nodeToInspectorStyleSheet);
2506 visitor->trace(m_inspectorUserAgentStyleSheet); 2507 visitor->trace(m_inspectorUserAgentStyleSheet);
2507 visitor->trace(m_tracker); 2508 visitor->trace(m_tracker);
2508 InspectorBaseAgent::trace(visitor); 2509 InspectorBaseAgent::trace(visitor);
2509 } 2510 }
2510 2511
2511 } // namespace blink 2512 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698