| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. |
| 3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 238 |
| 239 // http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction
.html#html-integration-point | 239 // http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction
.html#html-integration-point |
| 240 bool HTMLElementStack::IsHTMLIntegrationPoint(HTMLStackItem* item) { | 240 bool HTMLElementStack::IsHTMLIntegrationPoint(HTMLStackItem* item) { |
| 241 if (!item->IsElementNode()) | 241 if (!item->IsElementNode()) |
| 242 return false; | 242 return false; |
| 243 if (item->HasTagName(MathMLNames::annotation_xmlTag)) { | 243 if (item->HasTagName(MathMLNames::annotation_xmlTag)) { |
| 244 Attribute* encoding_attr = | 244 Attribute* encoding_attr = |
| 245 item->GetAttributeItem(MathMLNames::encodingAttr); | 245 item->GetAttributeItem(MathMLNames::encodingAttr); |
| 246 if (encoding_attr) { | 246 if (encoding_attr) { |
| 247 const String& encoding = encoding_attr->Value(); | 247 const String& encoding = encoding_attr->Value(); |
| 248 return EqualIgnoringCase(encoding, "text/html") || | 248 return DeprecatedEqualIgnoringCase(encoding, "text/html") || |
| 249 EqualIgnoringCase(encoding, "application/xhtml+xml"); | 249 DeprecatedEqualIgnoringCase(encoding, "application/xhtml+xml"); |
| 250 } | 250 } |
| 251 return false; | 251 return false; |
| 252 } | 252 } |
| 253 return item->HasTagName(SVGNames::foreignObjectTag) || | 253 return item->HasTagName(SVGNames::foreignObjectTag) || |
| 254 item->HasTagName(SVGNames::descTag) || | 254 item->HasTagName(SVGNames::descTag) || |
| 255 item->HasTagName(SVGNames::titleTag); | 255 item->HasTagName(SVGNames::titleTag); |
| 256 } | 256 } |
| 257 | 257 |
| 258 void HTMLElementStack::PopUntilForeignContentScopeMarker() { | 258 void HTMLElementStack::PopUntilForeignContentScopeMarker() { |
| 259 while (!IsForeignContentScopeMarker(TopStackItem())) | 259 while (!IsForeignContentScopeMarker(TopStackItem())) |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 #ifndef NDEBUG | 545 #ifndef NDEBUG |
| 546 | 546 |
| 547 void HTMLElementStack::Show() { | 547 void HTMLElementStack::Show() { |
| 548 for (ElementRecord* record = top_.Get(); record; record = record->Next()) | 548 for (ElementRecord* record = top_.Get(); record; record = record->Next()) |
| 549 LOG(INFO) << *record->GetElement(); | 549 LOG(INFO) << *record->GetElement(); |
| 550 } | 550 } |
| 551 | 551 |
| 552 #endif | 552 #endif |
| 553 | 553 |
| 554 } // namespace blink | 554 } // namespace blink |
| OLD | NEW |