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

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

Issue 1032033002: Fire error events for a variety of script and style failures. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed test failures Created 5 years, 9 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
« no previous file with comments | « Source/core/css/StyleSheetContents.cpp ('k') | Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »
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 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 // Uses an editing-specific concept of what a leaf node is, and should proba bly be moved 333 // Uses an editing-specific concept of what a leaf node is, and should proba bly be moved
334 // out of the Node class into an editing-specific source file. 334 // out of the Node class into an editing-specific source file.
335 Node* previousLeafNode() const; 335 Node* previousLeafNode() const;
336 336
337 bool isRootEditableElement() const; 337 bool isRootEditableElement() const;
338 Element* rootEditableElement() const; 338 Element* rootEditableElement() const;
339 Element* rootEditableElement(EditableType) const; 339 Element* rootEditableElement(EditableType) const;
340 340
341 // For <link> and <style> elements. 341 // For <link> and <style> elements.
342 virtual bool sheetLoaded() { return true; } 342 virtual bool sheetLoaded() { return true; }
343 virtual void notifyLoadedSheetAndAllCriticalSubresources(bool /* error loadi ng subresource */) { } 343 enum LoadedSheetErrorStatus {
344 NoErrorLoadingSubresource,
345 ErrorOccurredLoadingSubresource
346 };
347 virtual void notifyLoadedSheetAndAllCriticalSubresources(LoadedSheetErrorSta tus) { }
344 virtual void startLoadingDynamicSheet() { ASSERT_NOT_REACHED(); } 348 virtual void startLoadingDynamicSheet() { ASSERT_NOT_REACHED(); }
345 349
346 bool hasName() const { ASSERT(!isTextNode()); return getFlag(HasNameOrIsEdit ingTextFlag); } 350 bool hasName() const { ASSERT(!isTextNode()); return getFlag(HasNameOrIsEdit ingTextFlag); }
347 351
348 bool isUserActionElement() const { return getFlag(IsUserActionElementFlag); } 352 bool isUserActionElement() const { return getFlag(IsUserActionElementFlag); }
349 void setUserActionElement(bool flag) { setFlag(flag, IsUserActionElementFlag ); } 353 void setUserActionElement(bool flag) { setFlag(flag, IsUserActionElementFlag ); }
350 354
351 bool active() const { return isUserActionElement() && isUserActionElementAct ive(); } 355 bool active() const { return isUserActionElement() && isUserActionElementAct ive(); }
352 bool inActiveChain() const { return isUserActionElement() && isUserActionEle mentInActiveChain(); } 356 bool inActiveChain() const { return isUserActionElement() && isUserActionEle mentInActiveChain(); }
353 bool hovered() const { return isUserActionElement() && isUserActionElementHo vered(); } 357 bool hovered() const { return isUserActionElement() && isUserActionElementHo vered(); }
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 } // namespace blink 906 } // namespace blink
903 907
904 #ifndef NDEBUG 908 #ifndef NDEBUG
905 // Outside the WebCore namespace for ease of invocation from gdb. 909 // Outside the WebCore namespace for ease of invocation from gdb.
906 void showNode(const blink::Node*); 910 void showNode(const blink::Node*);
907 void showTree(const blink::Node*); 911 void showTree(const blink::Node*);
908 void showNodePath(const blink::Node*); 912 void showNodePath(const blink::Node*);
909 #endif 913 #endif
910 914
911 #endif // Node_h 915 #endif // Node_h
OLDNEW
« no previous file with comments | « Source/core/css/StyleSheetContents.cpp ('k') | Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698