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

Side by Side Diff: Source/core/inspector/InspectorPageAgent.cpp

Issue 361693004: Remove make-css-file-arrays.pl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1374 document->updateLayout(); 1374 document->updateLayout();
1375 } 1375 }
1376 } 1376 }
1377 1377
1378 bool InspectorPageAgent::applyViewportStyleOverride(StyleResolver* resolver) 1378 bool InspectorPageAgent::applyViewportStyleOverride(StyleResolver* resolver)
1379 { 1379 {
1380 if (!m_deviceMetricsOverridden || !m_emulateViewportEnabled) 1380 if (!m_deviceMetricsOverridden || !m_emulateViewportEnabled)
1381 return false; 1381 return false;
1382 1382
1383 RefPtrWillBeRawPtr<StyleSheetContents> styleSheet = StyleSheetContents::crea te(CSSParserContext(UASheetMode, 0)); 1383 RefPtrWillBeRawPtr<StyleSheetContents> styleSheet = StyleSheetContents::crea te(CSSParserContext(UASheetMode, 0));
1384 styleSheet->parseString(String(viewportAndroidUserAgentStyleSheet, sizeof(vi ewportAndroidUserAgentStyleSheet))); 1384 styleSheet->parseString(String(viewportAndroidCss, sizeof(viewportAndroidCss )));
1385 OwnPtrWillBeRawPtr<RuleSet> ruleSet = RuleSet::create(); 1385 OwnPtrWillBeRawPtr<RuleSet> ruleSet = RuleSet::create();
1386 ruleSet->addRulesFromSheet(styleSheet.get(), MediaQueryEvaluator("screen")); 1386 ruleSet->addRulesFromSheet(styleSheet.get(), MediaQueryEvaluator("screen"));
1387 resolver->viewportStyleResolver()->collectViewportRules(ruleSet.get(), Viewp ortStyleResolver::UserAgentOrigin); 1387 resolver->viewportStyleResolver()->collectViewportRules(ruleSet.get(), Viewp ortStyleResolver::UserAgentOrigin);
1388 return true; 1388 return true;
1389 } 1389 }
1390 1390
1391 void InspectorPageAgent::applyEmulatedMedia(String* media) 1391 void InspectorPageAgent::applyEmulatedMedia(String* media)
1392 { 1392 {
1393 String emulatedMedia = m_state->getString(PageAgentState::pageAgentEmulatedM edia); 1393 String emulatedMedia = m_state->getString(PageAgentState::pageAgentEmulatedM edia);
1394 if (!emulatedMedia.isEmpty()) 1394 if (!emulatedMedia.isEmpty())
(...skipping 29 matching lines...) Expand all
1424 bool InspectorPageAgent::getEditedResourceContent(const String& url, String* con tent) 1424 bool InspectorPageAgent::getEditedResourceContent(const String& url, String* con tent)
1425 { 1425 {
1426 if (!m_editedResourceContent.contains(url)) 1426 if (!m_editedResourceContent.contains(url))
1427 return false; 1427 return false;
1428 *content = m_editedResourceContent.get(url); 1428 *content = m_editedResourceContent.get(url);
1429 return true; 1429 return true;
1430 } 1430 }
1431 1431
1432 } // namespace WebCore 1432 } // namespace WebCore
1433 1433
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698