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

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

Issue 45363004: DevTools: explicitly control support for viewport meta tag so that desktop emulation was possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Same with updated labels Created 7 years, 1 month 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 namespace WebCore { 81 namespace WebCore {
82 82
83 namespace PageAgentState { 83 namespace PageAgentState {
84 static const char pageAgentEnabled[] = "pageAgentEnabled"; 84 static const char pageAgentEnabled[] = "pageAgentEnabled";
85 static const char pageAgentScriptExecutionDisabled[] = "pageAgentScriptExecution Disabled"; 85 static const char pageAgentScriptExecutionDisabled[] = "pageAgentScriptExecution Disabled";
86 static const char pageAgentScriptsToEvaluateOnLoad[] = "pageAgentScriptsToEvalua teOnLoad"; 86 static const char pageAgentScriptsToEvaluateOnLoad[] = "pageAgentScriptsToEvalua teOnLoad";
87 static const char pageAgentScreenWidthOverride[] = "pageAgentScreenWidthOverride "; 87 static const char pageAgentScreenWidthOverride[] = "pageAgentScreenWidthOverride ";
88 static const char pageAgentScreenHeightOverride[] = "pageAgentScreenHeightOverri de"; 88 static const char pageAgentScreenHeightOverride[] = "pageAgentScreenHeightOverri de";
89 static const char pageAgentDeviceScaleFactorOverride[] = "pageAgentDeviceScaleFa ctorOverride"; 89 static const char pageAgentDeviceScaleFactorOverride[] = "pageAgentDeviceScaleFa ctorOverride";
90 static const char pageAgentEmulateViewport[] = "pageAgentEmulateViewport";
90 static const char pageAgentFitWindow[] = "pageAgentFitWindow"; 91 static const char pageAgentFitWindow[] = "pageAgentFitWindow";
91 static const char textAutosizingFontScaleFactorOverride[] = "textAutosizingFontS caleFactorOverride"; 92 static const char textAutosizingFontScaleFactorOverride[] = "textAutosizingFontS caleFactorOverride";
92 static const char pageAgentShowFPSCounter[] = "pageAgentShowFPSCounter"; 93 static const char pageAgentShowFPSCounter[] = "pageAgentShowFPSCounter";
93 static const char pageAgentTextAutosizingOverride[] = "pageAgentTextAutosizingOv erride"; 94 static const char pageAgentTextAutosizingOverride[] = "pageAgentTextAutosizingOv erride";
94 static const char pageAgentContinuousPaintingEnabled[] = "pageAgentContinuousPai ntingEnabled"; 95 static const char pageAgentContinuousPaintingEnabled[] = "pageAgentContinuousPai ntingEnabled";
95 static const char pageAgentShowPaintRects[] = "pageAgentShowPaintRects"; 96 static const char pageAgentShowPaintRects[] = "pageAgentShowPaintRects";
96 static const char pageAgentShowDebugBorders[] = "pageAgentShowDebugBorders"; 97 static const char pageAgentShowDebugBorders[] = "pageAgentShowDebugBorders";
97 static const char pageAgentShowScrollBottleneckRects[] = "pageAgentShowScrollBot tleneckRects"; 98 static const char pageAgentShowScrollBottleneckRects[] = "pageAgentShowScrollBot tleneckRects";
98 static const char touchEventEmulationEnabled[] = "touchEventEmulationEnabled"; 99 static const char touchEventEmulationEnabled[] = "touchEventEmulationEnabled";
99 static const char pageAgentEmulatedMedia[] = "pageAgentEmulatedMedia"; 100 static const char pageAgentEmulatedMedia[] = "pageAgentEmulatedMedia";
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 String emulatedMedia = m_state->getString(PageAgentState::pageAgentEmula tedMedia); 359 String emulatedMedia = m_state->getString(PageAgentState::pageAgentEmula tedMedia);
359 setEmulatedMedia(0, emulatedMedia); 360 setEmulatedMedia(0, emulatedMedia);
360 bool continuousPaintingEnabled = m_state->getBoolean(PageAgentState::pag eAgentContinuousPaintingEnabled); 361 bool continuousPaintingEnabled = m_state->getBoolean(PageAgentState::pag eAgentContinuousPaintingEnabled);
361 setContinuousPaintingEnabled(0, continuousPaintingEnabled); 362 setContinuousPaintingEnabled(0, continuousPaintingEnabled);
362 bool showScrollBottleneckRects = m_state->getBoolean(PageAgentState::pag eAgentShowScrollBottleneckRects); 363 bool showScrollBottleneckRects = m_state->getBoolean(PageAgentState::pag eAgentShowScrollBottleneckRects);
363 setShowScrollBottleneckRects(0, showScrollBottleneckRects); 364 setShowScrollBottleneckRects(0, showScrollBottleneckRects);
364 365
365 int currentWidth = static_cast<int>(m_state->getLong(PageAgentState::pag eAgentScreenWidthOverride)); 366 int currentWidth = static_cast<int>(m_state->getLong(PageAgentState::pag eAgentScreenWidthOverride));
366 int currentHeight = static_cast<int>(m_state->getLong(PageAgentState::pa geAgentScreenHeightOverride)); 367 int currentHeight = static_cast<int>(m_state->getLong(PageAgentState::pa geAgentScreenHeightOverride));
367 double currentDeviceScaleFactor = m_state->getDouble(PageAgentState::pag eAgentDeviceScaleFactorOverride); 368 double currentDeviceScaleFactor = m_state->getDouble(PageAgentState::pag eAgentDeviceScaleFactorOverride);
369 bool currentEmulateViewport = m_state->getBoolean(PageAgentState::pageAg entEmulateViewport);
368 bool currentFitWindow = m_state->getBoolean(PageAgentState::pageAgentFit Window); 370 bool currentFitWindow = m_state->getBoolean(PageAgentState::pageAgentFit Window);
369 updateViewMetrics(currentWidth, currentHeight, currentDeviceScaleFactor, currentFitWindow); 371 updateViewMetrics(currentWidth, currentHeight, currentDeviceScaleFactor, currentEmulateViewport, currentFitWindow);
370 updateTouchEventEmulationInPage(m_state->getBoolean(PageAgentState::touc hEventEmulationEnabled)); 372 updateTouchEventEmulationInPage(m_state->getBoolean(PageAgentState::touc hEventEmulationEnabled));
371 } 373 }
372 } 374 }
373 375
374 void InspectorPageAgent::webViewResized(const IntSize& size) 376 void InspectorPageAgent::webViewResized(const IntSize& size)
375 { 377 {
376 int currentWidth = static_cast<int>(m_state->getLong(PageAgentState::pageAge ntScreenWidthOverride)); 378 int currentWidth = static_cast<int>(m_state->getLong(PageAgentState::pageAge ntScreenWidthOverride));
377 m_overlay->resize(currentWidth ? size : IntSize()); 379 m_overlay->resize(currentWidth ? size : IntSize());
378 } 380 }
379 381
(...skipping 16 matching lines...) Expand all
396 setShowPaintRects(0, false); 398 setShowPaintRects(0, false);
397 setShowDebugBorders(0, false); 399 setShowDebugBorders(0, false);
398 setShowFPSCounter(0, false); 400 setShowFPSCounter(0, false);
399 setEmulatedMedia(0, String()); 401 setEmulatedMedia(0, String());
400 setContinuousPaintingEnabled(0, false); 402 setContinuousPaintingEnabled(0, false);
401 setShowScrollBottleneckRects(0, false); 403 setShowScrollBottleneckRects(0, false);
402 setShowViewportSizeOnResize(0, false, 0); 404 setShowViewportSizeOnResize(0, false, 0);
403 if (m_didForceCompositingMode) 405 if (m_didForceCompositingMode)
404 setForceCompositingMode(0, false); 406 setForceCompositingMode(0, false);
405 407
406 if (!deviceMetricsChanged(0, 0, 1, false, 1, false)) 408 if (!deviceMetricsChanged(0, 0, 1, false, false, 1, false))
407 return; 409 return;
408 410
409 // When disabling the agent, reset the override values if necessary. 411 // When disabling the agent, reset the override values if necessary.
410 updateViewMetrics(0, 0, 1, false); 412 updateViewMetrics(0, 0, 1, false, false);
411 m_state->setLong(PageAgentState::pageAgentScreenWidthOverride, 0); 413 m_state->setLong(PageAgentState::pageAgentScreenWidthOverride, 0);
412 m_state->setLong(PageAgentState::pageAgentScreenHeightOverride, 0); 414 m_state->setLong(PageAgentState::pageAgentScreenHeightOverride, 0);
413 m_state->setDouble(PageAgentState::pageAgentDeviceScaleFactorOverride, 1); 415 m_state->setDouble(PageAgentState::pageAgentDeviceScaleFactorOverride, 1);
416 m_state->setBoolean(PageAgentState::pageAgentEmulateViewport, false);
414 m_state->setBoolean(PageAgentState::pageAgentFitWindow, false); 417 m_state->setBoolean(PageAgentState::pageAgentFitWindow, false);
415 m_state->setDouble(PageAgentState::textAutosizingFontScaleFactorOverride, 1) ; 418 m_state->setDouble(PageAgentState::textAutosizingFontScaleFactorOverride, 1) ;
416 m_state->setBoolean(PageAgentState::pageAgentTextAutosizingOverride, false); 419 m_state->setBoolean(PageAgentState::pageAgentTextAutosizingOverride, false);
417 } 420 }
418 421
419 void InspectorPageAgent::addScriptToEvaluateOnLoad(ErrorString*, const String& s ource, String* identifier) 422 void InspectorPageAgent::addScriptToEvaluateOnLoad(ErrorString*, const String& s ource, String* identifier)
420 { 423 {
421 RefPtr<JSONObject> scripts = m_state->getObject(PageAgentState::pageAgentScr iptsToEvaluateOnLoad); 424 RefPtr<JSONObject> scripts = m_state->getObject(PageAgentState::pageAgentScr iptsToEvaluateOnLoad);
422 if (!scripts) { 425 if (!scripts) {
423 scripts = JSONObject::create(); 426 scripts = JSONObject::create();
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 return; 629 return;
627 630
628 Document* document = frame->document(); 631 Document* document = frame->document();
629 if (!document) { 632 if (!document) {
630 *errorString = "No Document instance to set HTML for"; 633 *errorString = "No Document instance to set HTML for";
631 return; 634 return;
632 } 635 }
633 DOMPatchSupport::patchDocument(*document, html); 636 DOMPatchSupport::patchDocument(*document, html);
634 } 637 }
635 638
636 void InspectorPageAgent::setDeviceMetricsOverride(ErrorString* errorString, int width, int height, double deviceScaleFactor, bool fitWindow, const bool* optiona lTextAutosizing, const double* optionalFontScaleFactor) 639 void InspectorPageAgent::setDeviceMetricsOverride(ErrorString* errorString, int width, int height, double deviceScaleFactor, bool emulateViewport, bool fitWindo w, const bool* optionalTextAutosizing, const double* optionalFontScaleFactor)
637 { 640 {
638 const static long maxDimension = 10000000; 641 const static long maxDimension = 10000000;
639 642
640 bool textAutosizing = optionalTextAutosizing ? *optionalTextAutosizing : fal se; 643 bool textAutosizing = optionalTextAutosizing ? *optionalTextAutosizing : fal se;
641 double fontScaleFactor = optionalFontScaleFactor ? *optionalFontScaleFactor : 1; 644 double fontScaleFactor = optionalFontScaleFactor ? *optionalFontScaleFactor : 1;
642 645
643 if (width < 0 || height < 0 || width > maxDimension || height > maxDimension ) { 646 if (width < 0 || height < 0 || width > maxDimension || height > maxDimension ) {
644 *errorString = "Width and height values must be positive, not greater th an " + String::number(maxDimension); 647 *errorString = "Width and height values must be positive, not greater th an " + String::number(maxDimension);
645 return; 648 return;
646 } 649 }
647 650
648 if (!width ^ !height) { 651 if (!width ^ !height) {
649 *errorString = "Both width and height must be either zero or non-zero at once"; 652 *errorString = "Both width and height must be either zero or non-zero at once";
650 return; 653 return;
651 } 654 }
652 655
653 if (deviceScaleFactor <= 0) { 656 if (deviceScaleFactor <= 0) {
654 *errorString = "deviceScaleFactor must be positive"; 657 *errorString = "deviceScaleFactor must be positive";
655 return; 658 return;
656 } 659 }
657 660
658 if (fontScaleFactor <= 0) { 661 if (fontScaleFactor <= 0) {
659 *errorString = "fontScaleFactor must be positive"; 662 *errorString = "fontScaleFactor must be positive";
660 return; 663 return;
661 } 664 }
662 665
663 if (!deviceMetricsChanged(width, height, deviceScaleFactor, fitWindow, fontS caleFactor, textAutosizing)) 666 if (!deviceMetricsChanged(width, height, deviceScaleFactor, emulateViewport, fitWindow, fontScaleFactor, textAutosizing))
664 return; 667 return;
665 668
666 Settings& settings = m_page->settings(); 669 Settings& settings = m_page->settings();
667 if (width && height && !settings.acceleratedCompositingEnabled()) { 670 if (width && height && !settings.acceleratedCompositingEnabled()) {
668 if (errorString) 671 if (errorString)
669 *errorString = "Compositing mode is not supported"; 672 *errorString = "Compositing mode is not supported";
670 return; 673 return;
671 } 674 }
672 675
673 m_state->setLong(PageAgentState::pageAgentScreenWidthOverride, width); 676 m_state->setLong(PageAgentState::pageAgentScreenWidthOverride, width);
674 m_state->setLong(PageAgentState::pageAgentScreenHeightOverride, height); 677 m_state->setLong(PageAgentState::pageAgentScreenHeightOverride, height);
675 m_state->setDouble(PageAgentState::pageAgentDeviceScaleFactorOverride, devic eScaleFactor); 678 m_state->setDouble(PageAgentState::pageAgentDeviceScaleFactorOverride, devic eScaleFactor);
679 m_state->setBoolean(PageAgentState::pageAgentEmulateViewport, emulateViewpor t);
676 m_state->setBoolean(PageAgentState::pageAgentFitWindow, fitWindow); 680 m_state->setBoolean(PageAgentState::pageAgentFitWindow, fitWindow);
677 m_state->setDouble(PageAgentState::textAutosizingFontScaleFactorOverride, fo ntScaleFactor); 681 m_state->setDouble(PageAgentState::textAutosizingFontScaleFactorOverride, fo ntScaleFactor);
678 m_state->setBoolean(PageAgentState::pageAgentTextAutosizingOverride, textAut osizing); 682 m_state->setBoolean(PageAgentState::pageAgentTextAutosizingOverride, textAut osizing);
679 683
680 updateViewMetrics(width, height, deviceScaleFactor, fitWindow); 684 updateViewMetrics(width, height, deviceScaleFactor, emulateViewport, fitWind ow);
681 } 685 }
682 686
683 bool InspectorPageAgent::deviceMetricsChanged(int width, int height, double devi ceScaleFactor, bool fitWindow, double fontScaleFactor, bool textAutosizing) 687 bool InspectorPageAgent::deviceMetricsChanged(int width, int height, double devi ceScaleFactor, bool emulateViewport, bool fitWindow, double fontScaleFactor, boo l textAutosizing)
684 { 688 {
685 // These two always fit an int. 689 // These two always fit an int.
686 int currentWidth = static_cast<int>(m_state->getLong(PageAgentState::pageAge ntScreenWidthOverride)); 690 int currentWidth = static_cast<int>(m_state->getLong(PageAgentState::pageAge ntScreenWidthOverride));
687 int currentHeight = static_cast<int>(m_state->getLong(PageAgentState::pageAg entScreenHeightOverride)); 691 int currentHeight = static_cast<int>(m_state->getLong(PageAgentState::pageAg entScreenHeightOverride));
688 double currentDeviceScaleFactor = m_state->getDouble(PageAgentState::pageAge ntDeviceScaleFactorOverride, 1); 692 double currentDeviceScaleFactor = m_state->getDouble(PageAgentState::pageAge ntDeviceScaleFactorOverride, 1);
693 bool currentEmulateViewport = m_state->getBoolean(PageAgentState::pageAgentE mulateViewport);
689 bool currentFitWindow = m_state->getBoolean(PageAgentState::pageAgentFitWind ow); 694 bool currentFitWindow = m_state->getBoolean(PageAgentState::pageAgentFitWind ow);
690 double currentFontScaleFactor = m_state->getDouble(PageAgentState::textAutos izingFontScaleFactorOverride, 1); 695 double currentFontScaleFactor = m_state->getDouble(PageAgentState::textAutos izingFontScaleFactorOverride, 1);
691 bool currentTextAutosizing = m_state->getBoolean(PageAgentState::pageAgentTe xtAutosizingOverride); 696 bool currentTextAutosizing = m_state->getBoolean(PageAgentState::pageAgentTe xtAutosizingOverride);
692 697
693 return width != currentWidth || height != currentHeight || deviceScaleFactor != currentDeviceScaleFactor || fitWindow != currentFitWindow || fontScaleFactor != currentFontScaleFactor || textAutosizing != currentTextAutosizing; 698 return width != currentWidth || height != currentHeight || deviceScaleFactor != currentDeviceScaleFactor || emulateViewport != currentEmulateViewport || fit Window != currentFitWindow || fontScaleFactor != currentFontScaleFactor || textA utosizing != currentTextAutosizing;
694 } 699 }
695 700
696 void InspectorPageAgent::setShowPaintRects(ErrorString*, bool show) 701 void InspectorPageAgent::setShowPaintRects(ErrorString*, bool show)
697 { 702 {
698 m_state->setBoolean(PageAgentState::pageAgentShowPaintRects, show); 703 m_state->setBoolean(PageAgentState::pageAgentShowPaintRects, show);
699 m_client->setShowPaintRects(show); 704 m_client->setShowPaintRects(show);
700 705
701 if (!show && mainFrame() && mainFrame()->view()) 706 if (!show && mainFrame() && mainFrame()->view())
702 mainFrame()->view()->invalidate(); 707 mainFrame()->view()->invalidate();
703 } 708 }
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 String deprecatedHeaderSourceMapURL = resource->response().httpHeaderField(d eprecatedSourceMapHttpHeader); 915 String deprecatedHeaderSourceMapURL = resource->response().httpHeaderField(d eprecatedSourceMapHttpHeader);
911 if (!deprecatedHeaderSourceMapURL.isEmpty()) { 916 if (!deprecatedHeaderSourceMapURL.isEmpty()) {
912 // FIXME: add deprecated console message here. 917 // FIXME: add deprecated console message here.
913 return deprecatedHeaderSourceMapURL; 918 return deprecatedHeaderSourceMapURL;
914 } 919 }
915 return resource->response().httpHeaderField(sourceMapHttpHeader); 920 return resource->response().httpHeaderField(sourceMapHttpHeader);
916 } 921 }
917 922
918 bool InspectorPageAgent::deviceMetricsOverrideEnabled() 923 bool InspectorPageAgent::deviceMetricsOverrideEnabled()
919 { 924 {
920 return m_enabled && m_state->getLong(PageAgentState::pageAgentScreenWidthOve rride); 925 return m_enabled && m_deviceMetricsOverridden;
dgozman 2013/11/02 13:27:26 There are also some other places with this constru
pfeldman 2013/11/02 13:31:24 Done.
921 } 926 }
922 927
923 // static 928 // static
924 DocumentLoader* InspectorPageAgent::assertDocumentLoader(ErrorString* errorStrin g, Frame* frame) 929 DocumentLoader* InspectorPageAgent::assertDocumentLoader(ErrorString* errorStrin g, Frame* frame)
925 { 930 {
926 DocumentLoader* documentLoader = frame->loader().documentLoader(); 931 DocumentLoader* documentLoader = frame->loader().documentLoader();
927 if (!documentLoader) 932 if (!documentLoader)
928 *errorString = "No documentLoader for given frame found"; 933 *errorString = "No documentLoader for given frame found";
929 return documentLoader; 934 return documentLoader;
930 } 935 }
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 for (Frame* child = frame->tree().firstChild(); child; child = child->tree() .nextSibling()) { 1068 for (Frame* child = frame->tree().firstChild(); child; child = child->tree() .nextSibling()) {
1064 if (!childrenArray) { 1069 if (!childrenArray) {
1065 childrenArray = TypeBuilder::Array<TypeBuilder::Page::FrameResourceT ree>::create(); 1070 childrenArray = TypeBuilder::Array<TypeBuilder::Page::FrameResourceT ree>::create();
1066 result->setChildFrames(childrenArray); 1071 result->setChildFrames(childrenArray);
1067 } 1072 }
1068 childrenArray->addItem(buildObjectForFrameTree(child)); 1073 childrenArray->addItem(buildObjectForFrameTree(child));
1069 } 1074 }
1070 return result; 1075 return result;
1071 } 1076 }
1072 1077
1073 void InspectorPageAgent::updateViewMetrics(int width, int height, double deviceS caleFactor, bool fitWindow) 1078 void InspectorPageAgent::updateViewMetrics(int width, int height, double deviceS caleFactor, bool emulateViewport, bool fitWindow)
1074 { 1079 {
1075 m_client->overrideDeviceMetrics(width, height, static_cast<float>(deviceScal eFactor), fitWindow); 1080 m_client->overrideDeviceMetrics(width, height, static_cast<float>(deviceScal eFactor), emulateViewport, fitWindow);
1076 1081
1077 Document* document = mainFrame()->document(); 1082 Document* document = mainFrame()->document();
1078 if (document) 1083 if (document)
1079 document->styleResolverChanged(RecalcStyleImmediately); 1084 document->styleResolverChanged(RecalcStyleImmediately);
1080 InspectorInstrumentation::mediaQueryResultChanged(document); 1085 InspectorInstrumentation::mediaQueryResultChanged(document);
1081 1086
1082 // FIXME: allow metrics override, fps counter and continuous painting at the same time: crbug.com/299837. 1087 // FIXME: allow metrics override, fps counter and continuous painting at the same time: crbug.com/299837.
1083 m_deviceMetricsOverridden = width && height; 1088 m_deviceMetricsOverridden = width && height;
1084 m_client->setShowFPSCounter(m_state->getBoolean(PageAgentState::pageAgentSho wFPSCounter) && !m_deviceMetricsOverridden); 1089 m_client->setShowFPSCounter(m_state->getBoolean(PageAgentState::pageAgentSho wFPSCounter) && !m_deviceMetricsOverridden);
1085 m_client->setContinuousPaintingEnabled(m_state->getBoolean(PageAgentState::p ageAgentContinuousPaintingEnabled) && !m_deviceMetricsOverridden); 1090 m_client->setContinuousPaintingEnabled(m_state->getBoolean(PageAgentState::p ageAgentContinuousPaintingEnabled) && !m_deviceMetricsOverridden);
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 } 1250 }
1246 1251
1247 void InspectorPageAgent::setShowViewportSizeOnResize(ErrorString*, bool show, co nst bool* showGrid) 1252 void InspectorPageAgent::setShowViewportSizeOnResize(ErrorString*, bool show, co nst bool* showGrid)
1248 { 1253 {
1249 m_state->setBoolean(PageAgentState::showSizeOnResize, show); 1254 m_state->setBoolean(PageAgentState::showSizeOnResize, show);
1250 m_state->setBoolean(PageAgentState::showGridOnResize, showGrid && *showGrid) ; 1255 m_state->setBoolean(PageAgentState::showGridOnResize, showGrid && *showGrid) ;
1251 } 1256 }
1252 1257
1253 } // namespace WebCore 1258 } // namespace WebCore
1254 1259
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698