| Index: third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
|
| index 131280681fb2e638b9a3b7eaaa8a5e978a1bc149..7e8ff692461710a32e692cea7ed9d75c46c1a40e 100644
|
| --- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
|
| @@ -710,26 +710,34 @@ void InspectorPageAgent::didRunJavaScriptDialog(bool result) {
|
| frontend()->flush();
|
| }
|
|
|
| -void InspectorPageAgent::didUpdateLayout() {
|
| - if (m_enabled && m_client)
|
| - m_client->pageLayoutInvalidated(false);
|
| -}
|
| -
|
| void InspectorPageAgent::didResizeMainFrame() {
|
| if (!m_inspectedFrames->root()->isMainFrame())
|
| return;
|
| #if !OS(ANDROID)
|
| - if (m_enabled && m_client)
|
| - m_client->pageLayoutInvalidated(true);
|
| + pageLayoutInvalidated(true);
|
| #endif
|
| frontend()->frameResized();
|
| }
|
|
|
| +void InspectorPageAgent::didChangeViewport() {
|
| + pageLayoutInvalidated(false);
|
| +}
|
| +
|
| +void InspectorPageAgent::will(const probe::UpdateLayout&) {}
|
| +
|
| +void InspectorPageAgent::did(const probe::UpdateLayout&) {
|
| + pageLayoutInvalidated(false);
|
| +}
|
| +
|
| void InspectorPageAgent::will(const probe::RecalculateStyle&) {}
|
|
|
| void InspectorPageAgent::did(const probe::RecalculateStyle&) {
|
| + pageLayoutInvalidated(false);
|
| +}
|
| +
|
| +void InspectorPageAgent::pageLayoutInvalidated(bool resized) {
|
| if (m_enabled && m_client)
|
| - m_client->pageLayoutInvalidated(false);
|
| + m_client->pageLayoutInvalidated(resized);
|
| }
|
|
|
| void InspectorPageAgent::windowCreated(LocalFrame* created) {
|
|
|