OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015, Google Inc. All rights reserved. | 2 * Copyright (c) 2015, 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 | 349 |
350 class StubFrameOwner : public NoBaseWillBeGarbageCollectedFinalized<StubFrameOwn
er>, public FrameOwner { | 350 class StubFrameOwner : public NoBaseWillBeGarbageCollectedFinalized<StubFrameOwn
er>, public FrameOwner { |
351 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(StubFrameOwner); | 351 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(StubFrameOwner); |
352 public: | 352 public: |
353 DEFINE_INLINE_VIRTUAL_TRACE() { FrameOwner::trace(visitor); } | 353 DEFINE_INLINE_VIRTUAL_TRACE() { FrameOwner::trace(visitor); } |
354 | 354 |
355 bool isLocal() const override { return false; } | 355 bool isLocal() const override { return false; } |
356 SandboxFlags sandboxFlags() const override { return SandboxNone; } | 356 SandboxFlags sandboxFlags() const override { return SandboxNone; } |
357 void dispatchLoad() override { } | 357 void dispatchLoad() override { } |
358 void renderFallbackContent() override { } | 358 void renderFallbackContent() override { } |
| 359 ScrollbarMode scrollingMode() const override { return ScrollbarAuto; } |
| 360 int marginWidth() const override { return -1; } |
| 361 int marginHeight() const override { return -1; } |
359 }; | 362 }; |
360 | 363 |
361 class FrameFetchContextCachePolicyTest : public ::testing::Test { | 364 class FrameFetchContextCachePolicyTest : public ::testing::Test { |
362 public: | 365 public: |
363 FrameFetchContextCachePolicyTest() { } | 366 FrameFetchContextCachePolicyTest() { } |
364 | 367 |
365 protected: | 368 protected: |
366 void SetUp() override | 369 void SetUp() override |
367 { | 370 { |
368 dummyPageHolder = DummyPageHolder::create(IntSize(500, 500)); | 371 dummyPageHolder = DummyPageHolder::create(IntSize(500, 500)); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 // Child frame as part of end to end reload | 444 // Child frame as part of end to end reload |
442 document->frame()->loader().setLoadType(FrameLoadTypeReloadFromOrigin); | 445 document->frame()->loader().setLoadType(FrameLoadTypeReloadFromOrigin); |
443 EXPECT_EQ(ReloadBypassingCache, childFetchContext->resourceRequestCachePolic
y(request, Resource::MainResource)); | 446 EXPECT_EQ(ReloadBypassingCache, childFetchContext->resourceRequestCachePolic
y(request, Resource::MainResource)); |
444 | 447 |
445 childDocumentLoader->detachFromFrame(); | 448 childDocumentLoader->detachFromFrame(); |
446 childDocumentLoader.clear(); | 449 childDocumentLoader.clear(); |
447 childFrame->detach(FrameDetachType::Remove); | 450 childFrame->detach(FrameDetachType::Remove); |
448 } | 451 } |
449 | 452 |
450 } // namespace | 453 } // namespace |
OLD | NEW |