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 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1444 void FrameView::adjustMediaTypeForPrinting(bool printing) { | 1444 void FrameView::adjustMediaTypeForPrinting(bool printing) { |
1445 if (printing) { | 1445 if (printing) { |
1446 if (m_mediaTypeWhenNotPrinting.isNull()) | 1446 if (m_mediaTypeWhenNotPrinting.isNull()) |
1447 m_mediaTypeWhenNotPrinting = mediaType(); | 1447 m_mediaTypeWhenNotPrinting = mediaType(); |
1448 setMediaType(MediaTypeNames::print); | 1448 setMediaType(MediaTypeNames::print); |
1449 } else { | 1449 } else { |
1450 if (!m_mediaTypeWhenNotPrinting.isNull()) | 1450 if (!m_mediaTypeWhenNotPrinting.isNull()) |
1451 setMediaType(m_mediaTypeWhenNotPrinting); | 1451 setMediaType(m_mediaTypeWhenNotPrinting); |
1452 m_mediaTypeWhenNotPrinting = nullAtom; | 1452 m_mediaTypeWhenNotPrinting = nullAtom; |
1453 } | 1453 } |
| 1454 |
| 1455 m_frame->document()->setNeedsStyleRecalc( |
| 1456 SubtreeStyleChange, |
| 1457 StyleChangeReasonForTracing::create(StyleChangeReason::StyleSheetChange)); |
1454 } | 1458 } |
1455 | 1459 |
1456 bool FrameView::contentsInCompositedLayer() const { | 1460 bool FrameView::contentsInCompositedLayer() const { |
1457 LayoutViewItem layoutViewItem = this->layoutViewItem(); | 1461 LayoutViewItem layoutViewItem = this->layoutViewItem(); |
1458 return !layoutViewItem.isNull() && | 1462 return !layoutViewItem.isNull() && |
1459 layoutViewItem.compositingState() == PaintsIntoOwnBacking; | 1463 layoutViewItem.compositingState() == PaintsIntoOwnBacking; |
1460 } | 1464 } |
1461 | 1465 |
1462 void FrameView::addBackgroundAttachmentFixedObject(LayoutObject* object) { | 1466 void FrameView::addBackgroundAttachmentFixedObject(LayoutObject* object) { |
1463 ASSERT(!m_backgroundAttachmentFixedObjects.contains(object)); | 1467 ASSERT(!m_backgroundAttachmentFixedObjects.contains(object)); |
(...skipping 3187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4651 DCHECK(m_frame->isMainFrame()); | 4655 DCHECK(m_frame->isMainFrame()); |
4652 return m_initialViewportSize.width(); | 4656 return m_initialViewportSize.width(); |
4653 } | 4657 } |
4654 | 4658 |
4655 int FrameView::initialViewportHeight() const { | 4659 int FrameView::initialViewportHeight() const { |
4656 DCHECK(m_frame->isMainFrame()); | 4660 DCHECK(m_frame->isMainFrame()); |
4657 return m_initialViewportSize.height(); | 4661 return m_initialViewportSize.height(); |
4658 } | 4662 } |
4659 | 4663 |
4660 } // namespace blink | 4664 } // namespace blink |
OLD | NEW |