| OLD | NEW |
| 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, 2011, 2012 Apple Inc. All | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All |
| 7 * rights reserved. | 7 * rights reserved. |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
| (...skipping 6428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6439 return LayoutViewItem(m_layoutView); | 6439 return LayoutViewItem(m_layoutView); |
| 6440 } | 6440 } |
| 6441 | 6441 |
| 6442 PropertyRegistry* Document::propertyRegistry() { | 6442 PropertyRegistry* Document::propertyRegistry() { |
| 6443 // TODO(timloh): When the flag is removed, return a reference instead. | 6443 // TODO(timloh): When the flag is removed, return a reference instead. |
| 6444 if (!m_propertyRegistry && RuntimeEnabledFeatures::cssVariables2Enabled()) | 6444 if (!m_propertyRegistry && RuntimeEnabledFeatures::cssVariables2Enabled()) |
| 6445 m_propertyRegistry = PropertyRegistry::create(); | 6445 m_propertyRegistry = PropertyRegistry::create(); |
| 6446 return m_propertyRegistry; | 6446 return m_propertyRegistry; |
| 6447 } | 6447 } |
| 6448 | 6448 |
| 6449 const PropertyRegistry* Document::propertyRegistry() const { |
| 6450 DCHECK(!m_propertyRegistry || RuntimeEnabledFeatures::cssVariables2Enabled()); |
| 6451 return m_propertyRegistry; |
| 6452 } |
| 6453 |
| 6449 void Document::incrementPasswordCount() { | 6454 void Document::incrementPasswordCount() { |
| 6450 ++m_passwordCount; | 6455 ++m_passwordCount; |
| 6451 if (isSecureContext() || m_passwordCount != 1) { | 6456 if (isSecureContext() || m_passwordCount != 1) { |
| 6452 // The browser process only cares about passwords on pages where the | 6457 // The browser process only cares about passwords on pages where the |
| 6453 // top-level URL is not secure. Secure contexts must have a top-level | 6458 // top-level URL is not secure. Secure contexts must have a top-level |
| 6454 // URL that is secure, so there is no need to send notifications for | 6459 // URL that is secure, so there is no need to send notifications for |
| 6455 // password fields in secure contexts. | 6460 // password fields in secure contexts. |
| 6456 // | 6461 // |
| 6457 // Also, only send a message on the first visible password field; the | 6462 // Also, only send a message on the first visible password field; the |
| 6458 // browser process doesn't care about the presence of additional | 6463 // browser process doesn't care about the presence of additional |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6581 } | 6586 } |
| 6582 | 6587 |
| 6583 void showLiveDocumentInstances() { | 6588 void showLiveDocumentInstances() { |
| 6584 WeakDocumentSet& set = liveDocumentSet(); | 6589 WeakDocumentSet& set = liveDocumentSet(); |
| 6585 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6590 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6586 for (Document* document : set) | 6591 for (Document* document : set) |
| 6587 fprintf(stderr, "- Document %p URL: %s\n", document, | 6592 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6588 document->url().getString().utf8().data()); | 6593 document->url().getString().utf8().data()); |
| 6589 } | 6594 } |
| 6590 #endif | 6595 #endif |
| OLD | NEW |