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

Side by Side Diff: Source/core/dom/Document.h

Issue 239993011: Lazily generate HistoryItem's serialized form state (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months 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
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | Source/core/dom/Document.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 class DOMSelection; 81 class DOMSelection;
82 class DOMWindow; 82 class DOMWindow;
83 class Database; 83 class Database;
84 class DatabaseThread; 84 class DatabaseThread;
85 class DocumentFragment; 85 class DocumentFragment;
86 class DocumentLifecycleNotifier; 86 class DocumentLifecycleNotifier;
87 class DocumentLifecycleObserver; 87 class DocumentLifecycleObserver;
88 class DocumentLoader; 88 class DocumentLoader;
89 class DocumentMarkerController; 89 class DocumentMarkerController;
90 class DocumentParser; 90 class DocumentParser;
91 class DocumentState;
91 class DocumentTimeline; 92 class DocumentTimeline;
92 class DocumentType; 93 class DocumentType;
93 class Element; 94 class Element;
94 class ElementDataCache; 95 class ElementDataCache;
95 class Event; 96 class Event;
96 class EventListener; 97 class EventListener;
97 class ExceptionState; 98 class ExceptionState;
98 class FastTextAutosizer; 99 class FastTextAutosizer;
99 class FloatQuad; 100 class FloatQuad;
100 class FloatRect; 101 class FloatRect;
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 450
450 // FIXME: This should be eliminated and elements that use it should be made to 451 // FIXME: This should be eliminated and elements that use it should be made to
451 // always have a layer so they don't need to go about creating one from reas ons 452 // always have a layer so they don't need to go about creating one from reas ons
452 // external to style. 453 // external to style.
453 void scheduleLayerUpdate(Element&); 454 void scheduleLayerUpdate(Element&);
454 void unscheduleLayerUpdate(Element&); 455 void unscheduleLayerUpdate(Element&);
455 456
456 void evaluateMediaQueryList(); 457 void evaluateMediaQueryList();
457 458
458 FormController& formController(); 459 FormController& formController();
459 Vector<String> formElementsState() const; 460 DocumentState* formElementsState() const;
460 void setStateForNewFormElements(const Vector<String>&); 461 void setStateForNewFormElements(const Vector<String>&);
461 462
462 FrameView* view() const; // can be null 463 FrameView* view() const; // can be null
463 LocalFrame* frame() const { return m_frame; } // can be null 464 LocalFrame* frame() const { return m_frame; } // can be null
464 FrameHost* frameHost() const; // can be null 465 FrameHost* frameHost() const; // can be null
465 Page* page() const; // can be null 466 Page* page() const; // can be null
466 Settings* settings() const; // can be null 467 Settings* settings() const; // can be null
467 468
468 float devicePixelRatio() const; 469 float devicePixelRatio() const;
469 470
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 Loading, 604 Loading,
604 Interactive, 605 Interactive,
605 Complete 606 Complete
606 }; 607 };
607 void setReadyState(ReadyState); 608 void setReadyState(ReadyState);
608 bool isLoadCompleted(); 609 bool isLoadCompleted();
609 610
610 void setParsing(bool); 611 void setParsing(bool);
611 bool parsing() const { return m_isParsing; } 612 bool parsing() const { return m_isParsing; }
612 613
613 void setHistoryItemDocumentStateDirty(bool dirty) { m_historyItemDocumentSta teDirty = dirty; }
614 bool historyItemDocumentStateDirty() const { return m_historyItemDocumentSta teDirty; }
615
616 bool shouldScheduleLayout() const; 614 bool shouldScheduleLayout() const;
617 int elapsedTime() const; 615 int elapsedTime() const;
618 616
619 TextLinkColors& textLinkColors() { return m_textLinkColors; } 617 TextLinkColors& textLinkColors() { return m_textLinkColors; }
620 VisitedLinkState& visitedLinkState() const { return *m_visitedLinkState; } 618 VisitedLinkState& visitedLinkState() const { return *m_visitedLinkState; }
621 619
622 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const LayoutPoint&, const PlatformMouseEvent&); 620 MouseEventWithHitTestResults prepareMouseEvent(const HitTestRequest&, const LayoutPoint&, const PlatformMouseEvent&);
623 621
624 /* Newly proposed CSS3 mechanism for selecting alternate 622 /* Newly proposed CSS3 mechanism for selecting alternate
625 stylesheets using the DOM. May be subject to change as 623 stylesheets using the DOM. May be subject to change as
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1236 RefPtrWillBePersistent<StyleSheetList> m_styleSheetList; 1234 RefPtrWillBePersistent<StyleSheetList> m_styleSheetList;
1237 1235
1238 OwnPtr<FormController> m_formController; 1236 OwnPtr<FormController> m_formController;
1239 1237
1240 TextLinkColors m_textLinkColors; 1238 TextLinkColors m_textLinkColors;
1241 const OwnPtr<VisitedLinkState> m_visitedLinkState; 1239 const OwnPtr<VisitedLinkState> m_visitedLinkState;
1242 1240
1243 bool m_visuallyOrdered; 1241 bool m_visuallyOrdered;
1244 ReadyState m_readyState; 1242 ReadyState m_readyState;
1245 bool m_isParsing; 1243 bool m_isParsing;
1246 bool m_historyItemDocumentStateDirty;
1247 1244
1248 bool m_gotoAnchorNeededAfterStylesheetsLoad; 1245 bool m_gotoAnchorNeededAfterStylesheetsLoad;
1249 bool m_isDNSPrefetchEnabled; 1246 bool m_isDNSPrefetchEnabled;
1250 bool m_haveExplicitlyDisabledDNSPrefetch; 1247 bool m_haveExplicitlyDisabledDNSPrefetch;
1251 bool m_containsValidityStyleRules; 1248 bool m_containsValidityStyleRules;
1252 bool m_updateFocusAppearanceRestoresSelection; 1249 bool m_updateFocusAppearanceRestoresSelection;
1253 bool m_containsPlugins; 1250 bool m_containsPlugins;
1254 1251
1255 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-wri tes-counter 1252 // http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-wri tes-counter
1256 unsigned m_ignoreDestructiveWriteCount; 1253 unsigned m_ignoreDestructiveWriteCount;
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1432 inline bool Node::isDocumentNode() const 1429 inline bool Node::isDocumentNode() const
1433 { 1430 {
1434 return this == document(); 1431 return this == document();
1435 } 1432 }
1436 1433
1437 Node* eventTargetNodeForDocument(Document*); 1434 Node* eventTargetNodeForDocument(Document*);
1438 1435
1439 } // namespace WebCore 1436 } // namespace WebCore
1440 1437
1441 #endif // Document_h 1438 #endif // Document_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Document.cpp » ('j') | Source/core/dom/Document.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698