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

Side by Side Diff: third_party/WebKit/Source/core/dom/ProcessingInstruction.h

Issue 1511523002: Align HTMLImageElement relevant mutations to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix removal issue when a text node is between <source> and <img> Created 5 years 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2006 Apple Inc. All rights reserved. 3 * Copyright (C) 2006 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 void clearEventListenerForXSLT(); 78 void clearEventListenerForXSLT();
79 79
80 private: 80 private:
81 ProcessingInstruction(Document&, const String& target, const String& data); 81 ProcessingInstruction(Document&, const String& target, const String& data);
82 82
83 String nodeName() const override; 83 String nodeName() const override;
84 NodeType nodeType() const override; 84 NodeType nodeType() const override;
85 PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep) override; 85 PassRefPtrWillBeRawPtr<Node> cloneNode(bool deep) override;
86 86
87 InsertionNotificationRequest insertedInto(ContainerNode*) override; 87 InsertionNotificationRequest insertedInto(ContainerNode*) override;
88 void removedFrom(ContainerNode*) override; 88 void removedFrom(ContainerNode* insertionPoint, Node* next) override;
89 89
90 bool checkStyleSheet(String& href, String& charset); 90 bool checkStyleSheet(String& href, String& charset);
91 void process(const String& href, const String& charset); 91 void process(const String& href, const String& charset);
92 92
93 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource*) override; 93 void setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource*) override;
94 void setXSLStyleSheet(const String& href, const KURL& baseURL, const String& sheet) override; 94 void setXSLStyleSheet(const String& href, const KURL& baseURL, const String& sheet) override;
95 95
96 bool sheetLoaded() override; 96 bool sheetLoaded() override;
97 97
98 void parseStyleSheet(const String& sheet); 98 void parseStyleSheet(const String& sheet);
(...skipping 18 matching lines...) Expand all
117 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, nodeType() == Node::PROCESSING_INS TRUCTION_NODE); 117 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, nodeType() == Node::PROCESSING_INS TRUCTION_NODE);
118 118
119 inline bool isXSLStyleSheet(const Node& node) 119 inline bool isXSLStyleSheet(const Node& node)
120 { 120 {
121 return node.nodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessingI nstruction(node).isXSL(); 121 return node.nodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessingI nstruction(node).isXSL();
122 } 122 }
123 123
124 } // namespace blink 124 } // namespace blink
125 125
126 #endif // ProcessingInstruction_h 126 #endif // ProcessingInstruction_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698