| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 24 * Boston, MA 02110-1301, USA. | 24 * Boston, MA 02110-1301, USA. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "core/frame/FrameView.h" | 27 #include "core/frame/FrameView.h" |
| 28 | 28 |
| 29 #include "core/HTMLNames.h" | 29 #include "core/HTMLNames.h" |
| 30 #include "core/MediaTypeNames.h" | 30 #include "core/MediaTypeNames.h" |
| 31 #include "core/animation/DocumentAnimations.h" | 31 #include "core/animation/DocumentAnimations.h" |
| 32 #include "core/css/FontFaceSet.h" | 32 #include "core/css/FontFaceSet.h" |
| 33 #include "core/css/resolver/StyleResolver.h" | |
| 34 #include "core/dom/AXObjectCache.h" | 33 #include "core/dom/AXObjectCache.h" |
| 35 #include "core/dom/DOMNodeIds.h" | 34 #include "core/dom/DOMNodeIds.h" |
| 36 #include "core/dom/ElementVisibilityObserver.h" | 35 #include "core/dom/ElementVisibilityObserver.h" |
| 37 #include "core/dom/Fullscreen.h" | 36 #include "core/dom/Fullscreen.h" |
| 38 #include "core/dom/IntersectionObserverCallback.h" | 37 #include "core/dom/IntersectionObserverCallback.h" |
| 39 #include "core/dom/IntersectionObserverController.h" | 38 #include "core/dom/IntersectionObserverController.h" |
| 40 #include "core/dom/IntersectionObserverInit.h" | 39 #include "core/dom/IntersectionObserverInit.h" |
| 40 #include "core/dom/StyleChangeReason.h" |
| 41 #include "core/dom/TaskRunnerHelper.h" | 41 #include "core/dom/TaskRunnerHelper.h" |
| 42 #include "core/editing/EditingUtilities.h" | 42 #include "core/editing/EditingUtilities.h" |
| 43 #include "core/editing/FrameSelection.h" | 43 #include "core/editing/FrameSelection.h" |
| 44 #include "core/editing/RenderedPosition.h" | 44 #include "core/editing/RenderedPosition.h" |
| 45 #include "core/editing/markers/DocumentMarkerController.h" | 45 #include "core/editing/markers/DocumentMarkerController.h" |
| 46 #include "core/events/ErrorEvent.h" | 46 #include "core/events/ErrorEvent.h" |
| 47 #include "core/fetch/ResourceFetcher.h" | 47 #include "core/fetch/ResourceFetcher.h" |
| 48 #include "core/frame/BrowserControls.h" | 48 #include "core/frame/BrowserControls.h" |
| 49 #include "core/frame/EventHandlerRegistry.h" | 49 #include "core/frame/EventHandlerRegistry.h" |
| 50 #include "core/frame/FrameHost.h" | 50 #include "core/frame/FrameHost.h" |
| (...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1469 void FrameView::adjustMediaTypeForPrinting(bool printing) { | 1469 void FrameView::adjustMediaTypeForPrinting(bool printing) { |
| 1470 if (printing) { | 1470 if (printing) { |
| 1471 if (m_mediaTypeWhenNotPrinting.isNull()) | 1471 if (m_mediaTypeWhenNotPrinting.isNull()) |
| 1472 m_mediaTypeWhenNotPrinting = mediaType(); | 1472 m_mediaTypeWhenNotPrinting = mediaType(); |
| 1473 setMediaType(MediaTypeNames::print); | 1473 setMediaType(MediaTypeNames::print); |
| 1474 } else { | 1474 } else { |
| 1475 if (!m_mediaTypeWhenNotPrinting.isNull()) | 1475 if (!m_mediaTypeWhenNotPrinting.isNull()) |
| 1476 setMediaType(m_mediaTypeWhenNotPrinting); | 1476 setMediaType(m_mediaTypeWhenNotPrinting); |
| 1477 m_mediaTypeWhenNotPrinting = nullAtom; | 1477 m_mediaTypeWhenNotPrinting = nullAtom; |
| 1478 } | 1478 } |
| 1479 |
| 1480 m_frame->document()->setNeedsStyleRecalc( |
| 1481 SubtreeStyleChange, |
| 1482 StyleChangeReasonForTracing::create(StyleChangeReason::StyleSheetChange)); |
| 1479 } | 1483 } |
| 1480 | 1484 |
| 1481 bool FrameView::contentsInCompositedLayer() const { | 1485 bool FrameView::contentsInCompositedLayer() const { |
| 1482 LayoutViewItem layoutViewItem = this->layoutViewItem(); | 1486 LayoutViewItem layoutViewItem = this->layoutViewItem(); |
| 1483 return !layoutViewItem.isNull() && | 1487 return !layoutViewItem.isNull() && |
| 1484 layoutViewItem.compositingState() == PaintsIntoOwnBacking; | 1488 layoutViewItem.compositingState() == PaintsIntoOwnBacking; |
| 1485 } | 1489 } |
| 1486 | 1490 |
| 1487 void FrameView::addBackgroundAttachmentFixedObject(LayoutObject* object) { | 1491 void FrameView::addBackgroundAttachmentFixedObject(LayoutObject* object) { |
| 1488 ASSERT(!m_backgroundAttachmentFixedObjects.contains(object)); | 1492 ASSERT(!m_backgroundAttachmentFixedObjects.contains(object)); |
| (...skipping 3189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4678 DCHECK(m_frame->isMainFrame()); | 4682 DCHECK(m_frame->isMainFrame()); |
| 4679 return m_initialViewportSize.width(); | 4683 return m_initialViewportSize.width(); |
| 4680 } | 4684 } |
| 4681 | 4685 |
| 4682 int FrameView::initialViewportHeight() const { | 4686 int FrameView::initialViewportHeight() const { |
| 4683 DCHECK(m_frame->isMainFrame()); | 4687 DCHECK(m_frame->isMainFrame()); |
| 4684 return m_initialViewportSize.height(); | 4688 return m_initialViewportSize.height(); |
| 4685 } | 4689 } |
| 4686 | 4690 |
| 4687 } // namespace blink | 4691 } // namespace blink |
| OLD | NEW |